|
|
|
@ -1,27 +1,9 @@
|
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# actes_princiers documentation build
|
|
|
|
# actes_princiers documentation build
|
|
|
|
# configuration file, created by sphinx-quickstart.
|
|
|
|
# configuration file, created by sphinx-quickstart.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# This file is execfile()d with the current directory set to its
|
|
|
|
|
|
|
|
# containing dir.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Note that not all possible configuration values are present in this
|
|
|
|
|
|
|
|
# autogenerated file.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# All configuration values have a default; values that are commented out
|
|
|
|
# All configuration values have a default; values that are commented out
|
|
|
|
# serve to show the default.
|
|
|
|
# serve to show the default.
|
|
|
|
|
|
|
|
|
|
|
|
# If extensions (or modules to document with autodoc) are in another directory,
|
|
|
|
|
|
|
|
# add these directories to sys.path here. If the directory is relative to the
|
|
|
|
|
|
|
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
import re
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from kedro.framework.cli.utils import find_stylesheets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#from actes_princiers import __version__ as release
|
|
|
|
|
|
|
|
release = "0.1"
|
|
|
|
release = "0.1"
|
|
|
|
|
|
|
|
|
|
|
|
# -- Project information -----------------------------------------------------
|
|
|
|
# -- Project information -----------------------------------------------------
|
|
|
|
@ -30,14 +12,10 @@ project = "actes_princiers"
|
|
|
|
author = "Jean-Damien"
|
|
|
|
author = "Jean-Damien"
|
|
|
|
|
|
|
|
|
|
|
|
# The short X.Y version.
|
|
|
|
# The short X.Y version.
|
|
|
|
version = re.match(r"^([0-9]+\.[0-9]+).*", release).group(1)
|
|
|
|
version = "0.1"
|
|
|
|
|
|
|
|
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
# If your documentation needs a minimal Sphinx version, state it here.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# needs_sphinx = '1.0'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
|
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
|
|
# ones.
|
|
|
|
# ones.
|
|
|
|
@ -55,7 +33,7 @@ extensions = [
|
|
|
|
|
|
|
|
|
|
|
|
# enable autosummary plugin (table of contents for modules/classes/class
|
|
|
|
# enable autosummary plugin (table of contents for modules/classes/class
|
|
|
|
# methods)
|
|
|
|
# methods)
|
|
|
|
autosummary_generate = True
|
|
|
|
#autosummary_generate = True
|
|
|
|
|
|
|
|
|
|
|
|
# Add any paths that contain templates here, relative to this directory.
|
|
|
|
# Add any paths that contain templates here, relative to this directory.
|
|
|
|
templates_path = ["_templates"]
|
|
|
|
templates_path = ["_templates"]
|
|
|
|
@ -82,20 +60,34 @@ exclude_patterns = ["_build", "**.ipynb_checkpoints"]
|
|
|
|
|
|
|
|
|
|
|
|
# The name of the Pygments (syntax highlighting) style to use.
|
|
|
|
# The name of the Pygments (syntax highlighting) style to use.
|
|
|
|
pygments_style = "sphinx"
|
|
|
|
pygments_style = "sphinx"
|
|
|
|
|
|
|
|
default_role = 'code'
|
|
|
|
|
|
|
|
|
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
|
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
|
|
# a list of builtin themes.
|
|
|
|
# a list of builtin themes.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# html_theme = "sphinx_rtd_theme"
|
|
|
|
html_theme = "sphinx_rtd_theme"
|
|
|
|
html_theme = "bizstyle"
|
|
|
|
|
|
|
|
|
|
|
|
html_title = "Actes Princiers"
|
|
|
|
|
|
|
|
html_short_title = "Actes Princiers"
|
|
|
|
|
|
|
|
html_show_sourcelink = False
|
|
|
|
|
|
|
|
html_show_sphinx = False
|
|
|
|
|
|
|
|
html_show_copyright = True
|
|
|
|
|
|
|
|
html_logo = "_static/logo.jpg"
|
|
|
|
|
|
|
|
copyright = '2020, Jean-Damien Genero'
|
|
|
|
|
|
|
|
|
|
|
|
# Theme options are theme-specific and customize the look and feel of a theme
|
|
|
|
# Theme options are theme-specific and customize the look and feel of a theme
|
|
|
|
# further. For a list of options available for each theme, see the
|
|
|
|
# further. For a list of options available for each theme, see the
|
|
|
|
# documentation.
|
|
|
|
# documentation.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
html_theme_options = {"collapse_navigation": False, "style_external_links": True}
|
|
|
|
html_theme_options = {
|
|
|
|
|
|
|
|
"collapse_navigation": False,
|
|
|
|
|
|
|
|
"style_external_links": True,
|
|
|
|
|
|
|
|
'display_version': False,
|
|
|
|
|
|
|
|
'logo_only': True,
|
|
|
|
|
|
|
|
# 'style_nav_header_background': 'white'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Add any paths that contain custom static files (such as style sheets) here,
|
|
|
|
# Add any paths that contain custom static files (such as style sheets) here,
|
|
|
|
# relative to this directory. They are copied after the builtin static files,
|
|
|
|
# relative to this directory. They are copied after the builtin static files,
|
|
|
|
@ -199,24 +191,24 @@ todo_include_todos = False
|
|
|
|
nbsphinx_kernel_name = "python3"
|
|
|
|
nbsphinx_kernel_name = "python3"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def remove_arrows_in_examples(lines):
|
|
|
|
#def remove_arrows_in_examples(lines):
|
|
|
|
for i, line in enumerate(lines):
|
|
|
|
# for i, line in enumerate(lines):
|
|
|
|
lines[i] = line.replace(">>>", "")
|
|
|
|
# lines[i] = line.replace(">>>", "")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def autodoc_process_docstring(app, what, name, obj, options, lines):
|
|
|
|
#def autodoc_process_docstring(app, what, name, obj, options, lines):
|
|
|
|
remove_arrows_in_examples(lines)
|
|
|
|
# remove_arrows_in_examples(lines)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def skip(app, what, name, obj, skip, options):
|
|
|
|
#def skip(app, what, name, obj, skip, options):
|
|
|
|
if name == "__init__":
|
|
|
|
# if name == "__init__":
|
|
|
|
return False
|
|
|
|
# return False
|
|
|
|
return skip
|
|
|
|
# return skip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def setup(app):
|
|
|
|
#def setup(app):
|
|
|
|
app.connect("autodoc-process-docstring", autodoc_process_docstring)
|
|
|
|
# app.connect("autodoc-process-docstring", autodoc_process_docstring)
|
|
|
|
app.connect("autodoc-skip-member", skip)
|
|
|
|
# app.connect("autodoc-skip-member", skip)
|
|
|
|
# add Kedro stylesheets
|
|
|
|
# # add Kedro stylesheets
|
|
|
|
for stylesheet in find_stylesheets():
|
|
|
|
# for stylesheet in find_stylesheets():
|
|
|
|
app.add_css_file(stylesheet)
|
|
|
|
# app.add_css_file(stylesheet)
|
|
|
|
|