conf.py 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # SPDX-License-Identifier: Apache-2.0
  2. #
  3. # Configuration file for the Sphinx documentation builder.
  4. #
  5. # This file only contains a selection of the most common options. For a full
  6. # 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 os
  17. from pygments_lexer_solidity import SolidityLexer, YulLexer
  18. def setup(sphinx):
  19. sphinx.add_lexer('Solidity', SolidityLexer)
  20. sphinx.add_lexer('Yul', YulLexer)
  21. # -- Project information -----------------------------------------------------
  22. project = 'Solang Solidity Compiler'
  23. copyright = '2019 - 2023 Solang Maintainers'
  24. author = 'Sean Young <sean@mess.org>, Cyrill Leutwiler <bigcyrill@hotmail.com>, Lucas Steuernagel <lucas.tnagel@gmail.com>'
  25. # The full version, including alpha/beta/rc tags
  26. version = os.popen('git describe --tags --abbrev=0').readline().strip()
  27. release = os.popen('git describe --tags').readline().strip()
  28. # -- General configuration ---------------------------------------------------
  29. # Add any Sphinx extension module names here, as strings. They can be
  30. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  31. # ones.
  32. extensions = [
  33. 'sphinx_tabs.tabs'
  34. ]
  35. # Do not allow tabs to be closed
  36. sphinx_tabs_disable_tab_closing = True
  37. # Add any paths that contain templates here, relative to this directory.
  38. templates_path = ['_templates']
  39. # List of patterns, relative to source directory, that match files and
  40. # directories to ignore when looking for source files.
  41. # This pattern also affects html_static_path and html_extra_path.
  42. exclude_patterns = []
  43. # -- Options for HTML output -------------------------------------------------
  44. # The theme to use for HTML and HTML Help pages. See the documentation for
  45. # a list of builtin themes.
  46. #
  47. #html_theme = 'alabaster'
  48. html_theme = 'sphinx_rtd_theme'
  49. # Add any paths that contain custom static files (such as style sheets) here,
  50. # relative to this directory. They are copied after the builtin static files,
  51. # so a file named "default.css" will overwrite the builtin "default.css".
  52. # html_static_path = ['_static']
  53. # See https://github.com/readthedocs/readthedocs.org/issues/2569
  54. master_doc = 'index'