From 33e30aacc3b69b5d90b32d4d8e16bc9c77c43835 Mon Sep 17 00:00:00 2001 From: Alexey Shamrin Date: Wed, 15 Mar 2006 13:39:11 +0000 Subject: [PATCH] Tutorial draft (not finished) and documentation framework improvements * a first step to a new documentation framework, using Markdown syntax, with some extensions (detailed in txt2myt.py docstrings): * `rel:something` for internal links * `{@name=something}` to override default header names (used when linking) * `{python}` to force code block to use Python syntax highlighting (not needed when using examples with `>>>` prompt) * txt2myt.py -- converter from .txt to .myt * a draft of tutorial.txt, which uses new syntax * testdocs.py -- check examples in documentation using doctest (currently only in tutorial.txt) --- doc/build/content/document_base.myt | 1 + doc/build/content/trailmap.myt | 7 +- doc/build/content/tutorial.txt | 151 +++ doc/build/lib/markdown.py | 1746 +++++++++++++++++++++++++++ doc/build/testdocs.py | 49 + doc/build/txt2myt.py | 250 ++++ 6 files changed, 2201 insertions(+), 3 deletions(-) create mode 100644 doc/build/content/tutorial.txt create mode 100644 doc/build/lib/markdown.py create mode 100644 doc/build/testdocs.py create mode 100644 doc/build/txt2myt.py diff --git a/doc/build/content/document_base.myt b/doc/build/content/document_base.myt index f37857e25f..f45a022e10 100644 --- a/doc/build/content/document_base.myt +++ b/doc/build/content/document_base.myt @@ -3,6 +3,7 @@ <%python scope="global"> files = [ + 'tutorial', 'trailmap', 'pooling', 'dbengine', diff --git a/doc/build/content/trailmap.myt b/doc/build/content/trailmap.myt index d672b07886..e0ea2d1b6c 100644 --- a/doc/build/content/trailmap.myt +++ b/doc/build/content/trailmap.myt @@ -1,7 +1,8 @@ <%flags>inherit='document_base.myt' -<%attr>title='Introduction' -<&|doclib.myt:item, name="intro", description="Introduction" &> -

SQLAlchemy features a lot of tools and patterns to help in every area of writing applications that talk to relational databases. To achieve this, it has a lot of areas of functionality which work together to provide a cohesive package. Ultimately, just a little bit of familiarity with each concept is all thats needed to get off the ground.

+<%attr>title='How to Read this Manual' +<&|doclib.myt:item, name="howtoread", description="How to Read this Manual" &> + +

SQLAlchemy features a lot of tools and patterns to help in every area of writing applications that talk to relational databases. To achieve this, it has a lot of areas of functionality which work together to provide a cohesive package. Ultimately, just a little bit of familiarity with each concept is all that's needed to get off the ground.

That said, here's two quick links that summarize the two most prominent features of SQLAlchemy: