]> jfr.im git - yt-dlp.git/blame - docs/conf.py
Completely change project name to yt-dlp (#85)
[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('..'))
10from recommonmark.transform import AutoStructify
685052fc
JMF
11
12# -- General configuration ------------------------------------------------
13
a17417e8 14# The suffix of source filenames.
15source_suffix = ['.rst', '.md']
16
685052fc
JMF
17# Add any Sphinx extension module names here, as strings. They can be
18# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
19# ones.
20extensions = [
21 'sphinx.ext.autodoc',
a17417e8 22 'recommonmark',
685052fc
JMF
23]
24
25# Add any paths that contain templates here, relative to this directory.
26templates_path = ['_templates']
27
685052fc
JMF
28# The master toctree document.
29master_doc = 'index'
30
31# General information about the project.
a17417e8 32project = u'yt-dlp'
33copyright = u'UNLICENSE'
685052fc
JMF
34
35# The version info for the project you're documenting, acts as replacement for
36# |version| and |release|, also used in various other places throughout the
37# built documents.
38#
39# The short X.Y version.
7a5c1cfe 40from yt_dlp.version import __version__
aaa399d2 41version = __version__
685052fc
JMF
42# The full version, including alpha/beta/rc tags.
43release = version
44
45# List of patterns, relative to source directory, that match files and
46# directories to ignore when looking for source files.
47exclude_patterns = ['_build']
48
49# The name of the Pygments (syntax highlighting) style to use.
50pygments_style = 'sphinx'
51
52# -- Options for HTML output ----------------------------------------------
53
54# The theme to use for HTML and HTML Help pages. See the documentation for
55# a list of builtin themes.
56html_theme = 'default'
57
a17417e8 58# Disable highlights
59highlight_language = 'none'
60
685052fc
JMF
61# Add any paths that contain custom static files (such as style sheets) here,
62# relative to this directory. They are copied after the builtin static files,
63# so a file named "default.css" will overwrite the builtin "default.css".
a17417e8 64# html_static_path = ['_static']
65
685052fc 66
a17417e8 67def setup(app):
68 app.add_config_value('recommonmark_config', {
69 'enable_math': False,
70 'enable_inline_math': False,
71 'enable_eval_rst': True,
72 'enable_auto_toc_tree': True,
73 }, True)
74 app.add_transform(AutoStructify)