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.

100 lines
2.0KB

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