conf.py 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Godot Engine documentation build configuration file
  4. import sys
  5. import os
  6. # -- General configuration ------------------------------------------------
  7. needs_sphinx = '1.3'
  8. # Sphinx extension module names and templates location
  9. extensions = ['sphinx.ext.intersphinx']
  10. templates_path = ['_templates']
  11. # You can specify multiple suffix as a list of string: ['.rst', '.md']
  12. source_suffix = '.rst'
  13. source_encoding = 'utf-8-sig'
  14. # The master toctree document
  15. master_doc = 'index'
  16. # General information about the project
  17. project = 'Godot Engine'
  18. copyright = '2014-2016, Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0)'
  19. author = 'Juan Linietsky, Ariel Manzur and the Godot community'
  20. # Version info for the project, acts as replacement for |version| and |release|
  21. # The short X.Y version
  22. version = 'latest'
  23. # The full version, including alpha/beta/rc tags
  24. release = 'latest'
  25. language = 'en'
  26. exclude_patterns = ['_build']
  27. # Pygments (syntax highlighting) style to use
  28. pygments_style = 'sphinx'
  29. highlight_language = 'python3'
  30. # intersphinx configuration
  31. intersphinx_mapping = {
  32. 'english': ('http://docs.godotengine.org/en/latest/', None),
  33. }
  34. # -- Options for HTML output ----------------------------------------------
  35. # on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
  36. on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
  37. if not on_rtd: # only import and set the theme if we're building docs locally
  38. import sphinx_rtd_theme
  39. html_theme = 'sphinx_rtd_theme'
  40. html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  41. # Output file base name for HTML help builder
  42. htmlhelp_basename = 'GodotEnginedoc'
  43. # -- Options for reStructuredText parser ----------------------------------
  44. # Enable directives that insert the contents of external files
  45. file_insertion_enabled = False
  46. # -- Options for LaTeX output ---------------------------------------------
  47. # Grouping the document tree into LaTeX files. List of tuples
  48. # (source start file, target name, title,
  49. # author, documentclass [howto, manual, or own class]).
  50. latex_documents = [
  51. (master_doc, 'GodotEngine.tex', 'Godot Engine Documentation',
  52. 'Juan Linietsky, Ariel Manzur and the Godot community', 'manual'),
  53. ]