Changeset 599
- Timestamp:
- 17/04/09 11:12:18 (11 months ago)
- Location:
- cly/trunk/doc
- Files:
-
- 3 removed
- 5 modified
-
Makefile (modified) (1 diff)
-
api/builder.rst (modified) (1 diff)
-
conf.py (modified) (7 diffs)
-
index.rst (modified) (1 diff)
-
makedocs.py (deleted)
-
stylesheet.css (deleted)
-
tutorial.rst (modified) (2 diffs)
-
video1.py (deleted)
Legend:
- Unmodified
- Added
- Removed
-
cly/trunk/doc/Makefile
r596 r599 10 10 PAPEROPT_a4 = -D latex_paper_size=a4 11 11 PAPEROPT_letter = -D latex_paper_size=letter 12 ALLSPHINXOPTS = -d .build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .12 ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . 13 13 14 .PHONY: help clean html web pickle htmlhelp latex changes linkcheck14 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest 15 15 16 16 help: 17 17 @echo "Please use \`make <target>' where <target> is one of" 18 18 @echo " html to make standalone HTML files" 19 @echo " pickle to make pickle files (usable by e.g. sphinx-web)" 19 @echo " dirhtml to make HTML files named index.html in directories" 20 @echo " pickle to make pickle files" 21 @echo " json to make JSON files" 20 22 @echo " htmlhelp to make HTML files and a HTML help project" 23 @echo " qthelp to make HTML files and a qthelp project" 21 24 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" 22 @echo " changes to make an overview o verall changed/added/deprecated items"25 @echo " changes to make an overview of all changed/added/deprecated items" 23 26 @echo " linkcheck to check all external links for integrity" 27 @echo " doctest to run all doctests embedded in the documentation (if enabled)" 24 28 25 29 clean: 26 -rm -rf .build/*30 -rm -rf _build/* 27 31 28 32 html: 29 mkdir -p .build/html .build/doctrees 30 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) .build/html 33 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html 31 34 @echo 32 @echo "Build finished. The HTML pages are in .build/html." 35 @echo "Build finished. The HTML pages are in _build/html." 36 37 dirhtml: 38 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) _build/dirhtml 39 @echo 40 @echo "Build finished. The HTML pages are in _build/dirhtml." 33 41 34 42 pickle: 35 mkdir -p .build/pickle .build/doctrees 36 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) .build/pickle 43 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle 37 44 @echo 38 @echo "Build finished; now you can process the pickle files or run" 39 @echo " sphinx-web .build/pickle" 40 @echo "to start the sphinx-web server." 45 @echo "Build finished; now you can process the pickle files." 41 46 42 web: pickle 47 json: 48 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) _build/json 49 @echo 50 @echo "Build finished; now you can process the JSON files." 43 51 44 52 htmlhelp: 45 mkdir -p .build/htmlhelp .build/doctrees 46 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) .build/htmlhelp 53 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp 47 54 @echo 48 55 @echo "Build finished; now you can run HTML Help Workshop with the" \ 49 ".hhp project file in .build/htmlhelp." 56 ".hhp project file in _build/htmlhelp." 57 58 qthelp: 59 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) _build/qthelp 60 @echo 61 @echo "Build finished; now you can run "qcollectiongenerator" with the" \ 62 ".qhcp project file in _build/qthelp, like this:" 63 @echo "# qcollectiongenerator _build/qthelp/CLY.qhcp" 64 @echo "To view the help file:" 65 @echo "# assistant -collectionFile _build/qthelp/CLY.qhc" 50 66 51 67 latex: 52 mkdir -p .build/latex .build/doctrees 53 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) .build/latex 68 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex 54 69 @echo 55 @echo "Build finished; the LaTeX files are in .build/latex."70 @echo "Build finished; the LaTeX files are in _build/latex." 56 71 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \ 57 72 "run these through (pdf)latex." 58 73 59 74 changes: 60 mkdir -p .build/changes .build/doctrees 61 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) .build/changes 75 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes 62 76 @echo 63 @echo "The overview file is in .build/changes."77 @echo "The overview file is in _build/changes." 64 78 65 79 linkcheck: 66 mkdir -p .build/linkcheck .build/doctrees 67 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) .build/linkcheck 80 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck 68 81 @echo 69 82 @echo "Link check complete; look for any errors in the above output " \ 70 "or in .build/linkcheck/output.txt." 83 "or in _build/linkcheck/output.txt." 84 85 doctest: 86 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) _build/doctest 87 @echo "Testing of doctests in the sources finished, look at the " \ 88 "results in _build/doctest/output.txt." -
cly/trunk/doc/api/builder.rst
r595 r599 4 4 .. automodule:: cly.builder 5 5 :members: 6 :noindex: -
cly/trunk/doc/conf.py
r595 r599 2 2 # 3 3 # CLY documentation build configuration file, created by 4 # sphinx-quickstart on Tue Jun 10 18:04:10 2008.4 # sphinx-quickstart on Fri Apr 17 04:34:12 2009. 5 5 # 6 6 # This file is execfile()d with the current directory set to its containing dir. 7 7 # 8 # The contents of this file are pickled, so don't put values in the namespace9 # that aren't pickleable (module imports are okay, they're removed automatically).8 # Note that not all possible configuration values are present in this 9 # autogenerated file. 10 10 # 11 # All configuration values have a default value; values that are commented out12 # serve to show the default value.11 # All configuration values have a default; values that are commented out 12 # serve to show the default. 13 13 14 14 import sys, os 15 15 16 # If your extensions are in another directory, add it here. If the directory17 # is relative to the documentation root, use os.path.abspath to make it18 # absolute, like shown here.16 # If extensions (or modules to document with autodoc) are in another directory, 17 # add these directories to sys.path here. If the directory is relative to the 18 # documentation root, use os.path.abspath to make it absolute, like shown here. 19 19 sys.path.append(os.path.abspath('..')) 20 20 21 # General configuration 22 # --------------------- 21 # -- General configuration ----------------------------------------------------- 23 22 24 23 # Add any Sphinx extension module names here, as strings. They can be extensions 25 24 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 26 extensions = ['sphinx.ext.autodoc' ]25 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest'] 27 26 28 27 # Add any paths that contain templates here, relative to this directory. 29 templates_path = [' .templates']28 templates_path = ['_templates'] 30 29 31 30 # The suffix of source filenames. 32 31 source_suffix = '.rst' 33 32 33 # The encoding of source files. 34 #source_encoding = 'utf-8' 35 34 36 # The master toctree document. 35 37 master_doc = 'index' 36 38 37 # General substitutions.38 project = 'CLY'39 copyright = '2008, Alec Thomas'39 # General information about the project. 40 project = u'CLY' 41 copyright = u'2009, Alec Thomas' 40 42 41 # The default replacements for |version| and |release|, also used in various 42 # other places throughout the built documents. 43 # The version info for the project you're documenting, acts as replacement for 44 # |version| and |release|, also used in various other places throughout the 45 # built documents. 43 46 # 44 47 # The short X.Y version. … … 47 50 release = '1.0' 48 51 52 # The language for content autogenerated by Sphinx. Refer to documentation 53 # for a list of supported languages. 54 #language = None 55 49 56 # There are two options for replacing |today|: either, you set today to some 50 57 # non-false value, then it is used: 51 58 #today = '' 52 59 # Else, today_fmt is used as the format for a strftime call. 53 today_fmt = '%B %d, %Y'60 #today_fmt = '%B %d, %Y' 54 61 55 62 # List of documents that shouldn't be included in the build. 56 63 #unused_docs = [] 57 64 58 # List of directories, relative to source director ies, that shouldn't be searched65 # List of directories, relative to source directory, that shouldn't be searched 59 66 # for source files. 60 #exclude_dirs = [] 67 exclude_trees = ['_build'] 68 69 # The reST default role (used for this markup: `text`) to use for all documents. 70 #default_role = None 61 71 62 72 # If true, '()' will be appended to :func: etc. cross-reference text. … … 72 82 73 83 # The name of the Pygments (syntax highlighting) style to use. 74 pygments_style = 'trac' 84 pygments_style = 'sphinx' 85 86 # A list of ignored prefixes for module index sorting. 87 #modindex_common_prefix = [] 75 88 76 89 77 # Options for HTML output 78 # ----------------------- 90 # -- Options for HTML output --------------------------------------------------- 79 91 80 # The style sheet to use for HTML and HTML Help pages. A file of that name 81 # must exist either in Sphinx' static/ path, or in one of the custom paths 82 # given in html_static_path. 83 #html_style = 'default.css' 92 # The theme to use for HTML and HTML Help pages. Major themes that come with 93 # Sphinx are currently 'default' and 'sphinxdoc'. 94 html_theme = 'basic' 95 96 # Theme options are theme-specific and customize the look and feel of a theme 97 # further. For a list of options available for each theme, see the 98 # documentation. 99 #html_theme_options = {} 100 101 # Add any paths that contain custom themes here, relative to this directory. 102 #html_theme_path = [] 84 103 85 104 # The name for this set of Sphinx documents. If None, it defaults to … … 87 106 #html_title = None 88 107 89 # The name of an image file (within the static path) to place at the top of 90 # the sidebar. 108 # A shorter title for the navigation bar. Default is the same as html_title. 109 #html_short_title = None 110 111 # The name of an image file (relative to this directory) to place at the top 112 # of the sidebar. 91 113 #html_logo = None 114 115 # The name of an image file (within the static path) to use as favicon of the 116 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 117 # pixels large. 118 #html_favicon = None 92 119 93 120 # Add any paths that contain custom static files (such as style sheets) here, 94 121 # relative to this directory. They are copied after the builtin static files, 95 122 # so a file named "default.css" will overwrite the builtin "default.css". 96 html_static_path = [' static']123 html_static_path = ['_static'] 97 124 98 125 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, 99 126 # using the given strftime format. 100 html_last_updated_fmt = '%b %d, %Y'127 #html_last_updated_fmt = '%b %d, %Y' 101 128 102 129 # If true, SmartyPants will be used to convert quotes and dashes to … … 114 141 #html_use_modindex = True 115 142 116 # If true, the reST sources are included in the HTML build as _sources/<name>. 117 #html_copy_source = True 143 # If false, no index is generated. 144 #html_use_index = True 145 146 # If true, the index is split into individual pages for each letter. 147 #html_split_index = False 148 149 # If true, links to the reST sources are added to the pages. 150 #html_show_sourcelink = True 118 151 119 152 # If true, an OpenSearch description file will be output, and all pages will … … 129 162 130 163 131 # Options for LaTeX output 132 # ------------------------ 164 # -- Options for LaTeX output -------------------------------------------------- 133 165 134 166 # The paper size ('letter' or 'a4'). … … 139 171 140 172 # Grouping the document tree into LaTeX files. List of tuples 141 # (source start file, target name, title, author, document class [howto/manual]).173 # (source start file, target name, title, author, documentclass [howto/manual]). 142 174 latex_documents = [ 143 ('index', 'CLY.tex', 'CLY Documentation', 'Alec Thomas', 'manual'), 175 ('index', 'CLY.tex', u'CLY Documentation', 176 u'Alec Thomas', 'manual'), 144 177 ] 145 178 -
cly/trunk/doc/index.rst
r595 r599 1 .. CLY documentation master file, created by sphinx-quickstart on Tue Jun 10 18:04:10 2008. 1 .. CLY documentation master file, created by 2 sphinx-quickstart on Fri Apr 17 04:34:12 2009. 2 3 You can adapt this file completely to your liking, but it should at least 3 4 contain the root `toctree` directive. 4 5 5 Welcome to CLY 6 ============== 6 Welcome to CLY's documentation! 7 =============================== 7 8 8 9 -
cly/trunk/doc/tutorial.rst
r596 r599 24 24 .. code-block:: python 25 25 26 grammar = XMLGrammar( ...)26 grammar = XMLGrammar('grammar.xml', ...) 27 27 28 28 with the corresponding: … … 30 30 .. code-block:: python 31 31 32 grammar = Grammar( ...)32 grammar = Grammar(grammar, ...) 33 33 34 34
