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.

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