conf.py 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. # -*- coding: utf-8 -*-
  2. #
  3. # GeoServer Developer Guide documentation build configuration file, created by
  4. # sphinx-quickstart on Sun Dec 28 21:08:40 2008.
  5. #
  6. # This file is execfile()d with the current directory set to its containing dir.
  7. #
  8. # The contents of this file are pickled, so don't put values in the namespace
  9. # that aren't pickleable (module imports are okay, they're removed automatically).
  10. #
  11. # All configuration values have a default value; values that are commented out
  12. # serve to show the default value.
  13. import sys, os, string
  14. import datetime
  15. # If your extensions are in another directory, add it here. If the directory
  16. # is relative to the documentation root, use os.path.abspath to make it
  17. # absolute, like shown here.
  18. #sys.path.append(os.path.abspath('some/directory'))
  19. now = datetime.datetime.now()
  20. # General configuration
  21. # ---------------------
  22. # Add any Sphinx extension module names here, as strings. They can be extensions
  23. # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
  24. extensions = ['sphinx.ext.todo', 'sphinx.ext.extlinks']
  25. todo_include_todos = True
  26. # Add any paths that contain templates here, relative to this directory.
  27. #templates_path = ['../../theme/_templates']
  28. # The suffix of source filenames.
  29. source_suffix = '.rst'
  30. # The master toctree document.
  31. master_doc = 'index'
  32. # General substitutions.
  33. project = u'GeoServer'
  34. manual = u'Developer Manual'
  35. copyright = u'{}, Open Source Geospatial Foundation'.format(now.year)
  36. # The default replacements for |version| and |release|, also used in various
  37. # other places throughout the built documents.
  38. #
  39. # The short X.Y version.
  40. version = '2.26'
  41. # The full version, including alpha/beta/rc tags.
  42. release = '2.26-SNAPSHOT'
  43. # Used in build and documentation links
  44. branch = '2.26.x'
  45. # Users don't need to see the "SNAPSHOT" notation when it's there
  46. if release.find('SNAPSHOT') != -1:
  47. release = '2.26.x'
  48. # There are two options for replacing |today|: either, you set today to some
  49. # non-false value, then it is used:
  50. #today = ''
  51. # Else, today_fmt is used as the format for a strftime call.
  52. today_fmt = '%B %d, %Y'
  53. # List of documents that shouldn't be included in the build.
  54. #unused_docs = []
  55. # List of directories, relative to source directories, that shouldn't be searched
  56. # for source files.
  57. # exclude_patterns = []
  58. # The reST default role (used for this markup: `text`) to use for all documents.
  59. #default_role = None
  60. # If true, '()' will be appended to :func: etc. cross-reference text.
  61. #add_function_parentheses = True
  62. # If true, the current module name will be prepended to all description
  63. # unit titles (such as .. function::).
  64. #add_module_names = True
  65. # If true, sectionauthor and moduleauthor directives will be shown in the
  66. # output. They are ignored by default.
  67. #show_authors = False
  68. # The name of the Pygments (syntax highlighting) style to use.
  69. pygments_style = 'sphinx'
  70. # Options for extlinks
  71. #
  72. # :website:`license <License>`
  73. # :geos:`1234`
  74. # :wiki:`Proposals`
  75. # -----------------------------------
  76. extlinks = {
  77. 'wiki': ('https://github.com/geoserver/geoserver/wiki/%s', None),
  78. 'website': ('http://geoserver.org/%s', None),
  79. 'user': ('http://docs.geoserver.org/'+branch+'/en/user/%s', None),
  80. 'developer': ('http://docs.geoserver.org/latest/en/developer/%s', None),
  81. 'docguide': ('http://docs.geoserver.org/latest/en/docguide/%s', None),
  82. 'geotools': ('https://docs.geotools.org/latest/userguide/%s', None),
  83. 'geos': ('https://osgeo-org.atlassian.net/browse/GEOS-%s','GEOS-%s'),
  84. 'geot': ('https://osgeo-org.atlassian.net/browse/GEOT-%s','GEOT-%s'),
  85. 'api': ('http://docs.geoserver.org/latest/en/api/#1.0.0/%s', None)
  86. }
  87. # Options for HTML output
  88. # -----------------------
  89. html_theme = 'geoserver'
  90. html_theme_path = ['../../themes']
  91. if os.environ.get('HTML_THEME_PATH'):
  92. html_theme_path.append(os.environ.get('HTML_THEME_PATH'))
  93. # The style sheet to use for HTML and HTML Help pages. A file of that name
  94. # must exist either in Sphinx' static/ path, or in one of the custom paths
  95. # given in html_static_path.
  96. #html_style = 'default.css'
  97. # The name for this set of Sphinx documents. If None, it defaults to
  98. # "<project> v<release> documentation".
  99. html_title = project + " " + release + " " + manual
  100. # A shorter title for the navigation bar. Default is the same as html_title.
  101. #html_short_title = None
  102. # The name of an image file (relative to this directory) to place at the top
  103. # of the sidebar.
  104. #html_logo = None
  105. # The name of an image file (within the static path) to use as favicon of the
  106. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  107. # pixels large.
  108. html_favicon = '../../themes/geoserver/static/geoserver.ico'
  109. # Add any paths that contain custom static files (such as style sheets) here,
  110. # relative to this directory. They are copied after the builtin static files,
  111. # so a file named "default.css" will overwrite the builtin "default.css".
  112. #html_static_path = ['../../theme/_static']
  113. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  114. # using the given strftime format.
  115. html_last_updated_fmt = '%b %d, %Y'
  116. # If true, SmartyPants will be used to convert quotes and dashes to
  117. # typographically correct entities.
  118. #html_use_smartypants = True
  119. # Custom sidebar templates, maps document names to template names.
  120. #html_sidebars = {}
  121. # Additional templates that should be rendered to pages, maps page names to
  122. # template names.
  123. #html_additional_pages = {}
  124. # If false, no module index is generated.
  125. html_domain_indices = False
  126. # If false, no index is generated.
  127. html_use_index = False
  128. # If true, the index is split into individual pages for each letter.
  129. #html_split_index = False
  130. # If true, the reST sources are included in the HTML build as _sources/<name>.
  131. html_copy_source = False
  132. # If true, links to the page source are added to each page.
  133. html_show_sourcelink = False
  134. # If true, an OpenSearch description file will be output, and all pages will
  135. # contain a <link> tag referring to it. The value of this option must be the
  136. # base URL from which the finished HTML is served.
  137. #html_use_opensearch = ''
  138. # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
  139. #html_file_suffix = ''
  140. # Output file base name for HTML help builder.
  141. htmlhelp_basename = 'GeoServerDeveloperManual'
  142. html_context = {
  143. 'display_github': True,
  144. 'github_user': 'geoserver',
  145. 'github_repo': 'geoserver',
  146. 'github_version': 'main',
  147. 'conf_py_path': 'doc/en/developer/source'
  148. }
  149. # Options for LaTeX output
  150. # ------------------------
  151. # The paper size ('letter' or 'a4').
  152. #latex_paper_size = 'letter'
  153. # The font size ('10pt', '11pt' or '12pt').
  154. #latex_font_size = '10pt'
  155. # Grouping the document tree into LaTeX files. List of tuples
  156. # (source start file, target name, title, author, document class [howto/manual]).
  157. latex_documents = [
  158. ('index', 'GeoServerDeveloperManual.tex', u'GeoServer Developer Manual',
  159. u'GeoServer', 'manual'),
  160. ]
  161. # The name of an image file (relative to this directory) to place at the top of
  162. # the title page.
  163. latex_logo = '../../themes/geoserver/static/GeoServer_500.png'
  164. # For "manual" documents, if this is true, then toplevel headings are parts,
  165. # not chapters.
  166. #latex_use_parts = False
  167. # Additional stuff for the LaTeX preamble.
  168. latex_elements = {
  169. 'fontpkg': '\\usepackage{palatino}',
  170. 'fncychap': '\\usepackage[Sonny]{fncychap}',
  171. 'preamble': #"""\\usepackage[parfill]{parskip}
  172. """
  173. \\hypersetup{
  174. colorlinks = true,
  175. linkcolor = [rgb]{0,0.46,0.63},
  176. anchorcolor = [rgb]{0,0.46,0.63},
  177. citecolor = blue,
  178. filecolor = [rgb]{0,0.46,0.63},
  179. pagecolor = [rgb]{0,0.46,0.63},
  180. urlcolor = [rgb]{0,0.46,0.63}
  181. }
  182. """
  183. }
  184. # Documents to append as an appendix to all manuals.
  185. #latex_appendices = []
  186. # If false, no module index is generated.
  187. #latex_use_modindex = True