-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass at Sphinx documentation. Most of it still needs to be writ…
…ten :)
- Loading branch information
1 parent
a686a5a
commit ccfd92e
Showing
16 changed files
with
1,697 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{% extends "layout.html" %} | ||
{% set title = 'Overview' %} | ||
{% block body %} | ||
<h1>Welcome</h1> | ||
|
||
<p> | ||
Sphinx is a tool that makes it easy to create intelligent and beautiful | ||
documentation for Python projects, written by Georg Brandl. It was | ||
originally created to translate <a href="http://docs.python.org/dev/">the | ||
new Python documentation</a>, but has now been cleaned up in the hope that | ||
it will be useful to many other projects. (Of course, this site is also | ||
created from reStructuredText sources using Sphinx!) | ||
</p> | ||
<p> | ||
Although it is still under constant development, the following features are | ||
already present, work fine and can be seen “in action” in the | ||
Python docs: | ||
</p> | ||
<ul> | ||
<li><b>Output formats:</b> HTML (including Windows HTML Help) and LaTeX, for | ||
printable PDF versions</li> | ||
<li><b>Extensive cross-references:</b> semantic markup and automatic links | ||
for functions, classes, glossary terms and similar pieces of information</li> | ||
<li><b>Hierarchical structure:</b> easy definition of a document tree, with | ||
automatic links to siblings, parents and children</li> | ||
<li><b>Automatic indices:</b> general index as well as a module index</li> | ||
<li><b>Code handling:</b> automatic highlighting using the <a | ||
href="http://pygments.org">Pygments</a> highlighter</li> | ||
</ul> | ||
<p> | ||
Sphinx uses <a href="http://docutils.sf.net/rst.html">reStructuredText</a> | ||
as its markup language, and many of its strengths come from the power and | ||
straightforwardness of reStructuredText and its parsing and translating | ||
suite, the <a href="http://docutils.sf.net/">Docutils</a>. | ||
</p> | ||
|
||
<h2>Documentation</h2> | ||
<table class="contentstable" align="center" style="margin-left: 30px"><tr> | ||
<td width="50%"> | ||
<p class="biglink"><a class="biglink" href="{{ pathto("contents") }}">Contents</a><br> | ||
<span class="linkdescr">for a complete overview</span></p> | ||
<p class="biglink"><a class="biglink" href="{{ pathto("search") }}">Search page</a><br> | ||
<span class="linkdescr">search the documentation</span></p> | ||
</td><td width="50%"> | ||
<p class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">General Index</a><br> | ||
<span class="linkdescr">all functions, classes, terms</span></p> | ||
<p class="biglink"><a class="biglink" href="{{ pathto("modindex") }}">Module Index</a><br> | ||
<span class="linkdescr">quick access to all documented modules</span></p> | ||
</td></tr> | ||
</table> | ||
|
||
<h2>Get Sphinx</h2> | ||
<p> | ||
Sphinx is available as an <a | ||
href="http://peak.telecommunity.com/DevCenter/EasyInstall">easy-install</a>able | ||
package on the <a href="http://pypi.python.org/pypi/Sphinx">Python Package | ||
Index</a>. | ||
</p> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h3>Download</h3> | ||
|
||
<p>Get Sphinx from the <a href="http://pypi.python.org/pypi/Sphinx">Python Package | ||
Index</a>.</p> | ||
|
||
<h3>Questions? Suggestions?</h3> | ||
|
||
<p>Send them to <nobr><georg at python org></nobr>, or come to the | ||
<tt>#python-docs</tt> channel on FreeNode.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% extends "!layout.html" %} | ||
|
||
{% block rootrellink %} | ||
<li><a href="{{ pathto('index') }}">Sphinx home </a> | </li> | ||
<li><a href="{{ pathto('contents') }}">Documentation </a> »</li> | ||
{% endblock %} | ||
|
||
{% block beforerelbar %} | ||
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px"> | ||
<img src="{{ pathto("static/sphinx.png", 1) }}"> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. _builders: | ||
|
||
Builders and the environment | ||
============================ | ||
|
||
.. module:: sphinx.builder | ||
:synopsis: Available built-in builder classes. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. _concepts: | ||
|
||
Sphinx concepts | ||
=============== | ||
|
||
|
||
The TOC tree | ||
------------ | ||
|
||
|
||
Document names | ||
-------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Sphinx documentation build configuration file, created by | ||
# sphinx-quickstart.py on Sat Mar 8 21:47:50 2008. | ||
# | ||
# This file is execfile()d with the current directory set to its containing dir. | ||
# | ||
# The contents of this file are pickled, so don't put values in the namespace | ||
# that aren't pickleable (module imports are okay, they're removed automatically). | ||
# | ||
# All configuration values have a default value; values that are commented out | ||
# serve to show the default value. | ||
|
||
import sys | ||
|
||
# If your extensions are in another directory, add it here. | ||
sys.path.append('.') | ||
|
||
# General configuration | ||
# --------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be extensions | ||
# coming with Sphinx (named 'sphinx.addons.*') or your custom ones. | ||
extensions = ['ext'] | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ['.templates'] | ||
|
||
# The suffix of source filenames. | ||
source_suffix = '.rst' | ||
|
||
# The master toctree document. | ||
master_doc = 'contents' | ||
|
||
# General substitutions. | ||
project = 'Sphinx' | ||
copyright = '2008, Georg Brandl' | ||
|
||
# The default replacements for |version| and |release|, also used in various | ||
# other places throughout the built documents. | ||
# | ||
# The short X.Y version. | ||
version = '0.1' | ||
# The full version, including alpha/beta/rc tags. | ||
release = '0.1' | ||
|
||
# There are two options for replacing |today|: either, you set today to some | ||
# non-false value, then it is used: | ||
#today = '' | ||
# Else, today_fmt is used as the format for a strftime call. | ||
today_fmt = '%B %d, %Y' | ||
|
||
# List of documents that shouldn't be included in the build. | ||
#unused_docs = [] | ||
|
||
# If true, '()' will be appended to :func: etc. cross-reference text. | ||
#add_function_parentheses = True | ||
|
||
# If true, the current module name will be prepended to all description | ||
# unit titles (such as .. function::). | ||
#add_module_names = True | ||
|
||
show_authors = True | ||
|
||
# The name of the Pygments (syntax highlighting) style to use. | ||
pygments_style = 'friendly' | ||
|
||
|
||
# Options for HTML output | ||
# ----------------------- | ||
|
||
# The style sheet to use for HTML and HTML Help pages. A file of that name | ||
# must exist either in Sphinx' static/ path, or in one of the custom paths | ||
# given in html_static_path. | ||
html_style = 'sphinxdoc.css' | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = ['.static'] | ||
|
||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, | ||
# using the given strftime format. | ||
html_last_updated_fmt = '%b %d, %Y' | ||
|
||
# If true, SmartyPants will be used to convert quotes and dashes to | ||
# typographically correct entities. | ||
#html_use_smartypants = True | ||
|
||
# Content template for the index page. | ||
html_index = 'index.html' | ||
|
||
# Custom sidebar templates, maps page names to templates. | ||
html_sidebars = {'index': 'indexsidebar.html'} | ||
|
||
# Additional templates that should be rendered to pages, maps page names to | ||
# templates. | ||
#html_additional_pages = {} | ||
|
||
# If true, the reST sources are included in the HTML build as _sources/<name>. | ||
#html_copy_source = True | ||
|
||
# Output file base name for HTML help builder. | ||
htmlhelp_basename = 'Sphinxdoc' | ||
|
||
|
||
# Options for LaTeX output | ||
# ------------------------ | ||
|
||
# The paper size ('letter' or 'a4'). | ||
#latex_paper_size = 'letter' | ||
|
||
# The font size ('10pt', '11pt' or '12pt'). | ||
#latex_font_size = '10pt' | ||
|
||
# Grouping the document tree into LaTeX files. List of tuples | ||
# (source start file, target name, title, author, document class [howto/manual]). | ||
latex_documents = [('contents', 'sphinx.tex', 'Sphinx Documentation', | ||
'Georg Brandl', 'manual')] | ||
|
||
# Additional stuff for the LaTeX preamble. | ||
#latex_preamble = '' | ||
|
||
# Documents to append as an appendix to all manuals. | ||
#latex_appendices = [] |
Oops, something went wrong.