How to use the ablog.get_html_templates_path function in ablog

To help you get started, we’ve selected a few ablog examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bogdanvuk / pygears / docs / blog / conf.py View on Github external
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]
github purduesigbots / pros-docs / v5 / conf.py View on Github external
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'
github nemtech / nem2-docs / source / conf.py View on Github external
'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
github zmei-framework / generator / docs / conf.py View on Github external
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'
github CrossTheRoadElec / Phoenix-Documentation / source / conf.py View on Github external
# 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

ablog

A Sphinx extension that converts any documentation or personal website project into a full-fledged blog.

MIT
Latest version published 1 month ago

Package Health Score

78 / 100
Full package analysis