conf.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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.7'
  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 = ['sphinx.ext.intersphinx']
  25. # Add any paths that contain templates here, relative to this directory.
  26. templates_path = ['_templates']
  27. # List of patterns, relative to source directory, that match files and
  28. # directories to ignore when looking for source files.
  29. # This pattern also affects html_static_path and html_extra_path.
  30. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  31. # -- Options for HTML output -------------------------------------------------
  32. # The theme to use for HTML and HTML Help pages. See the documentation for
  33. # a list of builtin themes.
  34. #
  35. html_theme = 'sphinx_material'
  36. html_show_sourcelink = False
  37. html_theme_options = {
  38. 'nav_title': 'Netmaker Docs',
  39. 'repo_url': 'https://github.com/gravitl/netmaker/',
  40. "repo_name": "Netmaker",
  41. 'nosidebar': True,
  42. "repo_type": "github",
  43. 'color_primary': 'indigo',
  44. 'color_accent': 'light-blue',
  45. 'logo_icon': '&#xe869',
  46. 'globaltoc_depth': 2,
  47. 'globaltoc_collapse': False,
  48. }
  49. html_sidebars = {
  50. "**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"]
  51. }
  52. # Add any paths that contain custom static files (such as style sheets) here,
  53. # relative to this directory. They are copied after the builtin static files,
  54. # so a file named "default.css" will overwrite the builtin "default.css".
  55. html_static_path = ['_static']