|
|
|
@ -21,7 +21,6 @@ import subprocess
|
|
|
|
|
if os.getenv('READTHEDOCS', False) and not os.path.exists('riscemu.rst'):
|
|
|
|
|
subprocess.check_call(['../../generate-docs.sh', 'generate'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -- Project information -----------------------------------------------------
|
|
|
|
|
|
|
|
|
|
project = 'RiscEmu'
|
|
|
|
@ -31,20 +30,20 @@ author = 'Anton Lydike'
|
|
|
|
|
# The full version, including alpha/beta/rc tags
|
|
|
|
|
release = '0.1.0'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
|
|
|
|
|
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
|
|
|
# ones.
|
|
|
|
|
extensions = [
|
|
|
|
|
'sphinx.ext.autodoc'
|
|
|
|
|
'sphinx.ext.autodoc',
|
|
|
|
|
'recommonmark'
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# autodoc options
|
|
|
|
|
autodoc_default_options = {
|
|
|
|
|
'members': True,
|
|
|
|
|
'member-order': 'bysource',
|
|
|
|
|
'members': True,
|
|
|
|
|
'member-order': 'bysource',
|
|
|
|
|
'special-members': '__init__',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -54,8 +53,16 @@ templates_path = ['_templates']
|
|
|
|
|
# List of patterns, relative to source directory, that match files and
|
|
|
|
|
# directories to ignore when looking for source files.
|
|
|
|
|
# This pattern also affects html_static_path and html_extra_path.
|
|
|
|
|
exclude_patterns = []
|
|
|
|
|
# Markdown support
|
|
|
|
|
|
|
|
|
|
from recommonmark.parser import CommonMarkParser
|
|
|
|
|
|
|
|
|
|
# The suffix of source filenames.
|
|
|
|
|
source_suffix = ['.rst', '.md']
|
|
|
|
|
|
|
|
|
|
source_parsers = {
|
|
|
|
|
'.md': CommonMarkParser,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
|
|
|
|
|
|
|
@ -64,6 +71,8 @@ exclude_patterns = []
|
|
|
|
|
#
|
|
|
|
|
html_theme = 'alabaster'
|
|
|
|
|
|
|
|
|
|
pygments_style = 'sphinx'
|
|
|
|
|
|
|
|
|
|
# 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".
|
|
|
|
@ -71,7 +80,6 @@ html_static_path = ['_static']
|
|
|
|
|
|
|
|
|
|
sys.path.insert(0, os.path.abspath('../../'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if os.getenv('READTHEDOCS', False):
|
|
|
|
|
import sphinx_rtd_theme
|
|
|
|
|
|
|
|
|
|