Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

conf.py.in 4.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
  1. # -*- coding: utf-8 -*-
  2. #
  3. # GMT documentation build configuration file.
  4. # Refer to http://www.sphinx-doc.org/en/master/usage/configuration.html for details.
  5. #
  6. import sys, os
  7. import glob
  8. sys.path.append(os.path.abspath('_extensions'))
  9. # -- General configuration -----------------------------------------------------
  10. needs_sphinx = '1.8'
  11. extensions = ['sphinx.ext.mathjax', 'sphinx.ext.autosectionlabel', 'jinja', 'youtube', 'sphinx_panels', 'sphinx_togglebutton', 'sphinx_copybutton']
  12. source_encoding = 'utf-8-sig'
  13. source_suffix = '.rst'
  14. master_doc = 'index'
  15. templates_path = ['_templates']
  16. language = 'en'
  17. # Set smartquotes_action to 'qe' to disable Smart Quotes transform of -- and ---
  18. smartquotes_action = 'qe'
  19. # default language to highlight source code
  20. highlight_language = 'bash'
  21. pygments_style = 'sphinx'
  22. autosectionlabel_prefix_document = True
  23. togglebutton_hint = "Click to show example script"
  24. # Disable sphinx_panels extension for manpage build
  25. if tags.has("nosphinxpanels"):
  26. extensions.remove("sphinx_panels")
  27. # -- Project configuration ------------------------------------------------
  28. project = 'GMT'
  29. copyright = "@GMT_VERSION_YEAR@, The GMT Team."
  30. # The version shown at the top of the sidebar
  31. version = '@GMT_PACKAGE_VERSION_MAJOR@.@GMT_PACKAGE_VERSION_MINOR@'
  32. # The full version shown in the page title
  33. release = '@GMT_PACKAGE_VERSION@'
  34. # -- Options for HTML output ---------------------------------------------------
  35. html_theme = 'rtd'
  36. html_theme_path = ["themes"]
  37. html_theme_options = {
  38. 'sticky_navigation': False,
  39. 'includehidden': False,
  40. }
  41. html_context = {
  42. "menu_links": [
  43. (
  44. '<i class="fa fa-home fa-fw"></i> GMT Homepage',
  45. "https://www.generic-mapping-tools.org/",
  46. ),
  47. (
  48. '<i class="fa fa-comment fa-fw"></i> GMT Community Forum',
  49. "https://forum.generic-mapping-tools.org/",
  50. ),
  51. (
  52. '<i class="fa fa-book fa-fw"></i> License',
  53. "https://github.com/GenericMappingTools/gmt/blob/master/LICENSE.TXT",
  54. ),
  55. (
  56. '<i class="fa fa-github fa-fw"></i> Source Code',
  57. "https://github.com/GenericMappingTools/gmt",
  58. ),
  59. ],
  60. # Show the "Edit on Github" link
  61. # https://docs.readthedocs.io/en/latest/guides/vcs.html
  62. "display_github": True,
  63. "github_user": "GenericMappingTools",
  64. "github_repo": "gmt",
  65. "github_version": "master",
  66. "theme_vcs_pageview_mode": "edit",
  67. "conf_py_path": "/doc/rst/source/",
  68. # Enable versions switch on GitHub Actions (`true`).
  69. "enable_versions_switch": True if os.getenv("GITHUB_ACTIONS") else False,
  70. }
  71. # favicon of the docs
  72. html_favicon = "_static/favicon.png"
  73. html_static_path = ['_static']
  74. html_last_updated_fmt = '%b %d, %Y'
  75. # If true, links to the reST sources are added to the pages.
  76. html_show_sourcelink = True
  77. # List of custom CSS files (needs sphinx>=1.8)
  78. html_css_files = ["style.css"]
  79. # Redefine supported_image_types for the HTML builder
  80. from sphinx.builders.html import StandaloneHTMLBuilder
  81. StandaloneHTMLBuilder.supported_image_types = [
  82. 'image/gif', 'image/jpeg', 'image/png', 'image/svg+xml'
  83. ]
  84. # context for the jinja extension
  85. ## Count number of examples (.rst) in the source/gallery directory
  86. no_of_examples = len(glob.glob("source/gallery/ex*.rst"))
  87. jinja_contexts = {
  88. 'jinja_ctx': {
  89. 'no_of_examples': no_of_examples,
  90. }
  91. }
  92. # -- Options for manual page output --------------------------------------------
  93. # One entry per manual page. List of tuples
  94. # (source start file, name, description, authors, manual section).
  95. man_pages = [
  96. ('gmt', 'gmt', 'The Generic Mapping Tools data processing and display software package', '', 1),
  97. ('gmt-config', 'gmt-config', 'Get information about the gmt installation', '', 1),
  98. ('gmt_shell_functions.sh', 'gmt_shell_functions.sh', 'Practical functions to be used in GMT bourne shell scripts', '', 1),
  99. ('gmtswitch', 'gmtswitch', 'Switching between different GMT versions', '', 1),
  100. ('isogmt', 'isogmt', 'Run GMT command or script in isolation mode', '', 1),
  101. ]
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...