2
0

conf.py 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Configuration file for the Sphinx documentation builder.
  4. #
  5. # This file does only contain a selection of the most common options. For a
  6. # full list see the documentation:
  7. # http://www.sphinx-doc.org/en/master/config
  8. # -- Path setup --------------------------------------------------------------
  9. # If extensions (or modules to document with autodoc) are in another directory,
  10. # add these directories to sys.path here. If the directory is relative to the
  11. # documentation root, use os.path.abspath to make it absolute, like shown here.
  12. #
  13. # import os
  14. # import sys
  15. # sys.path.insert(0, os.path.abspath('.'))
  16. import datetime
  17. # -- Project information -----------------------------------------------------
  18. project = "Wagtail CRX"
  19. copyright = f"2018–{datetime.datetime.now().year}, CodeRed LLC"
  20. author = "CodeRed LLC"
  21. # -- General configuration ---------------------------------------------------
  22. # Add any Sphinx extension module names here, as strings. They can be
  23. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  24. # ones.
  25. extensions = ["sphinx_wagtail_theme"]
  26. # Add any paths that contain templates here, relative to this directory.
  27. templates_path = ["_templates"]
  28. # The suffix(es) of source filenames.
  29. # You can specify multiple suffix as a list of string:
  30. #
  31. # source_suffix = ['.rst', '.md']
  32. source_suffix = ".rst"
  33. # The master toctree document.
  34. master_doc = "index"
  35. # The language for content autogenerated by Sphinx. Refer to documentation
  36. # for a list of supported languages.
  37. #
  38. # This is also used if you do content translation via gettext catalogs.
  39. # Usually you set "language" from the command line for these cases.
  40. language = "en"
  41. # List of patterns, relative to source directory, that match files and
  42. # directories to ignore when looking for source files.
  43. # This pattern also affects html_static_path and html_extra_path.
  44. exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
  45. # -- Options for HTML output -------------------------------------------------
  46. # The theme to use for HTML and HTML Help pages. See the documentation for
  47. # a list of builtin themes.
  48. html_theme = "sphinx_wagtail_theme"
  49. html_theme_options = {
  50. "project_name": "Wagtail + CodeRed Extensions",
  51. "github_url": "https://github.com/coderedcorp/coderedcms/blob/main/docs/",
  52. "footer_links": (
  53. "Wagtail Hosting by CodeRed|https://www.codered.cloud/,"
  54. "Wagtail CRX on GitHub|https://github.com/coderedcorp/coderedcms,"
  55. "About CodeRed|https://www.coderedcorp.com/"
  56. ),
  57. }
  58. # Add any paths that contain custom static files (such as style sheets) here,
  59. # relative to this directory. They are copied after the builtin static files,
  60. # so a file named "default.css" will overwrite the builtin "default.css".
  61. html_static_path = ["_static"]
  62. # Custom sidebar templates, must be a dictionary that maps document names
  63. # to template names.
  64. #
  65. # The default sidebars (for documents that don't match any pattern) are
  66. # defined by theme itself. Builtin themes are using these templates by
  67. # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
  68. # 'searchbox.html']``.
  69. html_sidebars = {"**": ["searchbox.html", "globaltoc.html", "sponsor.html"]}
  70. html_css_files = ["custom.css"]