Plex-Meta-Manager/docs/conf.py

367 lines
16 KiB
Python
Raw Normal View History

2022-03-08 08:06:22 +00:00
# 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 --------------------------------------------------------------
import datetime
import sys
from os.path import abspath, dirname
# 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 os
import sphinx_bootstrap_theme
path = dirname(abspath(__file__))
sys.path.append(path)
# -- Project information -----------------------------------------------------
project = "Plex Meta Manager Wiki"
author = "Nathan Taggart"
copyright = f"{datetime.datetime.now().year}"
# The full version, including alpha/beta/rc tags
2022-03-08 08:07:59 +00:00
with open("../VERSION") as f:
2022-03-08 08:06:22 +00:00
release = f.readline()
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named "sphinx.ext.*") or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.coverage',
'sphinx.ext.viewcode',
'sphinx.ext.napoleon',
'sphinx.ext.todo',
'myst_parser',
'sphinx_inline_tabs',
2022-06-20 18:33:27 +00:00
'sphinx_copybutton',
'sphinx_reredirects'
2022-03-08 08:06:22 +00:00
]
source_suffix = ['.rst', '.md']
myst_heading_anchors = 4
# -- Napoleon Settings -----------------------------------------------------
napoleon_google_docstring = True
napoleon_numpy_docstring = False
napoleon_include_init_with_doc = False
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = False
napoleon_use_admonition_for_examples = False
napoleon_use_admonition_for_notes = False
napoleon_use_admonition_for_references = False
napoleon_use_ivar = True
napoleon_use_param = True
napoleon_use_rtype = True
napoleon_use_keyword = True
autodoc_member_order = 'bysource'
add_module_names = False
master_doc = 'index'
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# -- 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 = "nature"
html_theme = "bootstrap"
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
# (Optional) Logo. Should be small enough to fit the navbar (ideally 24x24).
# Path should be relative to the ``_static`` files directory.
2022-05-25 18:42:24 +00:00
html_logo = "_static/logo-white.png"
html_favicon = "_static/favicon.png"
2022-03-08 08:06:22 +00:00
html_copy_source = False
html_show_sourcelink = False
2022-06-20 18:33:27 +00:00
# Redirect URLs
# "<source>": "<target>"
redirects = {
"redact": "https://regex101.com/r/DMo1DQ/latest"
}
2022-03-08 08:06:22 +00:00
# Theme options are theme-specific and customize the look and feel of a
# theme further.
html_theme_options = {
# Tab name for entire site. (Default: "Site")
'navbar_site_name': "Table of Contents",
# A list of tuples containing pages or urls to link to.
# Valid tuples should be in the following forms:
# (name, page) # a link to a page
# (name, "/aa/bb", 1) # a link to an arbitrary relative url
# (name, "http://example.com", True) # arbitrary absolute url
# Note the "1" or "True" value above as the third argument to indicate
# an arbitrary url.
'navbar_links': [
("_menu", "Essentials", [
("Plex Meta Manager", "index"),
("_divider", ),
("_menu", "Installation", [
("Installing Plex Meta Manager", "home/installation"),
("_divider", ),
("Local Walkthrough", "home/guides/local"),
("Docker Walkthrough", "home/guides/docker"),
2022-04-06 20:51:24 +00:00
("QNAP Walkthrough", "home/guides/qnap"),
2022-03-08 08:06:22 +00:00
("unRAID Walkthrough", "home/guides/unraid"),
("Kubernetes Walkthrough", "home/guides/kubernetes"),
2022-05-18 17:23:09 +00:00
("Docker images", "home/guides/alternative-docker"),
2022-03-08 08:06:22 +00:00
]),
("Run Commands & Environment Variables", "home/environmental"),
2022-07-21 21:01:53 +00:00
("Knowledgebase/FAQ", "home/kb"),
2022-03-08 08:06:22 +00:00
("_divider", ),
("Configuration File", "config/configuration"),
2022-05-19 16:09:28 +00:00
("Log Files", "home/logs"),
2022-04-18 18:16:39 +00:00
("Metadata Files", "metadata/metadata"),
("Overlay Files", "metadata/overlay"),
("Playlist Files", "metadata/playlist"),
2022-03-08 08:06:22 +00:00
("_divider", ),
2022-05-26 16:16:04 +00:00
("Default Metadata & Overlays Files", "home/guides/defaults"),
2022-03-08 08:06:22 +00:00
("Scheduling Guide", "home/guides/scheduling"),
("Image Asset Directory Guide", "home/guides/assets"),
2022-04-01 06:39:23 +00:00
("Formula 1 Metadata Guide", "home/guides/formula"),
2022-03-08 08:06:22 +00:00
("_divider", ),
2022-05-19 16:09:28 +00:00
("User Configs Repository", "https://github.com/meisnate12/Plex-Meta-Manager-Configs", True),
2022-03-08 08:06:22 +00:00
("Discord Server", "https://discord.gg/NfH6mGFuAB", True),
("Sponsor", "https://github.com/sponsors/meisnate12", True),
("Acknowledgements", "home/acknowledgements"),
]),
("_menu", "Config", [
("Configuration File", "config/configuration"),
2022-06-20 18:33:27 +00:00
("Redacting Your Config", "redact"),
2022-03-08 08:06:22 +00:00
("_divider", ),
2022-04-10 05:48:23 +00:00
("Libraries/Playlists", "config/libraries"),
("Path Types", "config/paths"),
("Operations", "config/operations"),
("Settings", "config/settings"),
2022-04-10 05:48:23 +00:00
("Webhooks", "config/webhooks"),
("_divider", ),
("Plex", "config/plex"),
("Tautulli", "config/tautulli"),
("Radarr", "config/radarr"),
("Sonarr", "config/sonarr"),
("_divider", ),
("TMDb", "config/tmdb"),
("Trakt", "config/trakt"),
("MdbList", "config/mdblist"),
("OMDb", "config/omdb"),
("AniDB", "config/anidb"),
("MyAnimeList", "config/myanimelist"),
("Notifiarr", "config/notifiarr"),
2022-03-08 08:06:22 +00:00
]),
2022-09-27 06:19:29 +00:00
("_menu", "Defaults", [
("PMM Defaults", "defaults/readme"),
2022-10-03 13:13:06 +00:00
("PMM Files", "defaults/files"),
2022-09-27 06:19:29 +00:00
("_divider", ),
("_menu", "Award Collections", [
("Awards Separator", "defaults/award/separator"),
("_divider", ),
("Academy Awards (Oscars)", "defaults/award/oscars"),
2022-10-05 15:30:53 +00:00
("British Academy of Film Awards", "defaults/award/bafta"),
2022-09-27 06:19:29 +00:00
("Cannes File Festival Awards", "defaults/award/cannes"),
("Critics Choice Awards", "defaults/award/choice"),
("Emmy Awards", "defaults/award/emmy"),
2022-10-03 13:13:06 +00:00
("Golden Globe Awards", "defaults/award/golden"),
2022-09-27 06:19:29 +00:00
("Independent Spirit Awards", "defaults/award/spirit"),
("Sundance File Festival Awards", "defaults/award/sundance"),
("Other Awards", "defaults/award/other"),
]),
("_menu", "Chart Collections", [
("Chart Separator", "defaults/chart/separator"),
("_divider", ),
2022-10-03 13:13:06 +00:00
("Basic Charts", "defaults/chart/basic"),
2022-09-27 06:19:29 +00:00
("AniList Charts", "defaults/chart/anilist"),
2022-10-03 13:13:06 +00:00
("Flixpatrol Charts", "defaults/chart/flixpatrol"),
2022-09-27 06:19:29 +00:00
("IMDb Charts", "defaults/chart/imdb"),
("MyAnimeList Charts", "defaults/chart/myanimelist"),
("Tautulli Charts", "defaults/chart/tautulli"),
("TMDb Charts", "defaults/chart/tmdb"),
("Trakt Charts", "defaults/chart/trakt"),
("Other Charts", "defaults/chart/other"),
]),
("_menu", "Movie Collections", [
("Actor Collections", "defaults/both/actor"),
("Audio Language Collections", "defaults/both/audio_language"),
("Content Ratings (US) Collections", "defaults/movie/content_rating_us"),
("Content Ratings (UK) Collections", "defaults/both/content_rating_uk"),
("Country Collections", "defaults/movie/country"),
("Decade Collections", "defaults/movie/decade"),
("Director Collections", "defaults/movie/director"),
("Franchise Collections", "defaults/movie/franchise"),
2022-10-03 13:13:06 +00:00
("Genre Collections", "defaults/both/genre"),
2022-09-27 06:19:29 +00:00
("Producer Collections", "defaults/movie/producer"),
2022-10-03 13:13:06 +00:00
("Resolution Collections", "defaults/both/resolution"),
("Resolution Standards Collections", "defaults/both/resolution_standards"),
2022-09-27 06:19:29 +00:00
("Seasonal Collections", "defaults/movie/seasonal"),
2022-10-03 13:13:06 +00:00
("Streaming Collections", "defaults/both/streaming"),
("Studio Collections", "defaults/both/studio"),
("Subtitle Language Collections", "defaults/both/subtitle_language"),
2022-09-27 06:19:29 +00:00
("Universe Collections", "defaults/movie/universe"),
("Writer Collections", "defaults/movie/writer"),
2022-10-03 13:13:06 +00:00
("Year Collections", "defaults/both/year"),
2022-09-27 06:19:29 +00:00
]),
("_menu", "Show Collections", [
("Actor Collections", "defaults/both/actor"),
("Audio Language Collections", "defaults/both/audio_language"),
("Content Ratings (US) Collections", "defaults/show/content_rating_us"),
("Content Ratings (UK) Collections", "defaults/both/content_rating_uk"),
2022-10-03 13:13:06 +00:00
("Country Collections", "defaults/show/country"),
("Decade Collections", "defaults/show/decade"),
("Franchise Collections", "defaults/show/franchise"),
2022-09-27 06:19:29 +00:00
("Genre Collections", "defaults/both/genre"),
2022-10-03 13:13:06 +00:00
("Network Collections", "defaults/show/network"),
2022-09-27 06:19:29 +00:00
("Resolution Collections", "defaults/both/resolution"),
("Resolution Standards Collections", "defaults/both/resolution_standards"),
("Streaming Collections", "defaults/both/streaming"),
("Studio Collections", "defaults/both/studio"),
("Subtitle Language Collections", "defaults/both/subtitle_language"),
("Year Collections", "defaults/both/year"),
]),
2022-10-03 20:40:11 +00:00
("Playlists", "defaults/files.html#playlists"),
2022-10-03 20:38:18 +00:00
("Separators", "defaults/separators"),
2022-09-27 06:19:29 +00:00
("_menu", "Overlays", [
("Default Overlays", "defaults/overlays/readme"),
("Audio Codec Overlay", "defaults/overlays/audio_codec"),
("Audio Languages Overlay", "defaults/overlays/audio_language"),
("Common Sense Age Ratings Overlay", "defaults/overlays/commonsense"),
("Direct Play Only Overlay", "defaults/overlays/direct_play"),
("Edition Overlay", "defaults/overlays/edition"),
("Episode Info Overlay", "defaults/overlays/episode_info"),
("After Credit Overlay", "defaults/overlays/mediastinger"),
("Ratings Overlay", "defaults/overlays/ratings"),
2022-09-27 06:19:29 +00:00
("Resolution Overlay", "defaults/overlays/resolution"),
("Ribbon Overlay", "defaults/overlays/ribbon"),
("Runtimes Overlay", "defaults/overlays/runtimes"),
("Special Release Overlay", "defaults/overlays/special_release"),
("Streaming Overlay", "defaults/overlays/streaming"),
("Versions Overlay", "defaults/overlays/versions"),
("Video Format Overlay", "defaults/overlays/video_format"),
]),
]),
("_menu", "Files", [
2022-04-18 18:16:39 +00:00
("Metadata Files", "metadata/metadata"),
("Overlay Files", "metadata/overlay"),
("Playlist Files", "metadata/playlist"),
2022-03-08 08:06:22 +00:00
("_divider", ),
("Templates", "metadata/templates"),
("Filters", "metadata/filters"),
("Dynamic Collections", "metadata/dynamic"),
("_menu", "Editing Media Metadata", [
("Editing Movie Metadata", "metadata/metadata/movie"),
("Editing TV Metadata", "metadata/metadata/show"),
("Editing Music Metadata", "metadata/metadata/music"),
]),
("_menu", "Builders", [
2022-03-08 08:06:22 +00:00
("Plex Builders", "metadata/builders/plex"),
("Smart Builders", "metadata/builders/smart"),
("TMDb Builders", "metadata/builders/tmdb"),
("TVDb Builders", "metadata/builders/tvdb"),
("IMDb Builders", "metadata/builders/imdb"),
("Trakt Builders", "metadata/builders/trakt"),
("Tautulli Builders", "metadata/builders/tautulli"),
2022-05-03 18:44:19 +00:00
("Radarr Builders", "metadata/builders/radarr"),
("Sonarr Builders", "metadata/builders/sonarr"),
2022-03-08 08:06:22 +00:00
("MdbList Builders", "metadata/builders/mdblist"),
("Letterboxd Builders", "metadata/builders/letterboxd"),
("ICheckMovies Builders", "metadata/builders/icheckmovies"),
("FlixPatrol Builders", "metadata/builders/flixpatrol"),
2022-03-19 05:16:25 +00:00
("Reciperr Builders", "metadata/builders/reciperr"),
2022-03-08 08:06:22 +00:00
("StevenLu Builders", "metadata/builders/stevenlu"),
("AniDB Builders", "metadata/builders/anidb"),
("AniList Builders", "metadata/builders/anilist"),
("MyAnimeList Builders", "metadata/builders/myanimelist"),
]),
("_menu", "Details", [
("Setting Details", "metadata/details/setting"),
("Schedule Details", "metadata/details/schedule"),
("Metadata Details", "metadata/details/metadata"),
("Radarr/Sonarr Details", "metadata/details/arr"),
])
]),
("&#10084", "https://github.com/sponsors/meisnate12", True),
],
# Render the next and previous page links in navbar. (Default: true)
'navbar_sidebarrel': False,
# Render the current pages TOC in the navbar. (Default: true)
'navbar_pagenav': False,
# Tab name for the current pages TOC. (Default: "Page")
'navbar_pagenav_name': "Sections",
# Global TOC depth for "site" navbar tab. (Default: 1)
# Switching to -1 shows all levels.
'globaltoc_depth': 2,
# Include hidden TOCs in Site navbar?
#
# Note: If this is "false", you cannot have mixed ``:hidden:`` and
# non-hidden ``toctree`` directives in the same page, or else the build
# will break.
#
# Values: "true" (default) or "false"
'globaltoc_includehidden': "true",
# HTML navbar class (Default: "navbar") to attach to <div> element.
# For black navbar, do "navbar navbar-inverse"
'navbar_class': "navbar navbar-inverse",
# Fix navigation bar to top of page?
# Values: "true" (default) or "false"
'navbar_fixed_top': "true",
# Location of link to source.
# Options are "nav" (default), "footer" or anything else to exclude.
'source_link_position': "nav",
# Bootswatch (http://bootswatch.com/) theme.
#
# Options are nothing (default) or the name of a valid theme
# such as "cosmo" or "sandstone".
#
# The set of valid themes depend on the version of Bootstrap
# that's used (the next config option).
#
# Currently, the supported themes are:
# - Bootstrap 2: https://bootswatch.com/2
# - Bootstrap 3: https://bootswatch.com/3
'bootswatch_theme': "darkly",
# Choose Bootstrap version.
# Values: "3" (default) or "2" (in quotes)
'bootstrap_version': "3",
}
# 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,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
html_css_files = ["custom.css"]
def setup(app):
app.add_css_file("custom.css")