|
3 | 3 | import os
|
4 | 4 | import datetime
|
5 | 5 | import sphinx_rtd_theme
|
6 |
| - |
7 |
| -# Sphinx needs to be able to import the package to use autodoc and get the |
8 |
| -# version number |
9 |
| -sys.path.append(os.path.pardir) |
10 |
| - |
11 | 6 | from gmt import __version__, __commit__
|
12 | 7 |
|
| 8 | + |
13 | 9 | extensions = [
|
14 | 10 | "sphinx.ext.autodoc",
|
15 | 11 | "sphinx.ext.autosummary",
|
|
79 | 75 | html_theme_options = {}
|
80 | 76 | html_context = {
|
81 | 77 | "menu_links": [
|
82 |
| - ('<i class="fa fa-play fa-fw"></i> Try it online!', "http://try.gmtpython.xyz"), |
83 |
| - ( |
84 |
| - '<i class="fa fa-github fa-fw"></i> Source Code', |
85 |
| - "https://github.com/GenericMappingTools/gmt-python", |
86 |
| - ), |
87 | 78 | (
|
88 | 79 | '<i class="fa fa-users fa-fw"></i> Contributing',
|
89 | 80 | "https://github.com/GenericMappingTools/gmt-python/blob/master/CONTRIBUTING.md",
|
90 | 81 | ),
|
91 | 82 | (
|
92 |
| - '<i class="fa fa-book fa-fw"></i> Code of Conduct', |
| 83 | + '<i class="fa fa-gavel fa-fw"></i> Code of Conduct', |
93 | 84 | "https://github.com/GenericMappingTools/gmt-python/blob/master/CODE_OF_CONDUCT.md",
|
94 | 85 | ),
|
95 | 86 | (
|
96 |
| - '<i class="fa fa-gavel fa-fw"></i> License', |
| 87 | + '<i class="fa fa-book fa-fw"></i> License', |
97 | 88 | "https://github.com/GenericMappingTools/gmt-python/blob/master/LICENSE.txt",
|
98 | 89 | ),
|
99 | 90 | (
|
100 | 91 | '<i class="fa fa-comment fa-fw"></i> Contact',
|
101 | 92 | "https://gitter.im/GenericMappingTools/gmt-python",
|
102 | 93 | ),
|
| 94 | + ( |
| 95 | + '<i class="fa fa-github fa-fw"></i> Source Code', |
| 96 | + "https://github.com/GenericMappingTools/gmt-python", |
| 97 | + ), |
103 | 98 | ],
|
104 | 99 | # Custom variables to enable "Improve this page"" and "Download notebook"
|
105 | 100 | # links
|
|
108 | 103 | "github_version": "master",
|
109 | 104 | }
|
110 | 105 |
|
| 106 | + |
111 | 107 | # Load the custom CSS files (needs sphinx >= 1.6 for this to work)
|
112 | 108 | def setup(app):
|
113 | 109 | app.add_stylesheet("style.css")
|
0 commit comments