2016-10-02 11:39:18 +00:00
|
|
|
# coding: utf-8
|
2014-03-15 18:08:09 +00:00
|
|
|
#
|
2021-02-24 18:45:56 +00:00
|
|
|
# yt-dlp documentation build configuration file
|
2014-03-15 18:08:09 +00:00
|
|
|
|
|
|
|
import sys
|
|
|
|
import os
|
2021-02-24 18:30:37 +00:00
|
|
|
|
|
|
|
# Allows to import yt-dlp
|
|
|
|
sys.path.insert(0, os.path.abspath('..'))
|
2014-03-15 18:08:09 +00:00
|
|
|
|
|
|
|
# -- 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 = [
|
2021-02-25 15:46:08 +00:00
|
|
|
'myst_parser',
|
2014-03-15 18:08:09 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
# Add any paths that contain templates here, relative to this directory.
|
|
|
|
templates_path = ['_templates']
|
|
|
|
|
|
|
|
# The master toctree document.
|
2021-02-25 15:46:08 +00:00
|
|
|
master_doc = 'README'
|
2014-03-15 18:08:09 +00:00
|
|
|
|
|
|
|
# General information about the project.
|
2021-02-24 18:30:37 +00:00
|
|
|
project = u'yt-dlp'
|
2021-02-24 19:46:57 +00:00
|
|
|
author = u'yt-dlp'
|
2021-02-24 18:30:37 +00:00
|
|
|
copyright = u'UNLICENSE'
|
2014-03-15 18:08:09 +00:00
|
|
|
|
|
|
|
# The version info for the project you're documenting, acts as replacement for
|
|
|
|
# |version| and |release|, also used in various other places throughout the
|
|
|
|
# built documents.
|
|
|
|
#
|
|
|
|
# The short X.Y version.
|
2021-02-24 18:45:56 +00:00
|
|
|
from yt_dlp.version import __version__
|
2014-10-27 16:49:48 +00:00
|
|
|
version = __version__
|
2014-03-15 18:08:09 +00:00
|
|
|
# The full version, including alpha/beta/rc tags.
|
|
|
|
release = version
|
|
|
|
|
|
|
|
# List of patterns, relative to source directory, that match files and
|
|
|
|
# directories to ignore when looking for source files.
|
|
|
|
exclude_patterns = ['_build']
|
|
|
|
|
|
|
|
# The name of the Pygments (syntax highlighting) style to use.
|
|
|
|
pygments_style = 'sphinx'
|
|
|
|
|
|
|
|
# -- 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 = 'default'
|
|
|
|
|
2021-02-24 18:30:37 +00:00
|
|
|
# Disable highlights
|
|
|
|
highlight_language = 'none'
|
|
|
|
|
2014-03-15 18:08:09 +00:00
|
|
|
# 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".
|
2021-02-24 18:30:37 +00:00
|
|
|
# html_static_path = ['_static']
|
|
|
|
|
2021-02-25 15:46:08 +00:00
|
|
|
# Enable heading anchors
|
|
|
|
myst_heading_anchors = 4
|
2014-03-15 18:08:09 +00:00
|
|
|
|
2021-02-25 15:46:08 +00:00
|
|
|
# Suppress heading warnings
|
|
|
|
suppress_warnings = [
|
|
|
|
'myst.header',
|
|
|
|
]
|