Ejemplo n.º 1
0
# -*- coding: utf-8 -*-
import sys
import os
from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet
import ensae_teaching_cs
import pydata_sphinx_theme

sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))

set_sphinx_variables(
    __file__,
    "Python dans tous ses états",
    "Xavier Dupré",
    2021,
    "pydata_sphinx_theme",
    pydata_sphinx_theme.get_html_theme_path(),
    locals(),
    add_extensions=None,
    github_repo="https://github.com/sdpython/ensae_teaching_cs.git",
    extlinks=dict(
        issue=('https://github.com/sdpython/ensae_teaching_cs/issues/%s',
               'issue')),
    book=True,
    nblayout='table',
    doc_version=ensae_teaching_cs.__version__)

html_logo = "phdoc_static/project_ico_small.png"
language = "fr"
html_split_index = True

blog_root = "http://www.xavierdupre.fr/app/ensae_teaching_cs/helpsphinx/"
Ejemplo n.º 2
0
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = "borland"

# A list of prefixs that are ignored when creating the module index. (new in Sphinx 0.6)
modindex_common_prefix = ["cfpq_data."]

doctest_global_setup = "import cfpq_data"

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages.  See the documentation for
# a list of builtin themes.
#
html_theme = "pydata_sphinx_theme"
html_theme_path = get_html_theme_path()

html_theme_options = {
    "icon_links": [
        {
            "name": "GitHub",
            "url": "https://github.com/JetBrains-Research/CFPQ_Data",
            "icon": "fab fa-github",
        },
        {
            "name": "PyPI",
            "url": "https://pypi.org/project/cfpq-data/",
            "icon": "fas fa-box",
        },
    ],
}