コード例 #1
0
    def test_conf_sphinx(self):
        fLOG(__file__,
             self._testMethodName,
             OutputPrint=__name__ == "__main__")
        ff = os.path.abspath(os.path.dirname(__file__))
        ff = os.path.join(ff, "..", "..", "_doc", "sphinxdoc", "source",
                          "conf.py")
        assert os.path.exists(ff)
        import sphinx_rtd_theme as skip_
        d = {}
        try:
            set_sphinx_variables(
                ff,
                "pyquickhelper",
                "XD",
                2014,
                "sphinx_rtd_theme",
                None,  # sphinx_rtd_theme.theme_path,
                d,
                use_mathjax=True)
        except FileNotFoundError as e:
            if "dot.exe" in str(e) and is_travis_or_appveyor() == "appveyor":
                # we skip unless we install graphviz --> too long automated
                # build
                return
            raise e

        for k, v in sorted(d.items()):
            fLOG(k, "\t=", v)
            if k == 'version':
                self.assertEqual(
                    v.split('.')[:2],
                    pyquickhelper.__version__.split('.')[:2])
コード例 #2
0
    html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
else:
    raise NotImplementedError()

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

local_template = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                              "phdoc_templates")

set_sphinx_variables(
    __file__,
    "mlstatpy",
    "Xavier Dupré",
    2019,
    html_theme,
    html_theme_path,
    locals(),
    extlinks=dict(issue=('https://github.com/sdpython/mlstatpy/issues/%s',
                         'issue')),
    title="Machine Learning, Statistiques et Programmation",
    book=True,
    nblayout='table')

# next

blog_root = "http://www.xavierdupre.fr/app/mlstatpy/helpsphinx/"

html_context = {
    'css_files': get_default_stylesheet() + ['_static/my-styles.css'],
}
コード例 #3
0
import os
import sphinx_readable_theme
from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet

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

local_template = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                              "phdoc_templates")

set_sphinx_variables(
    __file__,
    "pandas_streaming",
    "Xavier Dupré",
    2019,
    "readable",
    sphinx_readable_theme.get_html_theme_path(),
    locals(),
    extlinks=dict(
        issue=('https://github.com/sdpython/pandas_streaming/issues/%s',
               'issue')),
    title="Streaming functionalities for pandas",
    book=True)

blog_root = "http://www.xavierdupre.fr/app/pandas_streaming/helpsphinx/"

html_context = {
    'css_files': get_default_stylesheet() + ['_static/my-styles.css'],
}

html_logo = "project_ico.png"
コード例 #4
0
# import guzzle_sphinx_theme
import pydata_sphinx_theme
from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet

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

local_template = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                              "phdoc_templates")

set_sphinx_variables(
    __file__,
    "papierstat",
    "Xavier Dupré",
    2021,
    "pydata_sphinx_theme",
    pydata_sphinx_theme.get_html_theme_path(),
    locals(),
    extlinks=dict(issue=('https://github.com/sdpython/papierstat/issues/%s',
                         'issue')),
    title="papierstat",
    book=True,
    nblayout='table')

blog_root = "http://www.xavierdupre.fr/app/papierstat/helpsphinx/"
# extensions.append('guzzle_sphinx_theme')

if False:
    html_sidebars['**'] = [
        'globaltoc.html', 'localtoc.html', 'relations.html', 'sourcelink.html',
        'searchbox.html'
    ]
コード例 #5
0
ファイル: conf.py プロジェクト: sdpython/pyquickhelper
# -*- coding: utf-8 -*-
"""
@file
@brief Configuration for sphinx documentation.
"""
import sys
import os
import sphinx_readable_theme

sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))
from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet

set_sphinx_variables(__file__, "pyquickhelper", "Xavier Dupré", 2019,
                     "readable", sphinx_readable_theme.get_html_theme_path(),
                     locals(),
                     github_repo="https://github.com/sdpython/pyquickhelper.git",
                     extlinks=dict(issue=(
                         'https://github.com/sdpython/pyquickhelper/issues/%s',
                         'issue ')),
                     link_resolve="http://www.xavierdupre.fr/app/")

# there is an issue with this attribute on Anaconda math_number_all
assert math_number_all or not math_number_all
blog_root = "http://www.xavierdupre.fr/app/pyquickhelper/helpsphinx/"

# remove notebooks following this pattern
nbneg_pattern = ".*[\\\\/]temp_.*"

html_context = {
    'css_files': get_default_stylesheet() + ['_static/my-styles.css', '_static/gallery.css'],
}
コード例 #6
0
# coding: utf-8
import sys
import os
import alabaster
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

set_sphinx_variables(
    __file__,
    "python3_module_template",
    "Xavier Dupré",
    2021,
    "alabaster",
    alabaster.get_path(),
    locals(),
    add_extensions=['alabaster'],
    extlinks=dict(
        issue=('https://github.com/sdpython/python3_module_template/issues/%s',
               'issue')))

blog_root = "http://www.xavierdupre.fr/app/python3_module_template/helpsphinx/"

notebooks_urls = "http://www.xavierdupre.fr/app/python3_module_template/helpsphinx/notebooks/"

nblinks = {
    'slideshowrst': notebooks_urls + 'slide_show.html',
}
コード例 #7
0
ファイル: conf.py プロジェクト: sdpython/csharpyml
import sys
import os
import sphinx_gallery
# import sphinx_rtd_theme
import alabaster
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

set_sphinx_variables(
    __file__,
    "csharpyml",
    "sdpython",
    2019,
    "alabaster", [alabaster.get_path()],
    locals(),
    book=True,
    extlinks=dict(issue=('https://github.com/sdpython/csharpyml/issues/%s',
                         'issue')))

blog_root = "http://www.xavierdupre.fr/app/csharpyml/helpsphinx/"
extensions.extend(['csharpyml.sphinxext.sphinx_mlext'])
html_css_files = ['my-styles.css']
nblinks = {'slideshowrst': 'http://www.xavierdupre.fr/'}


def custom_latex_processing(latex):
    """
    Processes a :epkg:`latex` file and returned the modified version.

    @param      latex       string
コード例 #8
0
# -*- coding: utf-8 -*-
import sys
import os
import alabaster
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

set_sphinx_variables(
    __file__,
    "manydataapi",
    "Xavier Dupré",
    2021,
    "alabaster",
    alabaster.get_path(),
    locals(),
    add_extensions=None,
    extlinks=dict(issue=('https://github.com/sdpython/manydataapi/issues/%s',
                         'issue')))

blog_root = "http://www.xavierdupre.fr/app/manydataapi/helpsphinx/"
blog_background = False

html_css_files = ['my-styles.css']

epkg_dictionary.update({
    "JCDecaux":
    'http://www.jcdecaux.com/fr/pour-nos-partenaires/velos-en-libre-service',
    "linkedin": 'https://www.linkedin.com/',
    "LinkedIn": 'https://www.linkedin.com/',
    'moviepy': 'https://zulko.github.io/moviepy/',
コード例 #9
0
Configuration for the documntation.
"""
import sys
import os
import sphinx_readable_theme
from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet


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

local_template = os.path.join(os.path.abspath(
    os.path.dirname(__file__)), "phdoc_templates")

set_sphinx_variables(__file__, "mlinsights", "Xavier Dupré", 2020,
                     "readable", sphinx_readable_theme.get_html_theme_path(),
                     locals(), extlinks=dict(
                         issue=('https://github.com/sdpython/mlinsights/issues/%s', 'issue')),
                     title="mlinsights", book=True)

blog_root = "http://www.xavierdupre.fr/app/mlinsights/helpsphinx/"

html_context = {
    'css_files': get_default_stylesheet() + ['_static/my-styles.css'],
}

html_logo = "phdoc_static/project_ico.png"

html_sidebars = {}

language = "en"
コード例 #10
0
ファイル: conf.py プロジェクト: pjc42/pyquickhelper
#-*- coding: utf-8 -*-
import sys
import os
import datetime
import re
import solar_theme

sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))
from pyquickhelper.helpgen.default_conf import set_sphinx_variables
set_sphinx_variables(__file__,
                     "pyquickhelper",
                     "Xavier Dupré",
                     2014,
                     "solar_theme",
                     solar_theme.theme_path,
                     locals())

blog_root = "http://www.xavierdupre.fr/app/pyquickhelper/helpsphinx/"
コード例 #11
0
try:
    from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet
except ImportError as e:
    import os
    import sys
    paths = "\n".join(sys.path)
    raise ImportError(
        "pyquickhelper is not installed. PYTHONPATH={0}\nsys.path=\n{1}".
        format(os.environ.get("PYTHONPATH", None), paths))

set_sphinx_variables(
    __file__,
    "project_name",
    "author(s)",
    2016,
    "wild",
    wild_sphinx_theme.get_theme_dir(),
    locals(),
    book=True,
    extlinks=dict(
        issue=('https://github.com/sdpython/python3_module_template/issues/%s',
               'issue')))

blog_root = "http://www.xavierdupre.fr/app/python3_module_template/helpsphinx/"

html_context = {
    'css_files': get_default_stylesheet(),
}


def custom_latex_processing(latex):
    """
コード例 #12
0
    if not os.path.exists(source):
        raise FileNotFoundError(f"Folder {source!r} not found.")
    dest = os.path.abspath(os.path.join(
        os.path.dirname(__file__), "gyexamples", "images"))
    if not os.path.exists(dest):
        os.makedirs(dest)
    for img in os.listdir(source):
        ext = os.path.splitext(img)[-1]
        if ext not in {'.png', '.jpg'}:
            continue
        shutil.copy(os.path.join(source, img), dest)


set_sphinx_variables(__file__, "onnxcustom", "Xavier Dupré", 2022,
                     "pydata_sphinx_theme", ['_static'],
                     locals(), extlinks=dict(
                         issue=('https://github.com/sdpython/onnxcustom/issues/%s', 'issue')),
                     title="onnxcustom", book=True,
                     callback_begin=callback_begin)

extensions.extend([
    "sphinxcontrib.blockdiag",
    "sphinx.ext.napoleon",
    "myst_parser",
    'mlprodict.npy.xop_sphinx',
])

html_theme_options = {
    "github_user": "******",
    "github_repo": "onnxcustom",
    "github_version": "master",
    "collapse_navigation": True,
コード例 #13
0
ファイル: conf.py プロジェクト: sdpython/mlprodict
    sys.path.append(os.path.join(this, '_exts'))
    import generate_visual_graphs
    import generate_automated_pages
    import generate_onnx_ops

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

local_template = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                              "phdoc_templates")

set_sphinx_variables(
    __file__,
    "mlprodict",
    "Xavier Dupré",
    2022,
    "pydata_sphinx_theme",
    "_static",
    locals(),
    extlinks=dict(issue=('https://github.com/sdpython/mlprodict/issues/%s',
                         'issue')),
    title="Python Runtime for ONNX",
    book=True)

blog_root = "http://www.xavierdupre.fr/app/mlprodict/helpsphinx/"
extensions.extend([
    'sphinxcontrib.blockdiag',
    'generate_automated_pages',
    'generate_visual_graphs',
    'generate_onnx_ops',
])

html_css_files = ['my-styles.css']
コード例 #14
0
# -*- coding: utf-8 -*-
import sys
import os
import alabaster
from pyquickhelper.helpgen.default_conf import set_sphinx_variables


sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))
local_template = os.path.join(os.path.abspath(
    os.path.dirname(__file__)), "phdoc_templates")

set_sphinx_variables(__file__, "wrapclib", "Xavier Dupré", 2022,
                     "alabaster", alabaster.get_path(),
                     locals(), extlinks=dict(
                         issue=('https://github.com/sdpython/wrapclib/issues/%s', 'issue')),
                     title="wrapclib", book=True)

blog_root = "http://www.xavierdupre.fr/app/wrapclib/helpsphinx/"

html_css_files = ['my-styles.css']

html_logo = "phdoc_static/project_ico.png"
html_sidebars = {}
language = "en"

epkg_dictionary.update({
    'C': 'https://en.wikipedia.org/wiki/C_(programming_language)',
    'C++': 'https://en.wikipedia.org/wiki/C%2B%2B',
    're2': 'https://github.com/google/re2',
    'pyre2': 'https://github.com/facebook/pyre2',
})
コード例 #15
0
@file
@brief Configuration for sphinx documentation.
"""
import sys
import os
import alabaster

sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))
from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet

set_sphinx_variables(
    __file__,
    "pyquickhelper",
    "Xavier Dupré",
    2020,
    "alabaster",
    alabaster.get_path(),
    locals(),
    github_repo="https://github.com/sdpython/pyquickhelper.git",
    extlinks=dict(issue=('https://github.com/sdpython/pyquickhelper/issues/%s',
                         'issue ')),
    link_resolve="http://www.xavierdupre.fr/app/")

# there is an issue with this attribute on Anaconda math_number_all
assert math_number_all or not math_number_all
blog_root = "http://www.xavierdupre.fr/app/pyquickhelper/helpsphinx/"

# remove notebooks following this pattern
nbneg_pattern = ".*[\\\\/]temp_.*"

html_context = {
    'css_files':
コード例 #16
0
import wild_sphinx_theme

try:
    from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet
except ImportError as e:
    import os
    import sys
    paths = "\n".join(sys.path)
    raise ImportError("pyquickhelper is not installed. PYTHONPATH={0}\nsys.path=\n{1}".format(
        os.environ.get("PYTHONPATH", None), paths))

set_sphinx_variables(__file__, "project_name", "author(s)", 2016,
                     "wild", wild_sphinx_theme.get_theme_dir(), locals(), book=True,
                     extlinks=dict(issue=('https://github.com/sdpython/python3_module_template/issues/%s', 'issue')))

blog_root = "http://www.xavierdupre.fr/app/python3_module_template/helpsphinx/"

html_context = {
    'css_files': get_default_stylesheet(),
}


def custom_latex_processing(latex):
    """
    process a latex file and returned the modified version
    
    @param      latex       string
    @return                 string
    """
    if latex is None:
        raise ValueError("Latex is null")
コード例 #17
0
ファイル: conf.py プロジェクト: sdpython/lecture_citation
import os
import alabaster
from pyquickhelper.helpgen.default_conf import set_sphinx_variables
import lecture_citation

sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))
local_template = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                              "phdoc_templates")

set_sphinx_variables(
    __file__,
    "lecture_citation",
    "Xavier Dupré",
    2022,
    "alabaster",
    alabaster.get_path(),
    locals(),
    extlinks=dict(
        issue=('https://github.com/sdpython/lecture_citation/issues/%s',
               'issue')),
    title="Souvenirs de lecture",
    book=True,
    nblayout='table')

blog_root = "http://www.xavierdupre.fr/app/lecture_citation/helpsphinx/"
html_search_language = "fr"
pygments_style = 'sphinx'
html_css_files = ['my-styles.css']
html_logo = "phdoc_static/project_ico.png"
language = "fr"
mathdef_link_only = True
コード例 #18
0
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], "..", "..", "..", "..", "pyensae", "src")))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], "..", "..", "..", "..", "pymmails", "src")))
sys.path.insert(
    0, os.path.abspath(os.path.join(os.path.split(__file__)[0], "..", "..", "..", "..", "pyrsslocal", "src"))
)

from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet


set_sphinx_variables(
    __file__,
    "Python dans tous ses états",
    "Xavier Dupré",
    2016,
    "sphinx_rtd_theme",
    None,
    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,
)

# do not put it back otherwise sphinx import matplotlib before setting up its backend
# for the sphinx command .. plot::
# import pyquickhelper
# import pyensae
# import pymmails
# import pyrsslocal

custom_preamble = """\n\\newcommand{\\girafedec}[3]{ \\begin{array}{ccccc} #1 &=& #2 &+& #3 \\\\ a' &=& a &-& o  \\end{array}}
コード例 #19
0
ファイル: conf.py プロジェクト: ML-FR/ensae_teaching_dl
# import sphinx_redactor_theme
# import karma_sphinx_theme
import sphinx_bootstrap_theme
from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet

sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))
local_template = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                              "phdoc_templates")

set_sphinx_variables(
    __file__,
    "ensae_teaching_dl",
    "Xavier Dupré",
    2019,
    "bootstrap",
    sphinx_bootstrap_theme.get_html_theme_path(),
    locals(),
    extlinks=dict(
        issue=('https://github.com/sdpython/ensae_teaching_dl/issues/%s',
               'issue')),
    title="ensae_teaching_dl",
    book=True)

if False:
    html_sidebars['**'] = [
        'globaltoc.html', 'localtoc.html', 'relations.html', 'sourcelink.html',
        'searchbox.html'
    ]
    html_sidebars['*'] = html_sidebars['**']
    html_sidebars[''] = html_sidebars['*']
コード例 #20
0
ファイル: conf.py プロジェクト: sdpython/jupytalk
# -*- coding: utf-8 -*-
import sys
import os
import sphinx_bootstrap_theme
from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet

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

set_sphinx_variables(__file__, "jupytalk", "Xavier Dupré", 2019,
                     "bootstrap", sphinx_bootstrap_theme.get_html_theme_path(),
                     locals(), extlinks=dict(
                         issue=('https://github.com/sdpython/jupytalk/issues/%s', 'issue')),
                     github_user="******", github_repo="jupytalk", book=True, nblayout='table')

html_theme_options = {
    'navbar_title': ".",
    'navbar_site_name': "Site",
    'navbar_links': [
        ("XD", "http://www.xavierdupre.fr", True),
        ("blog", "blog/main_0000.html", True),
        ("index", "genindex"),
    ],
    'navbar_sidebarrel': True,
    'navbar_pagenav': True,
    'navbar_pagenav_name': "Page",
    'bootswatch_theme': "readable",
    'bootstrap_version': "3",
    'source_link_position': "footer",
}

blog_root = "http://www.xavierdupre.fr/app/jupytalk/helpsphinx/"
コード例 #21
0
# coding: utf-8
import sys
import os
import alabaster
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

set_sphinx_variables(__file__, "check_python_install", "Xavier Dupré", 2021,
                     "alabaster", alabaster.get_path(), locals(), add_extensions=['alabaster'],
                     extlinks=dict(issue=('https://github.com/sdpython/_check_python_install/issues/%s', 'issue')))

blog_root = "http://www.xavierdupre.fr/app/_check_python_install/helpsphinx/"
html_logo = "phdoc_static/project_ico.png"

notebooks_urls = "http://www.xavierdupre.fr/app/_check_python_install/helpsphinx/notebooks/"

nblinks = {
    'slideshowrst': notebooks_urls + 'slide_show.html',
}

epkg_dictionary.update({
    'cartopy': 'https://scitools.org.uk/cartopy/docs/latest/',
})
コード例 #22
0
ファイル: conf.py プロジェクト: touriachi/pyensae
# -*- coding: utf-8 -*-
import sys
import os
import sphinxjp.themes.basicstrap
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

set_sphinx_variables(
    __file__,
    "pyensae",
    "Xavier Dupré",
    2019,
    "basicstrap",
    None,
    locals(),
    add_extensions=None,
    extlinks=dict(issue=('https://github.com/sdpython/pyensae/issues/%s',
                         'issue')))

blog_root = "http://www.xavierdupre.fr/app/pyensae/helpsphinx/"
blog_background = False

nblinks = {"code-r2python": blog_root + "pyensae/languages/rconverter.html"}

epkg_dictionary["antlr4"] = 'https://github.com/antlr/antlr4'
epkg_dictionary["blockdiag"] = 'http://blockdiag.com/'
epkg_dictionary["json"] = 'https://en.wikipedia.org/wiki/JSON'
epkg_dictionary[
    "manydataapi"] = 'http://www.xavierdupre.fr/app/manydataapi/helpsphinx/index.html'
epkg_dictionary["networkx"] = 'https://networkx.github.io/'
コード例 #23
0
import sys
import os
from pyquickhelper.helpgen.default_conf import set_sphinx_variables
import actuariat_python
import pydata_sphinx_theme

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

set_sphinx_variables(
    __file__,
    "Python pour un Actuaire",
    "Xavier Dupré",
    2022,
    "pydata_sphinx_theme",
    pydata_sphinx_theme.get_html_theme_path(),
    locals(),
    add_extensions=None,
    book=True,
    nblayout='table',
    extlinks=dict(
        issue=('https://github.com/sdpython/actuariat_python/issues/%s',
               'issue')),
    doc_version=actuariat_python.__version__)

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

blog_root = "http://www.xavierdupre.fr/app/actuariat_python/helpsphinx/"
blog_background = False
html_css_files = ['my-styles.css']
コード例 #24
0
            os.path.split(__file__)[0],
            "..",
            "..",
            "..",
            "..",
            "pyquickhelper",
            "src")))
sys.path.insert(
    0,
    os.path.abspath(
        os.path.join(
            os.path.split(__file__)[0],
            "..",
            "..",
            "..",
            "..",
            "pyensae",
            "src")))

from pyquickhelper.helpgen.default_conf import set_sphinx_variables

set_sphinx_variables(__file__, "pyrsslocal", "Xavier Dupré", 2016,
                     "hachibee", hachibee_sphinx_theme.get_html_themes_path(),
                     locals(), add_extensions=['hachibee_sphinx_theme'], custom_style='custom_style.css',
                     extlinks=dict(issue=('https://github.com/sdpython/pyrsslocal/issues/%s', 'issue')))

# do not put it back otherwise sphinx import matplotlib before setting up its backend
# for the sphinx command .. plot::
# import pyensae
blog_root = "http://www.xavierdupre.fr/app/pyrsslocal/helpsphinx/"
コード例 #25
0
# -*- coding: utf-8 -*-
import sys
import os
import pydata_sphinx_theme
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

set_sphinx_variables(
    __file__,
    "jupytalk",
    "Xavier Dupré",
    2021,
    "pydata_sphinx_theme",
    pydata_sphinx_theme.get_html_theme_path(),
    locals(),
    extlinks=dict(issue=('https://github.com/sdpython/jupytalk/issues/%s',
                         'issue')),
    github_user="******",
    github_repo="jupytalk",
    book=True,
    nblayout='table')

html_theme_options = {
    'navbar_title':
    "BASE",
    'navbar_site_name':
    "Site",
    'navbar_links': [
        ("XD", "http://www.xavierdupre.fr", True),
        ("blog", "blog/main_0000.html", True),
コード例 #26
0
ファイル: conf.py プロジェクト: sdpython/pymmails
# -*- coding: utf-8 -*-
import sys
import os
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

set_sphinx_variables(__file__, "pymmails", "Xavier Dupré", 2019,
                     "alabaster", None, locals(), add_extensions=None,
                     extlinks=dict(issue=('https://github.com/sdpython/pymmails/issues/%s', 'issue')))

blog_root = "http://www.xavierdupre.fr/app/pymmails/helpsphinx/"
コード例 #27
0
ファイル: conf.py プロジェクト: sdpython/ensae_projects
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))
sys.path.insert(
    0,
    os.path.abspath(
        os.path.join(
            os.path.split(__file__)[0],
            "..",
            "..",
            "..",
            "..",
            "pyquickhelper",
            "src")))

from pyquickhelper.helpgen.default_conf import set_sphinx_variables

set_sphinx_variables(__file__, "ensae_projects", "ENSAE", 2016,
                     "alabaster",  # "sphinx_py3doc_enhanced_theme",
                     None, locals(), add_extensions=["alabaster"],
                     extlinks=dict(issue=('https://github.com/sdpython/ensae_projects/issues/%s', 'issue')))

html_theme = 'alabaster'  # 'sphinx_py3doc_enhanced_theme'
# html_theme_path = [sphinx_py3doc_enhanced_theme.get_html_theme_path()]
html_theme_path = [alabaster.get_path()]

blog_root = "http://www.xavierdupre.fr/app/ensae_projects/helpsphinx/"
blog_background = False

html_context = {
    'css_files': ['_static/my-styles.css'],
}
コード例 #28
0
    this = os.path.dirname(__file__)
    sys.path.append(os.path.join(this, '_exts'))
    import generate_visual_graphs
    import generate_automated_pages

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

local_template = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                              "phdoc_templates")

set_sphinx_variables(
    __file__,
    "mlprodict",
    "Xavier Dupré",
    2019,
    "readable",
    sphinx_readable_theme.get_html_theme_path(),
    locals(),
    extlinks=dict(issue=('https://github.com/sdpython/mlprodict/issues/%s',
                         'issue')),
    title="Python Runtime for ONNX",
    book=True)

blog_root = "http://www.xavierdupre.fr/app/mlprodict/helpsphinx/"
extensions.extend([
    'generate_automated_pages',
    'generate_visual_graphs',
])

html_context = {
    'css_files':
    get_default_stylesheet() +
コード例 #29
0
import sys
import os
import sphinx_bootstrap_theme
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

local_template = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                              "phdoc_templates")

set_sphinx_variables(
    __file__,
    "pymlbenchmark",
    "Xavier Dupré",
    2022,
    "bootstrap",
    sphinx_bootstrap_theme.get_html_theme_path(),
    locals(),
    extlinks=dict(issue=('https://github.com/sdpython/pymlbenchmark/issues/%s',
                         'issue')),
    title="Benchmarks around Machine Learning with Python",
    book=False)

blog_root = "http://www.xavierdupre.fr/app/pymlbenchmark/helpsphinx/"

html_css_files = ['my-styles.css']

html_logo = "phdoc_static/project_ico.png"

language = "en"

mathdef_link_only = True
コード例 #30
0
ファイル: conf.py プロジェクト: HermogenesBatista/mlstatpy
sys.path.insert(
    0,
    os.path.abspath(
        os.path.join(
            os.path.split(__file__)[0],
            "..",
            "..",
            "..",
            "..",
            "pyquickhelper",
            "src")))

from pyquickhelper.helpgen.default_conf import set_sphinx_variables
set_sphinx_variables(__file__, "mlstatpy", "Xavier Dupré", 2016,
                     sphtheme.__name__, [
                         sphtheme.get_html_theme_path()], locals(),
                     extlinks=dict(
                         issue=('https://github.com/sdpython/mlstatpy/issues/%s', 'issue')),
                     title="Machine Learning, Statistiques et Programmation", book=True)

blog_root = "http://www.xavierdupre.fr/app/mlstatpy/helpsphinx/"

html_context = {
    'css_files': ['_static/my-styles.css'],
}

language = "fr"
custom_preamble = """\n\\newcommand{\\girafedec}[3]{ \\begin{array}{ccccc} #1 &=& #2 &+& #3 \\\\ a' &=& a &-& o  \\end{array}}
            \\newcommand{\\vecteur}[2]{\\pa{#1,\\dots,#2}}
            \\newcommand{\\N}[0]{\\mathbb{N}}
            \\newcommand{\\indicatrice}[1]{\\mathbf{1\\!\\!1}_{\\acc{#1}}}
            \\usepackage[all]{xy}
コード例 #31
0
ファイル: conf.py プロジェクト: sdpython/pyensae
# -*- coding: utf-8 -*-
import sys
import os
import sphinx_readable_theme
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

set_sphinx_variables(__file__, "pyensae", "Xavier Dupré", 2019,
                     "readable", sphinx_readable_theme.get_html_theme_path(),
                     locals(), add_extensions=None,
                     extlinks=dict(issue=('https://github.com/sdpython/pyensae/issues/%s', 'issue')))

blog_root = "http://www.xavierdupre.fr/app/pyensae/helpsphinx/"
blog_background = False

nblinks = {"code-r2python": blog_root + "pyensae/languages/rconverter.html"}

epkg_dictionary = ({
    "antlr4": 'https://github.com/antlr/antlr4',
    "blockdiag": 'http://blockdiag.com/',
    "json": 'https://en.wikipedia.org/wiki/JSON',
    "manydataapi": 'http://www.xavierdupre.fr/app/manydataapi/helpsphinx/index.html',
    "networkx": 'https://networkx.github.io/',
    "pyenbc": 'http://www.xavierdupre.fr/app/pyenbc/helpsphinx/index.html',
    "SQLite3": 'https://www.sqlite.org/index.html',
})
コード例 #32
0
#-*- coding: utf-8 -*-
import sys
import os
import datetime
import re
import sphinxjp.themes.basicstrap

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

from pyquickhelper.helpgen.default_conf import set_sphinx_variables

set_sphinx_variables(__file__, "pyensae", "Xavier Dupré", 2016,
                     "basicstrap", None, locals(), add_extensions=None,
                     extlinks=dict(issue=('https://github.com/sdpython/pyensae/issues/%s', 'issue')))

blog_root = "http://www.xavierdupre.fr/app/pyensae/helpsphinx/"
blog_background = False
exclude_patterns += ["pyensae/file_helper/pigjar/*",
                     "pyensae/file_helper/hadoopjar/*"]
コード例 #33
0
ファイル: conf.py プロジェクト: sdpython/lightmlrestapi
import os
import alabaster
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

local_template = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                              "phdoc_templates")

set_sphinx_variables(
    __file__,
    "lightmlrestapi",
    "Xavier Dupré",
    2020,
    "alabaster",
    alabaster.get_path(),
    locals(),
    extlinks=dict(
        issue=('https://github.com/sdpython/lightmlrestapi/issues/%s',
               'issue')),
    title="lightmlrestapi",
    book=True)

blog_root = "http://www.xavierdupre.fr/app/lightmlrestapi/helpsphinx/"

html_css_files = ['my-styles.css']

html_logo = "phdoc_static/project_ico.png"
html_sidebars = {}
language = "en"
コード例 #34
0
# -*- coding: utf-8 -*-
import sys
import os
import sphinx_rtd_theme
from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet


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

local_template = os.path.join(os.path.abspath(
    os.path.dirname(__file__)), "phdoc_templates")

set_sphinx_variables(__file__, "pandas_streaming", "Xavier Dupré", 2018,
                     "sphinx_rtd_theme", [
                         sphinx_rtd_theme.get_html_theme_path()],
                     locals(), extlinks=dict(
                         issue=('https://github.com/sdpython/pandas_streaming/issues/%s', 'issue')),
                     title="pandas_streaming", book=True)

blog_root = "http://www.xavierdupre.fr/app/pandas_streaming/helpsphinx/"

html_context = {
    'css_files': get_default_stylesheet() + ['_static/my-styles.css'],
}

html_logo = "project_ico.png"

html_sidebars = {}

language = "en"
custom_preamble = """\n
コード例 #35
0
ファイル: conf.py プロジェクト: sdpython/mlstatpy
    html_theme_path = [sphtheme.get_html_theme_path()]
elif choice == "bootstrap":
    import sphinx_bootstrap_theme
    html_theme = 'bootstrap'
    html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
else:
    raise NotImplementedError()

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

local_template = os.path.join(os.path.abspath(
    os.path.dirname(__file__)), "phdoc_templates")

set_sphinx_variables(__file__, "mlstatpy", "Xavier Dupré", 2019,
                     html_theme, html_theme_path, locals(),
                     extlinks=dict(
                         issue=('https://github.com/sdpython/mlstatpy/issues/%s', 'issue')),
                     title="Machine Learning, Statistiques et Programmation", book=True, nblayout='table')

# next

blog_root = "http://www.xavierdupre.fr/app/mlstatpy/helpsphinx/"

html_context = {
    'css_files': get_default_stylesheet() + ['_static/my-styles.css'],
}

html_logo = "project_ico_small.png"

if choice == "bootstrap":
    html_theme_options = {
コード例 #36
0
ファイル: conf.py プロジェクト: grapesonwang/pyensae
# -*- coding: utf-8 -*-
import sys
import os
import sphinx_readable_theme
from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet

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

set_sphinx_variables(__file__, "pyensae", "Xavier Dupré", 2020,
                     "readable", sphinx_readable_theme.get_html_theme_path(),
                     locals(), add_extensions=None,
                     extlinks=dict(issue=('https://github.com/sdpython/pyensae/issues/%s', 'issue')))

blog_root = "http://www.xavierdupre.fr/app/pyensae/helpsphinx/"
blog_background = False

html_context = {
    'css_files': get_default_stylesheet() + ['_static/my-styles.css'],
}

nblinks = {"code-r2python": blog_root + "pyensae/languages/rconverter.html"}

epkg_dictionary = ({
    "antlr4": 'https://github.com/antlr/antlr4',
    "blockdiag": 'http://blockdiag.com/',
    'GeoDataFrame': 'https://geopandas.org/reference/geopandas.GeoDataFrame.html',
    'geopandas': 'https://geopandas.org/',
    "json": 'https://en.wikipedia.org/wiki/JSON',
    "manydataapi": 'http://www.xavierdupre.fr/app/manydataapi/helpsphinx/index.html',
    "networkx": 'https://networkx.github.io/',
    "pyenbc": 'http://www.xavierdupre.fr/app/pyenbc/helpsphinx/index.html',
コード例 #37
0
import os
import alabaster
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

local_template = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                              "phdoc_templates")

set_sphinx_variables(
    __file__,
    "pandas_streaming",
    "Xavier Dupré",
    2022,
    "alabaster",
    alabaster.get_path(),
    locals(),
    extlinks=dict(
        issue=('https://github.com/sdpython/pandas_streaming/issues/%s',
               'issue')),
    title="Streaming functionalities for pandas",
    book=True)

blog_root = "http://www.xavierdupre.fr/app/pandas_streaming/helpsphinx/"

html_css_files = ['my-styles.css']

html_logo = "phdoc_static/project_ico.png"

html_sidebars = {}
コード例 #38
0
    os.path.join(os.path.abspath(os.path.split(__file__)[0])))

try:
    from conf_base import *
except ImportError:
    sys.path.append(source_path)
    from conf_base import *

set_sphinx_variables(
    __file__,
    "Python dans tous ses états",
    "Xavier Dupré",
    2019,
    "sphinx_rtd_theme",
    None,
    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')

# do not put it back otherwise sphinx import matplotlib before setting up its backend
# for the sphinx command .. plot::
# import pyquickhelper
# import pyensae
# import pymmails
# import pyrsslocal
コード例 #39
0
ファイル: conf.py プロジェクト: GuillaumeSalha/pyensae
import datetime
import re
import sphinxjp.themes.basicstrap

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

from pyquickhelper.helpgen.default_conf import set_sphinx_variables

set_sphinx_variables(__file__,
                     "pyensae",
                     "Xavier Dupré",
                     2015,
                     "basicstrap",
                     None,
                     locals(),
                     add_extensions=None)

blog_root = "http://www.xavierdupre.fr/app/pyensae/helpsphinx/"
blog_background = False
コード例 #40
0
#-*- coding: utf-8 -*-
"""
@file
@brief Configuration for sphinx documentation.
"""
import sys
import os
import datetime
import re
import solar_theme

sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))
from pyquickhelper.helpgen.default_conf import set_sphinx_variables
set_sphinx_variables(__file__, "pyquickhelper", "Xavier Dupré", 2016,
                     "solar_theme", solar_theme.theme_path, locals(),
                     github_repo="https://github.com/sdpython/pyquickhelper.git",
                     extlinks=dict(issue=(
                         'https://github.com/sdpython/pyquickhelper/issues/%s', 'issue {0} on GitHub')),
                     link_resolve="http://www.xavierdupre.fr/app/")

# there is an issue with this attribute on Anaconda math_number_all
assert math_number_all or not math_number_all
blog_root = "http://www.xavierdupre.fr/app/pyquickhelper/helpsphinx/"
コード例 #41
0
    this = os.path.dirname(__file__)
    sys.path.append(os.path.join(this, '_exts'))
    import generate_visual_graphs
    import generate_automated_pages

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

local_template = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                              "phdoc_templates")

set_sphinx_variables(
    __file__,
    "mlprodict",
    "Xavier Dupré",
    2020,
    "alabaster",
    alabaster.get_path(),
    locals(),
    extlinks=dict(issue=('https://github.com/sdpython/mlprodict/issues/%s',
                         'issue')),
    title="Python Runtime for ONNX",
    book=True)

blog_root = "http://www.xavierdupre.fr/app/mlprodict/helpsphinx/"
extensions.extend([
    'sphinxcontrib.blockdiag',
    'generate_automated_pages',
    'generate_visual_graphs',
])

html_context = {
    'css_files':
コード例 #42
0
ファイル: conf.py プロジェクト: sdpython/pysqllike
# -*- coding: utf-8 -*-
import sys
import os
import alabaster
from pyquickhelper.helpgen.default_conf import set_sphinx_variables

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

set_sphinx_variables(__file__, "pysqllike", "Xavier Dupré", 2019,
                     "alabaster", alabaster.get_path(), locals(), add_extensions=['alabaster'],
                     extlinks=dict(issue=('https://github.com/sdpython/pysqllike/issues/%s', 'issue')))

blog_root = "http://www.xavierdupre.fr/app/sqllike/helpsphinx/"
コード例 #43
0
            "..",
            "..",
            "pyrsslocal",
            "src")))
import pyquickhelper
import pyensae
import pymmails
import pyrsslocal

from pyquickhelper.helpgen.default_conf import set_sphinx_variables


set_sphinx_variables(__file__,
                     "ensae_teaching_cs",
                     "Xavier Dupré",
                     2015,
                     "sphinx_rtd_theme",
                     None,
                     locals(),
                     add_extensions=None)

project_var_name_t = "ENSAE<br />Xavier Dupré"
project_var_name = "ensae_teaching_cs"
project_var_name_1l = project_var_name_t.replace("<br />", " - ")
html_search_language = "fr"

texinfo_documents = [
    ('index',
     '%s' % project_var_name,
     '%s' % project_var_name_t,
     author,
     '%s' % project_var_name,
コード例 #44
0
# sphinx-quickstart on Fri May 10 18:35:14 2013.
#

import sys
import os
import datetime
import re
import wild_sphinx_theme

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

from pyquickhelper.helpgen.default_conf import set_sphinx_variables
set_sphinx_variables(__file__,
                     "project_name",
                     "author(s)",
                     2014,
                     "wild",
                     wild_sphinx_theme.get_theme_dir(),
                     locals())
コード例 #45
0
try:
    from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet
except ImportError as e:
    import os
    import sys
    paths = "\n".join(sys.path)
    raise ImportError(
        "pyquickhelper is not installed. PYTHONPATH='{0}'\nsys.path=\n{1}".
        format(os.environ.get("PYTHONPATH", ""), paths))

set_sphinx_variables(
    __file__,
    "python3_module_template",
    "sdpython",
    2018,
    "sphinx_rtd_theme", [sphinx_rtd_theme.get_html_theme_path()],
    locals(),
    book=True,
    extlinks=dict(
        issue=('https://github.com/sdpython/python3_module_template/issues/%s',
               'issue')))

blog_root = "http://www.xavierdupre.fr/app/python3_module_template/helpsphinx/"

html_context = {
    'css_files': get_default_stylesheet(),
}

nblinks = {'slideshowrst': 'http://www.xavierdupre.fr/'}

コード例 #46
0
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/"
blog_background = False
コード例 #47
0
        os.path.join(
            os.path.split(__file__)[0], "..", "..", "..", "..", "pymmails",
            "src")))
sys.path.insert(
    0,
    os.path.abspath(
        os.path.join(
            os.path.split(__file__)[0], "..", "..", "..", "..", "pyrsslocal",
            "src")))

from pyquickhelper.helpgen.default_conf import set_sphinx_variables

set_sphinx_variables(__file__,
                     "ensae_teaching_cs",
                     "Xavier Dupré",
                     2015,
                     "sphinx_rtd_theme",
                     None,
                     locals(),
                     add_extensions=None)

# do not put it back otherwise sphinx import matplotlib before setting up its backend
# for the sphinx command .. plot::
# import pyquickhelper
# import pyensae
# import pymmails
# import pyrsslocal

project_var_name_t = "ENSAE<br />Xavier Dupré"
project_var_name = "ensae_teaching_cs"
project_var_name_1l = project_var_name_t.replace("<br />", " - ")
html_search_language = "fr"