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.

101 lines
2.0KB

  1. project = 'VCV Rack'
  2. copyright = '2019, VCV'
  3. author = 'VCV'
  4. source_encoding = 'utf-8'
  5. extensions = [
  6. 'sphinx.ext.mathjax',
  7. ]
  8. from recommonmark.parser import CommonMarkParser
  9. source_parsers = {
  10. '.md': CommonMarkParser,
  11. }
  12. source_suffix = ['.rst', '.md']
  13. templates_path = ['_templates']
  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_favicon = "favicon.png"
  24. html_theme = "sphinx_rtd_theme"
  25. html_theme_options = {
  26. 'logo_only': True, # if we have a html_logo below, this shows /only/ the logo with no title text
  27. 'collapse_navigation': False, # Collapse navigation (False makes it tree-like)
  28. }
  29. html_context = {
  30. "display_github": True,
  31. "github_user": "VCVRack",
  32. "github_repo": "manual",
  33. "github_version": "master",
  34. "conf_py_path": "/",
  35. }
  36. html_logo = 'images/logo.png'
  37. html_static_path = ['_static']
  38. html_show_sphinx = False
  39. html_show_copyright = False
  40. htmlhelp_basename = 'VCVRackdoc'
  41. latex_elements = {
  42. # The paper size ('letterpaper' or 'a4paper').
  43. #
  44. # 'papersize': 'letterpaper',
  45. # The font size ('10pt', '11pt' or '12pt').
  46. #
  47. # 'pointsize': '10pt',
  48. # Additional stuff for the LaTeX preamble.
  49. #
  50. # 'preamble': '',
  51. # Latex figure (float) alignment
  52. #
  53. # 'figure_align': 'htbp',
  54. }
  55. latex_documents = [
  56. (master_doc, 'VCVRack.tex', 'VCV Rack Manual Documentation',
  57. 'VCV', 'manual'),
  58. ]
  59. epub_title = project
  60. epub_author = author
  61. epub_publisher = author
  62. epub_copyright = copyright
  63. epub_exclude_files = ['search.html']
  64. def setup(app):
  65. app.add_stylesheet("overrides.css")
  66. app.add_config_value('recommonmark_config', {
  67. 'enable_math': True,
  68. 'enable_inline_math': True,
  69. }, True)