Skip to content
Snippets Groups Projects
Select Git revision
  • 989bff85d841abb353f41ab4128f8d57fb800e80
  • master default protected
  • develop
3 results

something.py

Blame
  • conf.py 1.66 KiB
    """Configuration file for the Sphinx documentation builder.
    
    This file only contains a selection of the most common options. For a full
    list see the documentation:
    https://www.sphinx-doc.org/en/master/usage/configuration.html
    """
    
    # -- Path setup ----------------------------------------------------------------
    from datetime import datetime
    
    # -- Project information -------------------------------------------------------
    project = "eralchemy"
    author = "Alexis Benoist"
    copyright = f"2015-{datetime.now().year}, {author}"
    release = "1.5.0"
    
    # -- General configuration -----------------------------------------------------
    extensions = [
        "sphinx_copybutton",
        "sphinx.ext.napoleon",
        "sphinx.ext.viewcode",
        "sphinx.ext.intersphinx",
        "sphinx_design",
    ]
    exclude_patterns = ["**.ipynb_checkpoints"]
    templates_path = ["_template"]
    
    # -- Options for HTML output ---------------------------------------------------
    html_theme = "pydata_sphinx_theme"
    html_static_path = ["_static"]
    html_theme_options = {
        "logo": {
            "text": project,
        },
        "use_edit_page_button": True,
        "icon_links": [
            {
                "name": "GitHub",
                "url": "https://github.com/eralchemy/eralchemy",
                "icon": "fa-brands fa-github",
            },
            {
                "name": "Pypi",
                "url": "https://pypi.org/project/eralchemy/",
                "icon": "fa-brands fa-python",
            },
        ],
    }
    html_context = {
        "github_user": "eralchemy",
        "github_repo": "eralchemy",
        "github_version": "",
        "doc_path": "docs",
    }
    html_css_files = ["custom.css"]
    
    # -- Options for intersphinx output --------------------------------------------
    intersphinx_mapping = {}