Skip to content

Instantly share code, notes, and snippets.

@weaverryan
Created May 5, 2011 11:36
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weaverryan/956910 to your computer and use it in GitHub Desktop.
Save weaverryan/956910 to your computer and use it in GitHub Desktop.
Example sphinx configuration for rendering the symfony docs
import sys, os
sys.path.insert(0, os.path.abspath('./sphinx-php'))
needs_sphinx = '1.0'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',
'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.ifconfig',
'sphinx.ext.viewcode', 'sphinx.ext.extlinks', 'configurationblock']
templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.rst'
master_doc = 'index'
project = u'Symfony2'
copyright = u'2011, The Symfony2 Documentation Team'
version = os.environ.get("SYMFONY_VERSION");
if not version:
version = "master"
release = '2.0.0'
language = 'en'
exclude_patterns = []
intersphinx_mapping = {}
highlight_language = 'php'
api_url = 'http://api.symfony-reloaded.org/' + version + '/%s'
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build -c .
PAPER =
BUILDDIR = build
SOURCE = source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment