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 3.8 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
  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', 'jinja', 'youtube']
  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. # -- Project configuration ------------------------------------------------
  23. project = 'GMT'
  24. copyright = "@GMT_VERSION_YEAR@, The GMT Team."
  25. # The version shown at the top of the sidebar
  26. version = '@GMT_PACKAGE_VERSION_MAJOR@.@GMT_PACKAGE_VERSION_MINOR@'
  27. # The full version shown in the page title
  28. release = '@GMT_PACKAGE_VERSION@'
  29. # Make the "Edit on GitHub" button link to the correct branch
  30. # Default to master branch if Azure Pipelines environmental variable BUILD_SOURCEBRANCHNAME is not defined
  31. github_version = os.getenv("BUILD_SOURCEBRANCHNAME", 'master')
  32. # -- Options for HTML output ---------------------------------------------------
  33. html_theme = 'rtd'
  34. html_theme_path = ["themes"]
  35. html_theme_options = {
  36. 'sticky_navigation': False,
  37. 'includehidden': False,
  38. }
  39. html_context = {
  40. "menu_links": [
  41. (
  42. '<i class="fa fa-home fa-fw"></i> GMT Homepage',
  43. "https://www.generic-mapping-tools.org/",
  44. ),
  45. (
  46. '<i class="fa fa-comment fa-fw"></i> GMT Community Forum',
  47. "https://forum.generic-mapping-tools.org/",
  48. ),
  49. (
  50. '<i class="fa fa-book fa-fw"></i> License',
  51. "https://github.com/GenericMappingTools/gmt/blob/master/LICENSE.TXT",
  52. ),
  53. (
  54. '<i class="fa fa-github fa-fw"></i> Source Code',
  55. "https://github.com/GenericMappingTools/gmt",
  56. ),
  57. ],
  58. # Show the "Edit on Github" link
  59. # https://docs.readthedocs.io/en/latest/guides/vcs.html
  60. "display_github": True,
  61. "github_user": "GenericMappingTools",
  62. "github_repo": "gmt",
  63. "github_version": github_version,
  64. "theme_vcs_pageview_mode": "edit",
  65. "conf_py_path": "/doc/rst/source/"
  66. }
  67. # favicon of the docs
  68. html_favicon = "_static/favicon.png"
  69. html_static_path = ['_static']
  70. html_last_updated_fmt = '%b %d, %Y'
  71. # If true, links to the reST sources are added to the pages.
  72. html_show_sourcelink = True
  73. # List of custom CSS files (needs sphinx>=1.8)
  74. html_css_files = ["style.css"]
  75. # Redefine supported_image_types for the HTML builder
  76. from sphinx.builders.html import StandaloneHTMLBuilder
  77. StandaloneHTMLBuilder.supported_image_types = [
  78. 'image/gif', 'image/jpeg', 'image/png', 'image/svg+xml'
  79. ]
  80. # context for the jinja extension
  81. ## Count number of examples (.rst) in the source/gallery directory
  82. no_of_examples = len(glob.glob("source/gallery/ex*.rst"))
  83. jinja_contexts = {
  84. 'jinja_ctx': {
  85. 'no_of_examples': no_of_examples,
  86. }
  87. }
  88. # -- Options for manual page output --------------------------------------------
  89. # One entry per manual page. List of tuples
  90. # (source start file, name, description, authors, manual section).
  91. man_pages = [
  92. ('gmt', 'gmt', 'The Generic Mapping Tools data processing and display software package', '', 1),
  93. ('gmt-config', 'gmt-config', 'Get information about the gmt installation', '', 1),
  94. ('gmt_shell_functions.sh', 'gmt_shell_functions.sh', 'Practical functions to be used in GMT bourne shell scripts', '', 1),
  95. ('gmtswitch', 'gmtswitch', 'Switching between different GMT versions', '', 1),
  96. ('isogmt', 'isogmt', 'Run GMT command or script in isolation mode', '', 1),
  97. ]
Tip!

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

Comments

Loading...