2019-04-05 10:56:47 -04:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
2022-02-09 19:53:12 -05:00
|
|
|
# Updated documentation of the configuration options is available at
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
2019-04-05 10:56:47 -04:00
|
|
|
|
|
|
|
import sys, os
|
|
|
|
|
|
|
|
#sys.path.insert(0, os.path.abspath('.'))
|
|
|
|
|
|
|
|
# -- General configuration -----------------------------------------------------
|
|
|
|
|
2022-02-09 19:53:12 -05:00
|
|
|
project = u'SymbiFlow'
|
|
|
|
basic_filename = u'symbiflow-docs'
|
|
|
|
authors = u'SymbiFlow'
|
|
|
|
copyright = authors + u', 2019'
|
2019-04-05 10:56:47 -04:00
|
|
|
|
2022-02-09 19:53:12 -05:00
|
|
|
version = ''
|
|
|
|
release = '' # The full version, including alpha/beta/rc tags.
|
2020-02-24 09:33:13 -05:00
|
|
|
|
2019-10-01 06:35:54 -04:00
|
|
|
extensions = [
|
2022-02-09 19:45:12 -05:00
|
|
|
'sphinx.ext.intersphinx',
|
2020-09-10 13:27:35 -04:00
|
|
|
'sphinx_verilog_domain'
|
2019-10-01 06:35:54 -04:00
|
|
|
]
|
2019-04-05 10:56:47 -04:00
|
|
|
|
|
|
|
numfig = True
|
|
|
|
|
|
|
|
templates_path = ['_templates']
|
|
|
|
|
2020-02-24 09:33:13 -05:00
|
|
|
source_suffix = ['.rst', '.md']
|
2019-04-05 10:56:47 -04:00
|
|
|
|
|
|
|
master_doc = 'index'
|
|
|
|
|
|
|
|
today_fmt = '%Y-%m-%d'
|
|
|
|
|
2022-02-09 19:53:12 -05:00
|
|
|
exclude_patterns = []
|
2019-04-05 10:56:47 -04:00
|
|
|
|
|
|
|
pygments_style = 'default'
|
|
|
|
|
2022-02-09 19:53:12 -05:00
|
|
|
rst_prolog = """
|
|
|
|
.. role:: raw-latex(raw)
|
|
|
|
:format: latex
|
2019-04-05 10:56:47 -04:00
|
|
|
|
2022-02-09 19:53:12 -05:00
|
|
|
.. role:: raw-html(raw)
|
|
|
|
:format: html
|
|
|
|
"""
|
2019-04-05 10:56:47 -04:00
|
|
|
|
2022-02-09 19:53:12 -05:00
|
|
|
# -- Options for HTML output ---------------------------------------------------
|
2019-04-05 10:56:47 -04:00
|
|
|
|
2019-09-27 09:23:06 -04:00
|
|
|
html_theme = "sphinx_symbiflow_theme"
|
2019-04-05 10:56:47 -04:00
|
|
|
|
2019-09-26 06:55:09 -04:00
|
|
|
html_theme_options = {
|
|
|
|
# Specify a list of menu in Header.
|
|
|
|
# Tuples forms:
|
|
|
|
# ('Name', 'external url or path of pages in the document', boolean, 'icon name')
|
|
|
|
#
|
|
|
|
# Third argument:
|
|
|
|
# True indicates an external link.
|
|
|
|
# False indicates path of pages in the document.
|
|
|
|
#
|
|
|
|
# Fourth argument:
|
|
|
|
# Specify the icon name.
|
|
|
|
# For details see link.
|
|
|
|
# https://material.io/icons/
|
|
|
|
'header_links' : [
|
|
|
|
('Home', 'index', False, 'home'),
|
|
|
|
("Website", "https://symbiflow.github.io", True, 'launch'),
|
2020-07-31 13:30:13 -04:00
|
|
|
("GitHub", "https://github.com/SymbiFlow", True, 'code')
|
2019-09-26 06:55:09 -04:00
|
|
|
],
|
|
|
|
|
|
|
|
# Customize css colors.
|
|
|
|
# For details see link.
|
|
|
|
# https://getmdl.io/customize/index.html
|
|
|
|
#
|
|
|
|
# Values: amber, blue, brown, cyan deep_orange, deep_purple, green, grey, indigo, light_blue,
|
|
|
|
# light_green, lime, orange, pink, purple, red, teal, yellow(Default: indigo)
|
|
|
|
'primary_color': 'deep_purple',
|
|
|
|
# Values: Same as primary_color. (Default: pink)
|
|
|
|
'accent_color': 'purple',
|
|
|
|
|
|
|
|
# Customize layout.
|
|
|
|
# For details see link.
|
|
|
|
# https://getmdl.io/components/index.html#layout-section
|
|
|
|
'fixed_drawer': True,
|
|
|
|
'fixed_header': True,
|
|
|
|
'header_waterfall': True,
|
|
|
|
'header_scroll': False,
|
|
|
|
|
|
|
|
# Render title in header.
|
|
|
|
# Values: True, False (Default: False)
|
|
|
|
'show_header_title': False,
|
|
|
|
# Render title in drawer.
|
|
|
|
# Values: True, False (Default: True)
|
|
|
|
'show_drawer_title': True,
|
|
|
|
# Render footer.
|
|
|
|
# Values: True, False (Default: True)
|
|
|
|
'show_footer': True
|
|
|
|
}
|
2019-04-05 10:56:47 -04:00
|
|
|
|
|
|
|
html_title = project
|
|
|
|
|
|
|
|
html_last_updated_fmt = today_fmt
|
|
|
|
|
|
|
|
html_show_sphinx = False
|
|
|
|
|
|
|
|
htmlhelp_basename = basic_filename
|
|
|
|
|
|
|
|
# -- Options for LaTeX output --------------------------------------------------
|
|
|
|
|
|
|
|
latex_documents = [
|
|
|
|
('index', basic_filename+'.tex', project,
|
|
|
|
authors, 'manual'),
|
|
|
|
]
|
|
|
|
|
|
|
|
latex_elements = {
|
|
|
|
'papersize': 'a4paper',
|
|
|
|
'pointsize': '11pt',
|
|
|
|
'fontpkg': r'''
|
|
|
|
\usepackage{charter}
|
|
|
|
\usepackage[defaultsans]{lato}
|
|
|
|
\usepackage{inconsolata}
|
|
|
|
''',
|
|
|
|
'preamble': r'''
|
|
|
|
\usepackage{multicol}
|
|
|
|
''',
|
|
|
|
'maketitle': r'''
|
|
|
|
\renewcommand{\releasename}{}
|
|
|
|
\maketitle
|
|
|
|
''',
|
|
|
|
'classoptions':',openany,oneside',
|
|
|
|
'babel': r'''
|
|
|
|
\usepackage[english]{babel}
|
|
|
|
\makeatletter
|
|
|
|
\@namedef{ver@color.sty}{}
|
|
|
|
\makeatother
|
|
|
|
\usepackage{silence}
|
|
|
|
\WarningFilter{Fancyhdr}{\fancyfoot's `E' option without twoside}
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
|
2022-02-09 19:53:12 -05:00
|
|
|
# -- Options for manual page output --------------------------------------------
|
2020-02-25 08:52:51 -05:00
|
|
|
|
2022-02-09 19:53:12 -05:00
|
|
|
man_pages = [
|
|
|
|
('index', basic_filename, project,
|
|
|
|
[authors], 1)
|
|
|
|
]
|
2022-02-09 19:45:12 -05:00
|
|
|
|
|
|
|
# -- Sphinx.Ext.InterSphinx --------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
intersphinx_mapping = {
|
|
|
|
"python": ("https://docs.python.org/3/", None),
|
|
|
|
"arch-defs": ("https://symbiflow.readthedocs.io/projects/arch-defs/en/latest/", None),
|
|
|
|
"fasm": ("https://fasm.readthedocs.io/en/latest/", None),
|
|
|
|
"prjtrellis": ("https://prjtrellis.readthedocs.io/en/latest/", None),
|
|
|
|
"prjxray": ("https://symbiflow.readthedocs.io/projects/prjxray/en/latest/", None),
|
|
|
|
"vtr": ("https://docs.verilogtorouting.org/en/latest/", None),
|
|
|
|
}
|