Configuration¶
The sphinx-maven
plugin has these configuration options:
Parameter |
Description |
Default value |
---|---|---|
|
The directory containing the documentation source. |
|
|
The directory containing the |
|
|
The directory where the generated output will be placed. |
|
|
The URL of the Sphinx executable binary. Must start with |
<automatic> |
|
The environment variables to set when launching Sphinx. e.g. |
|
|
The path of Graphviz |
|
|
The base name used to create the report’s output file(s). |
|
|
The name of the report. |
|
|
The description of the report. |
|
|
The builder to use. See Available builders for a list of possible builders. |
|
|
Whether Sphinx should generate verbose output. |
|
|
Whether Sphinx should print full traceback on exception. |
|
|
Whether warnings should be treated as errors. |
|
|
Whether Sphinx should generate output for all files instead of only the changed ones. |
|
|
Additional tags to pass to Sphinx. See Including content based on tags for more information. |
|
|
Whether documentation should be generated as a project report (keep default Maven site). |
|
|
Whether Sphinx execution should be skipped. |
|
|
Whether doctree cache should be used. |
|
|
The directory containing Sphinx doctree cache. Used only when |
|
|
Whether Sphinx should use ‘make mode’ ( |
|
Sample Documentation Config¶
Sphinx looks at conf.py in the documentation source directory for building the final HTML file. This file contains some basic settings for getting the desired output. The configuration used for generating the plugin documentation is given below:
# -*- coding: utf-8 -*-
import sys, os
project = u'My Project'
copyright = u'YYYY, John Doe'
version = '1.0'
release = '1.0.0'
# General options
needs_sphinx = '1.0'
master_doc = 'index'
pygments_style = 'tango'
add_function_parentheses = True
extensions = ['recommonmark', 'sphinx.ext.autodoc', 'sphinxcontrib.plantuml']
templates_path = ['_templates']
exclude_trees = ['.build']
source_encoding = 'utf-8-sig'
# HTML options
html_theme = 'sphinx_rtd_theme'
html_short_title = "my-project"
htmlhelp_basename = 'my-project-doc'
html_use_index = True
html_show_sourcelink = False
html_static_path = ['_static']
# PlantUML options
plantuml = os.getenv('plantuml')