conf.py 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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 = 'Nuclei SDK'
  16. copyright = '2019-Present, Nuclei'
  17. author = 'Nuclei'
  18. # The short X.Y version
  19. version = '0.8.1'
  20. # The full version, including alpha/beta/rc tags
  21. release = '0.8.1'
  22. # -- General configuration ---------------------------------------------------
  23. # Add any Sphinx extension module names here, as strings. They can be
  24. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  25. # ones.
  26. extensions = [
  27. 'sphinx_rtd_theme',
  28. 'breathe',
  29. 'sphinx.ext.githubpages',
  30. 'sphinx.ext.mathjax',
  31. 'recommonmark'
  32. ]
  33. # Add any paths that contain templates here, relative to this directory.
  34. templates_path = ['_templates']
  35. # List of patterns, relative to source directory, that match files and
  36. # directories to ignore when looking for source files.
  37. # This pattern also affects html_static_path and html_extra_path.
  38. exclude_patterns = []
  39. # -- Options for HTML output -------------------------------------------------
  40. # Show build timestamp
  41. html_last_updated_fmt = ""
  42. # The theme to use for HTML and HTML Help pages. See the documentation for
  43. # a list of builtin themes.
  44. #
  45. html_theme = 'sphinx_rtd_theme'
  46. html_logo = 'asserts/images/nsdk_logo_small.png'
  47. # Add any paths that contain custom static files (such as style sheets) here,
  48. # relative to this directory. They are copied after the builtin static files,
  49. # so a file named "default.css" will overwrite the builtin "default.css".
  50. html_static_path = ['_static']
  51. html_theme_options = {
  52. 'logo_only': True,
  53. 'navigation_depth': 6
  54. }
  55. # -- Options for Breathe Project ---------------------------------------------
  56. breathe_projects = {
  57. }
  58. breathe_default_project = ""
  59. breathe_show_define_initializer = True
  60. # -- Options for Latex output -------------------------------------------------
  61. latex_logo = 'asserts/images/nsdk_logo_small.png'
  62. latex_show_pagerefs = True
  63. latex_toplevel_sectioning = 'chapter'
  64. latex_show_urls = 'footnote'
  65. rst_prolog = """
  66. .. |nuclei_contact| replace:: email support@nucleisys.com
  67. .. |NMSIS| replace:: `NMSIS`_
  68. .. _NMSIS: https://github.com/Nuclei-Software/NMSIS
  69. .. |nuclei_sdk| replace:: `Nuclei SDK`_
  70. .. _Nuclei SDK: https://github.com/Nuclei-Software/nuclei-sdk
  71. .. |nuclei_download_center| replace:: `Nuclei Download Center`_
  72. .. _Nuclei Download Center: https://nucleisys.com/download.php
  73. .. |github| replace:: `Github`_
  74. .. _Github: https://github.com
  75. .. |gitee| replace:: `Gitee`_
  76. .. _Gitee: https://gitee.com
  77. .. |github_nuclei_sdk| replace:: `Nuclei SDK in Github`_
  78. .. _Nuclei SDK in Github: https://github.com/Nuclei-Software/nuclei-sdk
  79. .. |gitee_nuclei_sdk| replace:: `Nuclei SDK in Gitee`_
  80. .. _Nuclei SDK in Gitee: https://gitee.com/Nuclei-Software/nuclei-sdk
  81. .. |github_nuclei_sdk_release| replace:: `Nuclei SDK Release in Github`_
  82. .. _Nuclei SDK Release in Github: https://github.com/Nuclei-Software/nuclei-sdk/releases
  83. .. |teraterm| replace:: `TeraTerm in Windows`_
  84. .. _TeraTerm in Windows: http://ttssh2.osdn.jp/
  85. .. |minicom| replace:: `Minicom in Linux`_
  86. .. _Minicom in Linux: https://help.ubuntu.com/community/Minicom
  87. """
  88. rst_epilog = """
  89. """
  90. # -- Extension configuration -------------------------------------------------
  91. def setup(app):
  92. app.add_css_file("css/custom.css")