Skip to content

Commit

Permalink
docs(mkdocs): add file import via snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
manawasp committed Mar 12, 2024
1 parent 57e06f4 commit 0a84305
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--8<-- "CHANGELOG.md"
1 change: 1 addition & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--8<-- "CONTRIBUTING.md"
3 changes: 3 additions & 0 deletions docs/example-service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```python title="Example Service"
--8<-- "examples/service.py"
```
3 changes: 3 additions & 0 deletions docs/example-webapp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```python title="Example Webapp"
--8<-- "examples/webapp.py"
```
File renamed without changes.
10 changes: 8 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ repo_url: https://github.com/faust-streaming/mode

nav:
- Mode:
- Introduction: 'index.md'
- Creating a Service: 'creating-service.md'
- Introduction: index.md
- Creating a Service: creating-service.md
- Examples:
- Service: example-service.md
- Web app: example-webapp.md
- Developing:
- Contributing Guide: contributing.md
- References:
- 'Mode':
- mode.services: references/mode.services.md
Expand Down Expand Up @@ -78,6 +83,7 @@ nav:
- mode.utils.trees: references/mode.utils.trees.md
- mode.utils.types.graphs: references/mode.utils.types.graphs.md
- mode.utils.types.trees: references/mode.utils.types.trees.md
- Changelog: changelog.md
markdown_extensions:
- pymdownx.highlight
- pymdownx.inlinehilite
Expand Down

0 comments on commit 0a84305

Please sign in to comment.