conf.py 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. """Configuration file for the Sphinx documentation builder.
  2. This file only contains a selection of the most common options. For a full
  3. list see the documentation:
  4. http://www.sphinx-doc.org/en/master/config
  5. -- Path setup --------------------------------------------------------------
  6. If extensions (or modules to document with autodoc) are in another directory,
  7. add these directories to sys.path here. If the directory is relative to the
  8. documentation root, use os.path.abspath to make it absolute, like shown here.
  9. """
  10. import os
  11. import sys
  12. sys.path.insert(0, os.path.abspath('../..'))
  13. master_doc = 'index'
  14. source_suffix = {
  15. '.rst': 'restructuredtext',
  16. '.md': 'markdown',
  17. }
  18. # -- Project information -----------------------------------------------------
  19. project = 'Yandex Music API'
  20. copyright = '2019-2024 Ilya (Marshal) <https://github.com/MarshalX>'
  21. author = 'Ilya (Marshal)'
  22. language = 'en'
  23. # -- General configuration ---------------------------------------------------
  24. # Add any Sphinx extension module names here, as strings. They can be
  25. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  26. # ones.
  27. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx_copybutton', 'myst_parser']
  28. # Add any paths that contain templates here, relative to this directory.
  29. templates_path = ['_templates']
  30. # List of patterns, relative to source directory, that match files and
  31. # directories to ignore when looking for source files.
  32. # This pattern also affects html_static_path and html_extra_path.
  33. exclude_patterns = []
  34. # myst
  35. myst_heading_anchors = 4
  36. # https://myst-parser.readthedocs.io/en/latest/syntax/optional.html?highlight=header-anchors#code-fences-using-colons
  37. myst_enable_extensions = ['colon_fence']
  38. # TODO add substitution https://myst-parser.readthedocs.io/en/latest/syntax/optional.html?highlight=header-anchors#substitutions-with-jinja2
  39. # -- Options for HTML output -------------------------------------------------
  40. # The theme to use for HTML and HTML Help pages. See the documentation for
  41. # a list of builtin themes.
  42. #
  43. # These folders are copied to the documentation's HTML output
  44. html_static_path = ['_static']
  45. html_search_language = 'ru'
  46. html_title = 'Yandex Music API'
  47. html_theme = 'furo'
  48. html_css_files = [
  49. 'css/custom.css',
  50. ]
  51. html_theme_options = {
  52. 'navigation_with_keys': True,
  53. }