conf.py 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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('.'))
  14. # -- Project information -----------------------------------------------------
  15. project = 'Netmaker'
  16. copyright = '2021, Alex Feiszli'
  17. author = 'Alex Feiszli'
  18. # The full version, including alpha/beta/rc tags
  19. release = '0.3.5'
  20. # -- General configuration ---------------------------------------------------
  21. # Add any Sphinx extension module names here, as strings. They can be
  22. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  23. # ones.
  24. extensions = [
  25. ]
  26. # Add any paths that contain templates here, relative to this directory.
  27. templates_path = ['_templates']
  28. # List of patterns, relative to source directory, that match files and
  29. # directories to ignore when looking for source files.
  30. # This pattern also affects html_static_path and html_extra_path.
  31. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  32. # -- Options for HTML output -------------------------------------------------
  33. # The theme to use for HTML and HTML Help pages. See the documentation for
  34. # a list of builtin themes.
  35. #
  36. html_theme = 'sphinx_material'
  37. html_show_sourcelink = False
  38. html_theme_options = {
  39. 'nav_title': 'Netmaker Docs',
  40. 'repo_url': 'https://github.com/gravitl/netmaker/',
  41. "repo_name": "Netmaker",
  42. 'nosidebar': True,
  43. "repo_type": "github",
  44. 'color_primary': 'indigo',
  45. 'color_accent': 'light-blue',
  46. 'logo_icon': '&#xe869',
  47. 'globaltoc_depth': 2,
  48. 'globaltoc_collapse': False,
  49. }
  50. html_sidebars = {
  51. "**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"]
  52. }
  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']