]> jfr.im git - yt-dlp.git/blame - docs/conf.py
[youtube] Add `mobile_web` client (#557)
[yt-dlp.git] / docs / conf.py
CommitLineData
dcdb292f 1# coding: utf-8
685052fc 2#
7a5c1cfe 3# yt-dlp documentation build configuration file
685052fc
JMF
4
5import sys
6import os
a17417e8 7
8# Allows to import yt-dlp
9sys.path.insert(0, os.path.abspath('..'))
685052fc
JMF
10
11# -- General configuration ------------------------------------------------
12
13# Add any Sphinx extension module names here, as strings. They can be
14# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
15# ones.
16extensions = [
b9650873 17 'myst_parser',
685052fc
JMF
18]
19
20# Add any paths that contain templates here, relative to this directory.
21templates_path = ['_templates']
22
685052fc 23# The master toctree document.
b9650873 24master_doc = 'README'
685052fc
JMF
25
26# General information about the project.
a17417e8 27project = u'yt-dlp'
0744a815 28author = u'yt-dlp'
a17417e8 29copyright = u'UNLICENSE'
685052fc
JMF
30
31# The version info for the project you're documenting, acts as replacement for
32# |version| and |release|, also used in various other places throughout the
33# built documents.
34#
35# The short X.Y version.
7a5c1cfe 36from yt_dlp.version import __version__
aaa399d2 37version = __version__
685052fc
JMF
38# The full version, including alpha/beta/rc tags.
39release = version
40
41# List of patterns, relative to source directory, that match files and
42# directories to ignore when looking for source files.
43exclude_patterns = ['_build']
44
45# The name of the Pygments (syntax highlighting) style to use.
46pygments_style = 'sphinx'
47
48# -- Options for HTML output ----------------------------------------------
49
50# The theme to use for HTML and HTML Help pages. See the documentation for
51# a list of builtin themes.
52html_theme = 'default'
53
a17417e8 54# Disable highlights
55highlight_language = 'none'
56
685052fc
JMF
57# Add any paths that contain custom static files (such as style sheets) here,
58# relative to this directory. They are copied after the builtin static files,
59# so a file named "default.css" will overwrite the builtin "default.css".
a17417e8 60# html_static_path = ['_static']
61
b9650873 62# Enable heading anchors
63myst_heading_anchors = 4
685052fc 64
b9650873 65# Suppress heading warnings
66suppress_warnings = [
67 'myst.header',
68]