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.

105 lines
2.2KB

  1. project = 'VCV Rack'
  2. copyright = '2020, VCV'
  3. author = 'VCV'
  4. source_encoding = 'utf-8'
  5. extensions = [
  6. 'sphinx.ext.mathjax',
  7. ]
  8. from recommonmark.parser import CommonMarkParser
  9. from recommonmark.transform import AutoStructify
  10. source_parsers = {
  11. '.md': CommonMarkParser,
  12. }
  13. source_suffix = ['.rst', '.md']
  14. templates_path = ['_templates']
  15. master_doc = 'index'
  16. language = 'en'
  17. # List of patterns, relative to source directory, that match files and
  18. # directories to ignore when looking for source files.
  19. # This pattern also affects html_static_path and html_extra_path .
  20. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  21. # The name of the Pygments (syntax highlighting) style to use.
  22. pygments_style = 'sphinx'
  23. # Theme
  24. html_favicon = "favicon.png"
  25. html_theme = "sphinx_rtd_theme"
  26. html_theme_options = {
  27. 'logo_only': True, # if we have a html_logo below, this shows /only/ the logo with no title text
  28. 'collapse_navigation': False, # Collapse navigation (False makes it tree-like)
  29. }
  30. html_context = {
  31. "display_github": True,
  32. "github_user": "VCVRack",
  33. "github_repo": "manual",
  34. "github_version": "master",
  35. "conf_py_path": "/",
  36. }
  37. html_logo = 'images/logo.png'
  38. html_static_path = ['_static']
  39. html_show_sphinx = False
  40. html_show_copyright = False
  41. htmlhelp_basename = 'VCVRackdoc'
  42. latex_elements = {
  43. # The paper size ('letterpaper' or 'a4paper').
  44. #
  45. # 'papersize': 'letterpaper',
  46. # The font size ('10pt', '11pt' or '12pt').
  47. #
  48. # 'pointsize': '10pt',
  49. # Additional stuff for the LaTeX preamble.
  50. #
  51. # 'preamble': '',
  52. # Latex figure (float) alignment
  53. #
  54. # 'figure_align': 'htbp',
  55. }
  56. latex_documents = [
  57. (master_doc, 'VCVRack.tex', 'VCV Rack Manual Documentation',
  58. 'VCV', 'manual'),
  59. ]
  60. epub_title = project
  61. epub_author = author
  62. epub_publisher = author
  63. epub_copyright = copyright
  64. epub_exclude_files = ['search.html']
  65. def setup(app):
  66. app.add_stylesheet("overrides.css")
  67. app.add_config_value('recommonmark_config', {
  68. 'enable_auto_toc_tree': True,
  69. 'auto_toc_tree_section': "Table of Contents",
  70. 'enable_math': True,
  71. 'enable_inline_math': True,
  72. }, True)
  73. app.add_transform(AutoStructify)