Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into 441-exception-reflect…
Browse files Browse the repository at this point in the history
…iongate
  • Loading branch information
KowerKoint committed Dec 26, 2022
2 parents 7502882 + d033248 commit c6c8243
Show file tree
Hide file tree
Showing 24 changed files with 2,660 additions and 1,001 deletions.
84 changes: 41 additions & 43 deletions doc/en/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,55 @@

project = "Qulacs"

language = 'en'
locale_dirs = ['locale/']
language = "en"
locale_dirs = ["locale/"]

# The `extensions` list should already be in here from `sphinx-quickstart`
extensions = [
# there may be others here already, e.g. 'sphinx.ext.mathjax'
'breathe',
'exhale',
'myst_parser',
'nbsphinx',
'sphinx.ext.mathjax',
'sphinx_copybutton',
'sphinx.ext.napoleon',
'sphinx.ext.autodoc',
'sphinx.ext.graphviz',
'sphinx.ext.inheritance_diagram',
"breathe",
"exhale",
"myst_parser",
"nbsphinx",
"sphinx.ext.mathjax",
"sphinx_copybutton",
"sphinx.ext.napoleon",
"sphinx.ext.autodoc",
"sphinx.ext.graphviz",
"sphinx.ext.inheritance_diagram",
]

exclude_patterns = ['_build', '**.ipynb_checkpoints']
exclude_patterns = ["_build", "**.ipynb_checkpoints"]
nbsphinx_allow_errors = True
myst_enable_extensions = [
"dollarmath",
]

# source files for shpinx
source_suffix = {
'.rst': 'restructuredtext',
'.txt': 'markdown',
'.md': 'markdown',
".rst": "restructuredtext",
".txt": "markdown",
".md": "markdown",
}

# Setup the breathe extension
breathe_projects = {
"Docs": "./xml"
}
breathe_projects = {"Docs": "./xml"}

breathe_default_project = "Docs"

# Setup the exhale extension
exhale_args = {
# These arguments are required
"containmentFolder": "./api",
"rootFileName": "cpp_library_root.rst",
"rootFileTitle": "C++ API Reference",
"doxygenStripFromPath": "..",
"containmentFolder": "./api",
"rootFileName": "cpp_library_root.rst",
"rootFileTitle": "C++ API Reference",
"doxygenStripFromPath": "..",
# Suggested optional arguments
"createTreeView": True,
"createTreeView": True,
# TIP: if using the sphinx-bootstrap-theme, you need
# "treeViewIsBootstrap": True,
"exhaleExecutesDoxygen": True,
"exhaleDoxygenStdin": \
"INPUT = ../../../src/cppsim ../../../src/vqcsim \n \
"exhaleDoxygenStdin": "INPUT = ../../../src/cppsim ../../../src/vqcsim \n \
FILE_PATTERNS = *.hpp \n \
WARN_IF_UNDOCUMENTED = NO \n \
ENABLE_PREPROCESSING = YES \n \
Expand All @@ -65,47 +62,48 @@
GRAPHICAL_HIERARCHY = YES \n \
CLASS_GRAPH = YES \n \
HIDE_UNDOC_RELATIONS = YES\n \
CLASS_DIAGRAMS = YES\n"
CLASS_DIAGRAMS = YES\n",
}

# Tell sphinx what the primary language being documented is.
#primary_domain = 'cpp'
# primary_domain = 'cpp'

# Tell sphinx what the pygments highlight language should be.
#highlight_language = 'cpp'
# highlight_language = 'cpp'

#

# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
import os

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
on_rtd = os.environ.get("READTHEDOCS", None) == "True"

if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]


html_theme_options = {
# 'canonical_url': '',
# 'analytics_id': 'UA-XXXXXXX-1', # Provided by Google in your dashboard
'logo_only': False,
"logo_only": False,
# 'display_version': True,
'prev_next_buttons_location': 'bottom',
'style_external_links': False,
"prev_next_buttons_location": "bottom",
"style_external_links": False,
# 'vcs_pageview_mode': '',
'style_nav_header_background': '#004659',
"style_nav_header_background": "#004659",
# Toc options
'collapse_navigation': True,
'sticky_navigation': True,
'navigation_depth': 2,
'includehidden': True,
'titles_only': False
"collapse_navigation": True,
"sticky_navigation": True,
"navigation_depth": 2,
"includehidden": True,
"titles_only": False,
}

templates_path = ["_templates"]
html_static_path = ['_static']
html_static_path = ["_static"]

copyright = '2018 Qulacs Authors'
version = '0.1.9'
copyright = "2018 Qulacs Authors"
version = "0.5.3"
Loading

0 comments on commit c6c8243

Please sign in to comment.