conf.py 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 - 2022 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. release = os.popen('git describe --tags').readline().strip()
  27. # -- General configuration ---------------------------------------------------
  28. # Add any Sphinx extension module names here, as strings. They can be
  29. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  30. # ones.
  31. extensions = [
  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. # The theme to use for HTML and HTML Help pages. See the documentation for
  41. # a list of builtin themes.
  42. #
  43. #html_theme = 'alabaster'
  44. html_theme = 'sphinx_rtd_theme'
  45. # Add any paths that contain custom static files (such as style sheets) here,
  46. # relative to this directory. They are copied after the builtin static files,
  47. # so a file named "default.css" will overwrite the builtin "default.css".
  48. # html_static_path = ['_static']
  49. # See https://github.com/readthedocs/readthedocs.org/issues/2569
  50. master_doc = 'index'