Skip to content

Commit f83a671

Browse files
Doc: Add mkdocs with github pages (#145)
1 parent 5c1fd9d commit f83a671

5 files changed

Lines changed: 40 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ output
2020
venv
2121
.devcontainer
2222
.ruff_cache
23+
aristaproto/site

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Planned changes:
1515

1616
## Documentation
1717

18-
See the [documentation](aristaproto/docs/index.md)
18+
See the [documentation](https://aristanetworks.github.io/python-aristaproto/)
1919

2020
## License
2121

aristaproto/mkdocs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
site_name: Aristaproto
2+
site_url: https://aristanetworks.github.io/python-aristaproto
3+
theme:
4+
name: material
5+
palette:
6+
primary: deep orange
7+
accent: deep orange
8+
9+
nav:
10+
- index.md
11+
- Getting Started: getting-started.md
12+
- Tutorial:
13+
- Messages: tutorial/messages.md
14+
- Clients: tutorial/clients.md
15+
- API: api.md
16+
- Development: development.md
17+
- Protobuf Descriptors: descriptors.md
18+
19+
20+
plugins:
21+
- search
22+
- mkdocstrings:
23+
handlers:
24+
python:
25+
options:
26+
show_source: false
27+
28+
markdown_extensions:
29+
- admonition
30+
- pymdownx.highlight:
31+
anchor_linenums: true
32+
line_spans: __span
33+
pygments_lang_class: true
34+
- pymdownx.inlinehilite
35+
- pymdownx.snippets
36+
- pymdownx.superfences

aristaproto/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ requires-python = ">=3.10,<4.0"
1313
dependencies = ["python-dateutil>=2.9.0.post0", "typing-extensions>=4.14.0"]
1414

1515
[project.urls]
16+
Documentation = "https://aristanetworks.github.io/python-aristaproto"
1617
Repository = "https://github.com/aristanetworks/python-aristaproto"
1718

1819
[project.optional-dependencies]

aristaproto_compiler/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dependencies = [
2424
aristaproto = { path = "../aristaproto" }
2525

2626
[project.urls]
27+
Documentation = "https://aristanetworks.github.io/python-aristaproto"
2728
Repository = "https://github.com/aristanetworks/python-aristaproto"
2829

2930
[project.scripts]

0 commit comments

Comments
 (0)