conf.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. ]
  34. # Add any paths that contain templates here, relative to this directory.
  35. templates_path = ['_templates']
  36. # List of patterns, relative to source directory, that match files and
  37. # directories to ignore when looking for source files.
  38. # This pattern also affects html_static_path and html_extra_path.
  39. exclude_patterns = []
  40. # -- Options for HTML output -------------------------------------------------
  41. # The theme to use for HTML and HTML Help pages. See the documentation for
  42. # a list of builtin themes.
  43. #
  44. #html_theme = 'alabaster'
  45. html_theme = 'sphinx_rtd_theme'
  46. # Add any paths that contain custom static files (such as style sheets) here,
  47. # relative to this directory. They are copied after the builtin static files,
  48. # so a file named "default.css" will overwrite the builtin "default.css".
  49. # html_static_path = ['_static']
  50. # See https://github.com/readthedocs/readthedocs.org/issues/2569
  51. master_doc = 'index'