doc: update for mkdocs 0.7.13

This commit is contained in:
Matthias Ringwald 2018-04-29 21:14:27 +02:00
parent e576eb5672
commit 63b4e1f271
3 changed files with 21 additions and 19 deletions

View File

@ -76,8 +76,9 @@ def main(argv):
with open(yml_file, 'r') as yin:
doc = yaml.load(yin)
for page in doc["pages"]:
source_file = md_template +"/"+ page[0]
dest_file = md_final +"/"+ page[0]
mk_file = page.values()[0]
source_file = md_template +"/"+ mk_file
dest_file = md_final +"/"+ mk_file
print("Processing %s -> %s" % (source_file, dest_file))
with open(dest_file, 'w') as mdout:
with open(source_file, 'r') as mdin:

View File

@ -62,8 +62,8 @@ def main(argv):
with open(yml_file, 'r') as yin:
doc = yaml.load(yin)
for page in doc["pages"]:
md_file = page[0]
title = page[1]
title = page.keys()[0]
md_file = page.values()[0]
with open(docs_folder +"/"+ md_file, 'r') as mdin:
aout.write("\n\n#"+ title +"\n\n")
for line in mdin:

View File

@ -1,20 +1,21 @@
site_name: BTstack Manual v1.0
site_dir: btstack
docs_dir: docs_final
extra_css: ['btstack.css']
pages:
- [index.md, Welcome]
- [quick_start.md, Quick Start]
- [architecture.md, BTstack Architecture]
- [how_to.md, How to configure BTstack]
- [protocols.md, Protocols]
- [profiles.md, Profiles]
- [gatt_services.md, Implemented GATT Services]
- [examples/examples.md, Embedded Examples]
- [chipsets.md, Chipsets]
- [porting.md, Porting to Other Platforms]
- [ports/existing_ports.md, Existing Ports]
- [integration.md, Integrating with Existing Systems]
- [appendix/apis.md, APIs]
- [appendix/events_errors.md, Events and Errors]
- [appendix/migration.md, Migration to v1.0]
- 'Welcome': index.md
- 'Quick Start': quick_start.md
- 'BTstack Architecture': architecture.md
- 'How to configure Btstack': how_to.md
- 'Protocols': protocols.md
- 'Profiles': profiles.md
- 'Implemented GATT Services': gatt_services.md
- 'Embedded Examples': examples/examples.md
- 'Chipsets': chipsets.md
- 'Porting to Other Platforms': porting.md
- 'Existing Ports': ports/existing_ports.md
- 'Integrating with Existing Systems': integration.md
- 'APIs': appendix/apis.md
- 'Eventts and Errors': appendix/events_errors.md
- 'Migration to v1.0': appendix/migration.md
theme: readthedocs