2014-11-20 12:14:45 +00:00
|
|
|
# icalendar documentation build configuration file
|
2024-06-21 00:20:46 +00:00
|
|
|
import importlib.metadata
|
2014-11-20 12:14:45 +00:00
|
|
|
import datetime
|
2015-01-19 13:26:09 +00:00
|
|
|
import os
|
2014-11-20 12:14:45 +00:00
|
|
|
|
|
|
|
extensions = [
|
2025-03-19 11:50:49 +00:00
|
|
|
"sphinx.ext.autodoc",
|
|
|
|
"sphinx.ext.coverage",
|
|
|
|
"sphinx.ext.viewcode",
|
|
|
|
"sphinx_copybutton",
|
|
|
|
"sphinx.ext.intersphinx",
|
|
|
|
"sphinx.ext.autosectionlabel",
|
2025-05-02 16:58:39 +00:00
|
|
|
"sphinx.ext.napoleon",
|
2014-11-20 12:14:45 +00:00
|
|
|
]
|
2025-03-19 11:50:49 +00:00
|
|
|
source_suffix = ".rst"
|
|
|
|
master_doc = "index"
|
2011-08-17 22:07:32 +00:00
|
|
|
|
2025-03-19 11:50:49 +00:00
|
|
|
project = "icalendar"
|
2014-09-05 10:05:43 +00:00
|
|
|
this_year = datetime.date.today().year
|
2025-03-19 11:50:49 +00:00
|
|
|
copyright = f"{this_year}, Plone Foundation"
|
2025-04-22 23:44:20 +00:00
|
|
|
release = version = importlib.metadata.version("icalendar")
|
2011-08-17 22:07:32 +00:00
|
|
|
|
|
|
|
|
2025-04-22 23:44:20 +00:00
|
|
|
# -- 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_options = {
|
|
|
|
"icon_links": [
|
|
|
|
{
|
|
|
|
"name": "GitHub",
|
|
|
|
"url": "https://github.com/collective/icalendar",
|
|
|
|
"icon": "fa-brands fa-square-github",
|
|
|
|
"type": "fontawesome",
|
|
|
|
"attributes": {
|
|
|
|
"target": "_blank",
|
|
|
|
"rel": "noopener me",
|
|
|
|
"class": "nav-link custom-fancy-css"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "PyPI",
|
|
|
|
"url": "https://pypi.org/project/icalendar",
|
|
|
|
"icon": "fa-custom fa-pypi",
|
|
|
|
"type": "fontawesome",
|
|
|
|
"attributes": {
|
|
|
|
"target": "_blank",
|
|
|
|
"rel": "noopener me",
|
|
|
|
"class": "nav-link custom-fancy-css"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"navigation_with_keys": True,
|
|
|
|
"search_bar_text": "Search",
|
|
|
|
"show_nav_level": 2,
|
|
|
|
"show_toc_level": 2,
|
|
|
|
"use_edit_page_button": True,
|
|
|
|
}
|
|
|
|
pygments_style = "sphinx"
|
|
|
|
html_context = {
|
|
|
|
# "github_url": "https://github.com", # or your GitHub Enterprise site
|
|
|
|
"github_user": "collective",
|
|
|
|
"github_repo": "icalendar",
|
|
|
|
"github_version": "main",
|
|
|
|
"doc_path": "docs",
|
|
|
|
}
|
2025-03-19 11:50:49 +00:00
|
|
|
htmlhelp_basename = "icalendardoc"
|
2011-08-17 22:07:32 +00:00
|
|
|
|
2025-01-17 16:41:09 +00:00
|
|
|
|
2025-04-22 23:44:20 +00:00
|
|
|
# -- Intersphinx configuration ----------------------------------
|
|
|
|
|
|
|
|
# This extension can generate automatic links to the documentation of objects
|
|
|
|
# in other projects. Usage is simple: whenever Sphinx encounters a
|
|
|
|
# cross-reference that has no matching target in the current documentation set,
|
|
|
|
# it looks for targets in the documentation sets configured in
|
|
|
|
# intersphinx_mapping. A reference like :py:class:`zipfile.ZipFile` can then
|
|
|
|
# linkto the Python documentation for the ZipFile class, without you having to
|
|
|
|
# specify where it is located exactly.
|
|
|
|
#
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html
|
2025-01-17 16:41:09 +00:00
|
|
|
intersphinx_mapping = {
|
|
|
|
"python": ("https://docs.python.org/3", None),
|
|
|
|
}
|
2025-04-22 23:44:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
man_pages = [("index", "icalendar", "icalendar Documentation", ["Plone Foundation"], 1)]
|
|
|
|
|