diff options
Diffstat (limited to 'common/conf.py')
-rw-r--r-- | common/conf.py | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/common/conf.py b/common/conf.py index 97f8dfa..b84ff31 100644 --- a/common/conf.py +++ b/common/conf.py @@ -1,4 +1,4 @@ -import version as rtems_version +import datetime extensions = [ "sphinx.ext.autodoc", @@ -9,9 +9,12 @@ extensions = [ "sphinx.ext.intersphinx", "sphinx.ext.mathjax", "sphinxcontrib.bibtex", + "sphinxcontrib.jquery", "rtemsdomain", ] +bibtex_bibfiles = ['../common/refs.bib'] + extlinks = {'release_path': ('https://ftp.rtems.org/pub/rtems/releases', None) } # Add any paths that contain templates here, relative to this directory. @@ -28,21 +31,17 @@ master_doc = 'index' # General information about the project. project = u'RTEMS Documentation Project' -copyright = u'1988, 2020 RTEMS Project and contributors' +copyright = u'1988, ' + str(datetime.datetime.now().year) + ' RTEMS Project and contributors' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = rtems_version.version() +#version = rtems_version.version() # The full version, including alpha/beta/rc tags. -release = rtems_version.string() - -major = rtems_version.major() -minor = rtems_version.minor() -revision = rtems_version.revision() +#release = rtems_version.string() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -75,6 +74,9 @@ exclude_patterns = [] # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' +# http://www.sphinx-doc.org/en/master/usage/configuration.html#confval-numfig +numfig = True + # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] @@ -83,9 +85,9 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -import sphinx_rtd_theme_rtems -html_theme = "sphinx_rtd_theme_rtems" -html_theme_path = [sphinx_rtd_theme_rtems.get_html_theme_path()] +import sphinx_rtd_theme +html_theme = "sphinx_rtd_theme" +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -121,6 +123,12 @@ html_theme_options = { # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['build/_static'] +# These paths are either relative to html_static_path +# or fully qualified paths (eg. https://...) +html_css_files = [ + 'my-styles.css', +] + # 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' @@ -193,6 +201,7 @@ latex_elements = { \newcommand{\rtemscopyright}{%s} \usepackage{rtemsstyle} ''' % (copyright), + 'maketitle': r'\rtemsmaketitle', 'parsedliteralwraps': True, } |