conf.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/usr/bin/env python3
  2. # SPDX-License-Identifier: GPL-2.0 or GPL-3.0
  3. # Copyright © 2019 Ariadne Devos
  4. # -*- coding: utf-8 -*-
  5. #
  6. # This tells Sphinx how to process the documentation.
  7. extensions = []
  8. templates_path = []
  9. # reStructuredText is used
  10. source_suffix = '.rst'
  11. # ©, ‘’ and others may be used
  12. source_encoding = 'utf-8-sig'
  13. # This is the main page, which transcludes all other text sources
  14. master_doc = 'index'
  15. # General information about the project.
  16. project = 's²'
  17. html_show_copyright = False
  18. author = "XXX don't emit, change the template"
  19. exclude_patterns = []
  20. # Don't misspell `fputs` as `fputs()` in cross-references.
  21. add_function_parentheses = False
  22. # A style for syntax highlighting. No code is present in the documentation yet,
  23. # though.
  24. pygments_style = 'sphinx'
  25. # This is the default theme of Sphinx and looks nice.
  26. # It even has an internal search function!
  27. html_theme = 'alabaster'
  28. # Images, stylesheets etc.. These override the theme defaults.
  29. html_static_path = ['_static']
  30. # Typographically correct ‘--’ and also tilt straight quotes.
  31. # But don't rely on the latter, write ‘quotes’ instead.
  32. html_use_smartypants = True
  33. # Generate an index of concepts, functions and types.
  34. # TODO: let some things be in the index.
  35. html_use_index = True
  36. # Make a link to the source code of the documents.
  37. #
  38. # Although not terribly useful for text, it gives direct access to copyright
  39. # information. For C source code, however, it directly links the documentation
  40. # to the code. (TODO: extract documentation from C source code.)
  41. html_show_sourcelink = True
  42. html_search_language = 'en'
  43. # Sphinx allows more customisation, which is described in its documentation.