Changeset 599

Show
Ignore:
Timestamp:
17/04/09 11:12:18 (17 months ago)
Author:
athomas
Message:

Doc cleanup.

Location:
cly/trunk/doc
Files:
3 removed
5 modified

Legend:

Unmodified
Added
Removed
  • cly/trunk/doc/Makefile

    r596 r599  
    1010PAPEROPT_a4     = -D latex_paper_size=a4 
    1111PAPEROPT_letter = -D latex_paper_size=letter 
    12 ALLSPHINXOPTS   = -d .build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . 
     12ALLSPHINXOPTS   = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . 
    1313 
    14 .PHONY: help clean html web pickle htmlhelp latex changes linkcheck 
     14.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest 
    1515 
    1616help: 
    1717        @echo "Please use \`make <target>' where <target> is one of" 
    1818        @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" 
    2022        @echo "  htmlhelp  to make HTML files and a HTML help project" 
     23        @echo "  qthelp    to make HTML files and a qthelp project" 
    2124        @echo "  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter" 
    22         @echo "  changes   to make an overview over all changed/added/deprecated items" 
     25        @echo "  changes   to make an overview of all changed/added/deprecated items" 
    2326        @echo "  linkcheck to check all external links for integrity" 
     27        @echo "  doctest   to run all doctests embedded in the documentation (if enabled)" 
    2428 
    2529clean: 
    26         -rm -rf .build/* 
     30        -rm -rf _build/* 
    2731 
    2832html: 
    29         mkdir -p .build/html .build/doctrees 
    30         $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) .build/html 
     33        $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html 
    3134        @echo 
    32         @echo "Build finished. The HTML pages are in .build/html." 
     35        @echo "Build finished. The HTML pages are in _build/html." 
     36 
     37dirhtml: 
     38        $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) _build/dirhtml 
     39        @echo 
     40        @echo "Build finished. The HTML pages are in _build/dirhtml." 
    3341 
    3442pickle: 
    35         mkdir -p .build/pickle .build/doctrees 
    36         $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) .build/pickle 
     43        $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle 
    3744        @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." 
    4146 
    42 web: pickle 
     47json: 
     48        $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) _build/json 
     49        @echo 
     50        @echo "Build finished; now you can process the JSON files." 
    4351 
    4452htmlhelp: 
    45         mkdir -p .build/htmlhelp .build/doctrees 
    46         $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) .build/htmlhelp 
     53        $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp 
    4754        @echo 
    4855        @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 
     58qthelp: 
     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" 
    5066 
    5167latex: 
    52         mkdir -p .build/latex .build/doctrees 
    53         $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) .build/latex 
     68        $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex 
    5469        @echo 
    55         @echo "Build finished; the LaTeX files are in .build/latex." 
     70        @echo "Build finished; the LaTeX files are in _build/latex." 
    5671        @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \ 
    5772              "run these through (pdf)latex." 
    5873 
    5974changes: 
    60         mkdir -p .build/changes .build/doctrees 
    61         $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) .build/changes 
     75        $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes 
    6276        @echo 
    63         @echo "The overview file is in .build/changes." 
     77        @echo "The overview file is in _build/changes." 
    6478 
    6579linkcheck: 
    66         mkdir -p .build/linkcheck .build/doctrees 
    67         $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) .build/linkcheck 
     80        $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck 
    6881        @echo 
    6982        @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 
     85doctest: 
     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  
    44.. automodule:: cly.builder 
    55   :members: 
     6   :noindex: 
  • cly/trunk/doc/conf.py

    r595 r599  
    22# 
    33# 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. 
    55# 
    66# This file is execfile()d with the current directory set to its containing dir. 
    77# 
    8 # The contents of this file are pickled, so don't put values in the namespace 
    9 # 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. 
    1010# 
    11 # All configuration values have a default value; values that are commented out 
    12 # serve to show the default value. 
     11# All configuration values have a default; values that are commented out 
     12# serve to show the default. 
    1313 
    1414import sys, os 
    1515 
    16 # If your extensions are in another directory, add it here. If the directory 
    17 # is relative to the documentation root, use os.path.abspath to make it 
    18 # 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. 
    1919sys.path.append(os.path.abspath('..')) 
    2020 
    21 # General configuration 
    22 # --------------------- 
     21# -- General configuration ----------------------------------------------------- 
    2322 
    2423# Add any Sphinx extension module names here, as strings. They can be extensions 
    2524# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 
    26 extensions = ['sphinx.ext.autodoc'] 
     25extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest'] 
    2726 
    2827# Add any paths that contain templates here, relative to this directory. 
    29 templates_path = ['.templates'] 
     28templates_path = ['_templates'] 
    3029 
    3130# The suffix of source filenames. 
    3231source_suffix = '.rst' 
    3332 
     33# The encoding of source files. 
     34#source_encoding = 'utf-8' 
     35 
    3436# The master toctree document. 
    3537master_doc = 'index' 
    3638 
    37 # General substitutions. 
    38 project = 'CLY' 
    39 copyright = '2008, Alec Thomas' 
     39# General information about the project. 
     40project = u'CLY' 
     41copyright = u'2009, Alec Thomas' 
    4042 
    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. 
    4346# 
    4447# The short X.Y version. 
     
    4750release = '1.0' 
    4851 
     52# The language for content autogenerated by Sphinx. Refer to documentation 
     53# for a list of supported languages. 
     54#language = None 
     55 
    4956# There are two options for replacing |today|: either, you set today to some 
    5057# non-false value, then it is used: 
    5158#today = '' 
    5259# Else, today_fmt is used as the format for a strftime call. 
    53 today_fmt = '%B %d, %Y' 
     60#today_fmt = '%B %d, %Y' 
    5461 
    5562# List of documents that shouldn't be included in the build. 
    5663#unused_docs = [] 
    5764 
    58 # List of directories, relative to source directories, that shouldn't be searched 
     65# List of directories, relative to source directory, that shouldn't be searched 
    5966# for source files. 
    60 #exclude_dirs = [] 
     67exclude_trees = ['_build'] 
     68 
     69# The reST default role (used for this markup: `text`) to use for all documents. 
     70#default_role = None 
    6171 
    6272# If true, '()' will be appended to :func: etc. cross-reference text. 
     
    7282 
    7383# The name of the Pygments (syntax highlighting) style to use. 
    74 pygments_style = 'trac' 
     84pygments_style = 'sphinx' 
     85 
     86# A list of ignored prefixes for module index sorting. 
     87#modindex_common_prefix = [] 
    7588 
    7689 
    77 # Options for HTML output 
    78 # ----------------------- 
     90# -- Options for HTML output --------------------------------------------------- 
    7991 
    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'. 
     94html_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 = [] 
    84103 
    85104# The name for this set of Sphinx documents.  If None, it defaults to 
     
    87106#html_title = None 
    88107 
    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. 
    91113#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 
    92119 
    93120# Add any paths that contain custom static files (such as style sheets) here, 
    94121# relative to this directory. They are copied after the builtin static files, 
    95122# so a file named "default.css" will overwrite the builtin "default.css". 
    96 html_static_path = ['static'] 
     123html_static_path = ['_static'] 
    97124 
    98125# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, 
    99126# using the given strftime format. 
    100 html_last_updated_fmt = '%b %d, %Y' 
     127#html_last_updated_fmt = '%b %d, %Y' 
    101128 
    102129# If true, SmartyPants will be used to convert quotes and dashes to 
     
    114141#html_use_modindex = True 
    115142 
    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 
    118151 
    119152# If true, an OpenSearch description file will be output, and all pages will 
     
    129162 
    130163 
    131 # Options for LaTeX output 
    132 # ------------------------ 
     164# -- Options for LaTeX output -------------------------------------------------- 
    133165 
    134166# The paper size ('letter' or 'a4'). 
     
    139171 
    140172# 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]). 
    142174latex_documents = [ 
    143   ('index', 'CLY.tex', 'CLY Documentation', 'Alec Thomas', 'manual'), 
     175  ('index', 'CLY.tex', u'CLY Documentation', 
     176   u'Alec Thomas', 'manual'), 
    144177] 
    145178 
  • 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. 
    23   You can adapt this file completely to your liking, but it should at least 
    34   contain the root `toctree` directive. 
    45 
    5 Welcome to CLY 
    6 ============== 
     6Welcome to CLY's documentation! 
     7=============================== 
    78 
    89 
  • cly/trunk/doc/tutorial.rst

    r596 r599  
    2424.. code-block:: python 
    2525    
    26     grammar = XMLGrammar(...) 
     26    grammar = XMLGrammar('grammar.xml', ...) 
    2727 
    2828with the corresponding: 
     
    3030.. code-block:: python 
    3131    
    32     grammar = Grammar(...) 
     32    grammar = Grammar(grammar, ...) 
    3333     
    3434