2016-01-21 14:48:57 -06:00
|
|
|
# yamllint documentation build configuration file, created by
|
|
|
|
# sphinx-quickstart on Thu Jan 21 21:18:52 2016.
|
|
|
|
|
|
|
|
import os
|
2024-01-04 11:23:10 -06:00
|
|
|
import sys
|
2017-09-03 08:55:57 -05:00
|
|
|
from unittest.mock import MagicMock
|
2016-01-21 14:48:57 -06:00
|
|
|
|
2020-07-08 09:20:47 -05:00
|
|
|
sys.path.insert(0, os.path.abspath('..'))
|
2016-01-21 14:48:57 -06:00
|
|
|
|
2024-01-13 04:47:51 -06:00
|
|
|
from yamllint import __copyright__, APP_NAME, APP_VERSION # noqa: I001, E402
|
2016-01-21 14:48:57 -06:00
|
|
|
|
|
|
|
# -- General configuration ------------------------------------------------
|
|
|
|
|
|
|
|
extensions = [
|
|
|
|
'sphinx.ext.autodoc',
|
|
|
|
]
|
|
|
|
|
|
|
|
source_suffix = '.rst'
|
|
|
|
|
|
|
|
master_doc = 'index'
|
|
|
|
|
|
|
|
project = APP_NAME
|
2022-06-22 08:54:23 -05:00
|
|
|
copyright = __copyright__.lstrip('Copyright ')
|
2016-01-21 14:48:57 -06:00
|
|
|
|
|
|
|
version = APP_VERSION
|
|
|
|
release = APP_VERSION
|
|
|
|
|
|
|
|
pygments_style = 'sphinx'
|
|
|
|
|
|
|
|
# -- Options for HTML output ----------------------------------------------
|
|
|
|
|
|
|
|
html_theme = 'default'
|
|
|
|
|
|
|
|
htmlhelp_basename = 'yamllintdoc'
|
|
|
|
|
|
|
|
# -- Options for manual page output ---------------------------------------
|
|
|
|
|
|
|
|
# One entry per manual page. List of tuples
|
|
|
|
# (source start file, name, description, authors, manual section).
|
|
|
|
man_pages = [
|
2022-10-27 02:45:07 -05:00
|
|
|
('index', 'yamllint', 'Linter for YAML files', ['Adrien Vergé'], 1)
|
2016-01-21 14:48:57 -06:00
|
|
|
]
|
2017-09-03 08:55:57 -05:00
|
|
|
|
|
|
|
# -- Build with sphinx automodule without needing to install third-party libs
|
|
|
|
|
|
|
|
|
|
|
|
class Mock(MagicMock):
|
|
|
|
@classmethod
|
|
|
|
def __getattr__(cls, name):
|
2019-02-11 07:00:22 -06:00
|
|
|
return MagicMock()
|
2017-09-03 08:55:57 -05:00
|
|
|
|
|
|
|
|
|
|
|
MOCK_MODULES = ['pathspec', 'yaml']
|
|
|
|
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
|