mirror of
https://github.com/google/flatbuffers.git
synced 2025-04-16 00:03:09 +08:00
Update docs.yml to install mkdocs-redirects
This commit is contained in:
parent
f82c4ac904
commit
67bf1084c0
1
.github/workflows/docs.yml
vendored
1
.github/workflows/docs.yml
vendored
@ -32,4 +32,5 @@ jobs:
|
||||
restore-keys: |
|
||||
mkdocs-material-
|
||||
- run: pip install mkdocs-material
|
||||
- run: pip install mkdocs-redirects
|
||||
- run: mkdocs gh-deploy --force -f docs/mkdocs.yml
|
||||
|
@ -53,6 +53,11 @@ extra:
|
||||
- icon: fontawesome/brands/x-twitter
|
||||
link: https://twitter.com/dbaileychess
|
||||
|
||||
plugins:
|
||||
# https://github.com/mkdocs/mkdocs-redirects
|
||||
- redirects:
|
||||
redirect_maps:
|
||||
'flatbuffers_guide_use_cpp.html.md': 'cpp.md'
|
||||
|
||||
|
||||
markdown_extensions:
|
||||
@ -88,6 +93,8 @@ nav:
|
||||
- Overview: "schema.md"
|
||||
- Evolution: "evolution.md"
|
||||
- Grammar: "grammar.md"
|
||||
- Language Guides:
|
||||
- C++: "cpp.md"
|
||||
- Advanced:
|
||||
- Annotating Buffers (.afb): "annotation.md"
|
||||
- Contributing: "contributing.md"
|
||||
|
@ -64,6 +64,7 @@ other ways)
|
||||
|
||||
```
|
||||
pip install mkdocs-material
|
||||
pip install mkdocs-redirects
|
||||
```
|
||||
|
||||
Then, in the `root` directory of flatbuffers, run
|
||||
|
2
docs/source/cpp.md
Normal file
2
docs/source/cpp.md
Normal file
@ -0,0 +1,2 @@
|
||||
# Language Guide: C++
|
||||
|
Loading…
x
Reference in New Issue
Block a user