Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pygments_style = 'sphinx'
html_theme = 'alabaster'
html_title = "PyGears - HW Design: A Functional Approach"
html_short_title = "PyGears"
html_static_path = ['_static', '../manual/_static']
html_use_index = True
html_baseurl = "https://www.pygears.org"
html_domain_indices = False
html_show_sourcelink = True
html_favicon = '../manual/_static/pygears.ico'
# ABLOG
templates_path = [ablog.get_html_templates_path(), '_templates']
def link_posts_within_category(posts):
"""Link posts after sorting them post by published date."""
from operator import attrgetter
posts = filter(attrgetter("order"), posts)
posts = sorted(posts)
for p in posts:
p.prev = p.next = None
for i in range(0, len(posts) - 1):
try:
succ = next(
p for p in posts[i + 1:] if p.category == posts[i].category)
posts[i].next = succ
succ.prev = posts[i]
import sys
import ablog
# import pros.common.ui
# Uncomment this to build the CLI docs
sys.path.append(os.path.abspath('../sphinx-tabs/sphinx_tabs/'))
# -- General configuration ------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['tabs', 'ablog', 'sphinx_click.ext']
# Add any paths that contain templates here, relative to this directory.
templates_path = [ablog.get_html_templates_path(), '_templates']
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
source_parsers = {
}
source_suffix = '.rst'
pygments_style = 'monokai'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'PROS for V5'
copyright = u'2019, Purdue ACM SIGBots. Released under the MPL 2.0 license'
'sphinx.ext.ifconfig',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinxcontrib.examplecode',
'sphinxcontrib.mermaid',
'sphinxcontrib.viewsource',
'sphinx_tabs.tabs',
'edit-on-github',
'fulltoc',
'ablog'
]
# Add any paths that contain templates here, relative to this directory.
import ablog
templates_path = ['_templates']
templates_path.append(ablog.get_html_templates_path())
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'nem2-docs'
copyright = u'2018-2019, NEM'
author = u'NEM'
# The version info for the project you're documenting, acts as replacement for
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.ifconfig',
# 'sphinx.ext.viewcode',
# 'sphinx.ext.autosectionlabel',
'ablog'
]
import ablog
# Add any paths that contain templates here, relative to this directory.
templates_path = [
'_templates',
ablog.get_html_templates_path()
]
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = 'Zmei Generator'
copyright = '2018, Alex Rudakov'
author = 'Alex Rudakov'
# ones.
extensions = [
'sphinx.ext.autodoc',
'javasphinx',
'sphinx.ext.intersphinx',
'ablog',
'notfound.extension'
]
# Javadoc
javadoc_url_map = {
'com.ctre.phoenix' : ('http://www.ctr-electronics.com/downloads/api/java/html/', 'javadoc8'),
}
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = [ablog.get_html_templates_path()]
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# Only one langauge supported, no URL prefix
# This is only needed when deploying a non-RTD server
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
notfound_no_urls_prefix = False