conf.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # Configuration file for the Sphinx documentation builder.
  2. #
  3. # This file only contains a selection of the most common options. For a full
  4. # list see the documentation:
  5. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  6. # -- Path setup --------------------------------------------------------------
  7. # If extensions (or modules to document with autodoc) are in another directory,
  8. # add these directories to sys.path here. If the directory is relative to the
  9. # documentation root, use os.path.abspath to make it absolute, like shown here.
  10. #
  11. import os
  12. import sys
  13. sys.path.insert(0, os.path.abspath("_themes"))
  14. # -- Project information -----------------------------------------------------
  15. project = u'FlaskBB'
  16. copyright = u'2021, Peter Justin'
  17. author = u'Peter Justin'
  18. # -- General configuration ---------------------------------------------------
  19. # Add any Sphinx extension module names here, as strings. They can be
  20. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  21. # ones.
  22. extensions = [
  23. "sphinx.ext.autodoc",
  24. "sphinx.ext.viewcode",
  25. "sphinx.ext.intersphinx",
  26. ]
  27. # Add any paths that contain templates here, relative to this directory.
  28. templates_path = ["_templates"]
  29. # List of patterns, relative to source directory, that match files and
  30. # directories to ignore when looking for source files.
  31. # This pattern also affects html_static_path and html_extra_path.
  32. exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
  33. # -- Options for HTML output -------------------------------------------------
  34. # The theme to use for HTML and HTML Help pages. See the documentation for
  35. # a list of builtin themes.
  36. #
  37. html_theme = "alabaster"
  38. html_theme_options = {
  39. 'logo': 'logo-full.png',
  40. 'github_banner': True,
  41. 'github_user': 'sh4nks',
  42. 'github_repo': 'flaskbb',
  43. 'github_type': 'star',
  44. 'description': ("FlaskBB is a simple and extensible forum software "
  45. "for building communities."),
  46. 'fixed_sidebar': True,
  47. 'show_related': True
  48. }
  49. # The name for this set of Sphinx documents.
  50. # "<project> v<release> documentation" by default.
  51. #
  52. html_title = u'FlaskBB Documentation'
  53. # Add any paths that contain custom static files (such as style sheets) here,
  54. # relative to this directory. They are copied after the builtin static files,
  55. # so a file named "default.css" will overwrite the builtin "default.css".
  56. html_static_path = ["_static"]
  57. # Custom sidebar templates, maps document names to template names.
  58. html_sidebars = {
  59. 'index': [
  60. 'about.html',
  61. 'sidebarintro.html',
  62. 'sourcelink.html',
  63. 'searchbox.html'
  64. ],
  65. '**': [
  66. 'about.html',
  67. 'localtoc.html',
  68. 'relations.html',
  69. 'sourcelink.html',
  70. 'searchbox.html'
  71. ]
  72. }
  73. html_show_sourcelink = False
  74. intersphinx_mapping = {
  75. 'python': ('https://docs.python.org/3/', None),
  76. 'flask': ('https://flask.palletsprojects.com/en/latest/', None),
  77. 'werkzeug': ('https://werkzeug.palletsprojects.com/en/latest/', None),
  78. 'click': ('https://click.palletsprojects.com/en/latest/', None),
  79. 'jinja': ('https://jinja.palletsprojects.com/en/latest/', None),
  80. 'wtforms': ('https://wtforms.readthedocs.io/en/master/', None),
  81. }
  82. autodoc_member_order = 'bysource'