From 299e0d735bf9f1b1c68c713ec9142a300d3f00df Mon Sep 17 00:00:00 2001 From: Max Hurl Date: Thu, 13 Sep 2012 14:50:23 +0100 Subject: [PATCH] First draft of improved config based markdown converter --- docs-settings.yaml | 42 ++++++++++ docs/template.html | 10 ++- mkdocs.py | 185 ++++++++++++++++++++++++++++++++++++--------- 3 files changed, 199 insertions(+), 38 deletions(-) create mode 100644 docs-settings.yaml diff --git a/docs-settings.yaml b/docs-settings.yaml new file mode 100644 index 000000000..f76a30836 --- /dev/null +++ b/docs-settings.yaml @@ -0,0 +1,42 @@ +# Documentation settings for django rest framework +language: python + +docs_dir: docs +html_dir: docs/html + +base_url: http://tomchristie.github.com/django-rest-framework + +project_title: Django REST framework + +index_file: index.md + +version_number: 2.0.0 + +static_dirs: + - source: docs/static/css + target: css + - source: docs/static/js + target: js + - source: docs/static/img + target: img + + +#navigation and files +nav: + - section: + title: Home + file: index.md + - section: + title: Tutorial + pages: + - file: tutorial/1-serialization.md + title: 1 - Serialization + - file: tutorial/2-requests-and-responses.md + title: 2 - Requests and responses + - section: + title: API Guide + pages: + - file: api-guide/requests.md + title: Requests + - file: api-guide/responses.md + title: Responses \ No newline at end of file diff --git a/docs/template.html b/docs/template.html index f20aabac7..27b5d7d43 100644 --- a/docs/template.html +++ b/docs/template.html @@ -1,7 +1,7 @@ - Django REST framework + {{ project_title }} @@ -18,6 +18,8 @@ + {{ navigation }} +