diff --git a/src/source/conf.py b/src/source/conf.py index 1a3092b07..9cd24ad25 100644 --- a/src/source/conf.py +++ b/src/source/conf.py @@ -25,9 +25,11 @@ sys.path.insert(0, os.path.abspath('../../py/domain/')) extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax'] +source_suffix = '.rst' + templates_path = ['_templates'] -source_suffix = '.rst' +html_static_path = ['_static'] master_doc = 'index' @@ -48,65 +50,44 @@ highlight_language = 'dynare' todo_include_todos = False -html_theme = 'sphinx_rtd_theme' +html_theme = 'alabaster' -# 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 -# documentation. -# -# html_theme_options = {} +html_sidebars = { + "**": [ + "about.html", + "searchbox.html", + "navigation.html", + ] +} -# 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'] +html_theme_options = { + 'logo': 'dlogo.svg', + 'logo_name': False, + 'fixed_sidebar': True, + 'sidebar_collapse': True, + 'show_relbar_top': True, + 'show_relbar_bottom': True, + } -html_logo = 'dynarelogo.png' - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. htmlhelp_basename = 'Dynaremanual' -# -- Options for LaTeX output --------------------------------------------- - latex_elements = { - 'sphinxsetup': 'VerbatimBorderColor={rgb}{1,1,1},VerbatimColor={RGB}{240,240,240}, \ warningBorderColor={RGB}{255,50,50},OuterLinkColor={RGB}{34,139,34}, \ InnerLinkColor={RGB}{51,51,255},TitleColor={RGB}{51,51,255}', - 'papersize': 'a4paper', } -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). latex_documents = [ (master_doc, 'dynare.tex', u'Dynare Reference Manual', u'Dynare team', 'manual'), ] -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'manual', u'Dynare Reference Manual', + (master_doc, 'dynare', u'Dynare Reference Manual', [author], 1) ] -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'Dynare', u'Dynare Reference Manual', - author, 'Test', 'One line description of project.', - 'Miscellaneous'), -] - -def setup(sphinx): - from dynare import DynDomain - sphinx.add_domain(DynDomain) +def setup(app): + from dynare import DynDomain + app.add_domain(DynDomain)