You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.5 KiB

3 months ago
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. extensions = ['sphinx.ext.todo', 'sphinx.ext.imgmath', 'sphinx.ext.githubpages']
  4. # templates_path = ['_templates']
  5. source_suffix = '.rst'
  6. master_doc = 'index'
  7. # General information about the project.
  8. project = 'Sylvan'
  9. copyright = '2017, Tom van Dijk'
  10. author = 'Tom van Dijk'
  11. version = '@PROJECT_VERSION@'
  12. release = '@PROJECT_VERSION@'
  13. language = None
  14. exclude_patterns = ['Thumbs.db', '.DS_Store']
  15. # The name of the Pygments (syntax highlighting) style to use.
  16. pygments_style = 'sphinx'
  17. todo_include_todos = True
  18. # -- Options for HTML output ----------------------------------------------
  19. # html_theme = 'alabaster'
  20. # html_theme = 'default'
  21. import os
  22. if os.environ.get('READTHEDOCS', None) != 'True':
  23. import sphinx_rtd_theme
  24. html_theme = 'sphinx_rtd_theme'
  25. html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  26. # -- Options for LaTeX output ---------------------------------------------
  27. latex_elements = {
  28. 'papersize': 'a4paper',
  29. 'pointsize': '11pt',
  30. }
  31. # Grouping the document tree into LaTeX files. List of tuples
  32. # (source start file, target name, title,
  33. # author, documentclass [howto, manual, or own class]).
  34. latex_documents = [
  35. (master_doc, 'Sylvan.tex', 'Sylvan Documentation',
  36. 'Tom van Dijk', 'manual'),
  37. ]
  38. # -- Options for manual page output ---------------------------------------
  39. # One entry per manual page. List of tuples
  40. # (source start file, name, description, authors, manual section).
  41. man_pages = [
  42. (master_doc, 'sylvan', 'Sylvan Documentation',
  43. [author], 1)
  44. ]