2018-10-25 16:31:53 +02:00
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
2024-01-03 10:02:21 +01:00
|
|
|
|
# Copyright © 2018-2024 Dynare Team
|
2018-10-25 19:00:35 +02:00
|
|
|
|
#
|
|
|
|
|
# This file is part of Dynare.
|
|
|
|
|
#
|
|
|
|
|
# Dynare is free software: you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
#
|
|
|
|
|
# Dynare is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2021-06-09 17:33:48 +02:00
|
|
|
|
# along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
2018-10-25 19:00:35 +02:00
|
|
|
|
|
2018-10-25 16:31:53 +02:00
|
|
|
|
import os
|
|
|
|
|
import sys
|
|
|
|
|
|
2019-02-21 16:58:18 +01:00
|
|
|
|
sys.path.insert(0, os.path.abspath('../utils'))
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
|
|
|
|
extensions = ['sphinx.ext.autodoc',
|
2020-01-08 12:33:14 +01:00
|
|
|
|
'sphinx.ext.mathjax']
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
2018-10-27 12:39:14 +02:00
|
|
|
|
source_suffix = '.rst'
|
|
|
|
|
|
2018-10-25 16:31:53 +02:00
|
|
|
|
templates_path = ['_templates']
|
|
|
|
|
|
2018-10-27 12:39:14 +02:00
|
|
|
|
html_static_path = ['_static']
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
|
|
|
|
master_doc = 'index'
|
|
|
|
|
|
|
|
|
|
project = u'Dynare'
|
2024-01-03 10:02:21 +01:00
|
|
|
|
copyright = u'1996–2024 Dynare Team'
|
2018-10-25 16:31:53 +02:00
|
|
|
|
author = u'Dynare Team'
|
|
|
|
|
|
|
|
|
|
add_function_parentheses = False
|
|
|
|
|
|
|
|
|
|
language = 'en'
|
|
|
|
|
|
|
|
|
|
exclude_patterns = []
|
|
|
|
|
|
|
|
|
|
highlight_language = 'dynare'
|
|
|
|
|
|
|
|
|
|
todo_include_todos = False
|
|
|
|
|
|
2018-10-27 12:39:14 +02:00
|
|
|
|
html_theme = 'alabaster'
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
2018-10-27 12:39:14 +02:00
|
|
|
|
html_sidebars = {
|
|
|
|
|
"**": [
|
|
|
|
|
"about.html",
|
|
|
|
|
"searchbox.html",
|
|
|
|
|
"navigation.html",
|
|
|
|
|
]
|
|
|
|
|
}
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
2018-10-27 12:39:14 +02:00
|
|
|
|
html_theme_options = {
|
|
|
|
|
'logo': 'dlogo.svg',
|
|
|
|
|
'logo_name': False,
|
|
|
|
|
'fixed_sidebar': True,
|
2018-12-01 22:56:47 +01:00
|
|
|
|
'page_width': '100%',
|
|
|
|
|
}
|
2018-10-25 16:31:53 +02:00
|
|
|
|
|
|
|
|
|
htmlhelp_basename = 'Dynaremanual'
|
|
|
|
|
|
|
|
|
|
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',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
latex_documents = [
|
2019-02-21 16:58:18 +01:00
|
|
|
|
(master_doc, 'dynare-manual.tex', u'Dynare Reference Manual',
|
2018-10-25 16:31:53 +02:00
|
|
|
|
u'Dynare team', 'manual'),
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
man_pages = [
|
2018-10-27 12:39:14 +02:00
|
|
|
|
(master_doc, 'dynare', u'Dynare Reference Manual',
|
2018-10-25 16:31:53 +02:00
|
|
|
|
[author], 1)
|
|
|
|
|
]
|
|
|
|
|
|
2018-10-27 12:39:14 +02:00
|
|
|
|
def setup(app):
|
2019-02-19 09:32:45 +01:00
|
|
|
|
from dynare_dom import DynareDomain
|
|
|
|
|
from dynare_lex import DynareLexer
|
2021-10-01 17:37:17 +02:00
|
|
|
|
app.add_lexer("dynare", DynareLexer)
|
2019-02-19 09:32:45 +01:00
|
|
|
|
app.add_domain(DynareDomain)
|