-
Notifications
You must be signed in to change notification settings - Fork 5
/
conf.py
97 lines (90 loc) · 2.64 KB
/
conf.py
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
"""
Configuration for building the website with Sphinx.
"""
import sys
import re
import datetime
import subprocess
from requests import get
from pathlib import Path
# Need this so the authors extension can be imported
sys.path.append(".")
extensions = [
"myst_parser",
"sphinx_extensions.authors",
"sphinx_extensions.pypi_version",
]
# Sphinx project configuration
exclude_patterns = ["_build", "README.md", "LICENSE.md"]
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
# General information about the project
current_date = datetime.date.today()
project = "Fatiando a Terra"
copyright = f"{current_date.year:d} The Fatiando a Terra Developers"
version = ""
html_title = project
html_short_title = ""
html_logo = "_static/fatiando-logo-background.png"
html_favicon = "_static/favicon.png"
html_static_path = ["_static"]
html_extra_path = ["forward"]
html_use_smartypants = True
html_permalinks = False
pygments_style = "default"
# Ignore the default theme and define everything through our own template.
# These variables are passed to the templates in _templates/
html_context = {
"menu_items": [
("About", "about", True),
("Install", "install", True),
("Learn", "learn", True),
("Contact", "contact", True),
("Community", "community", True),
("Cite", "cite", True),
("Support", "support", True),
],
"social_links": [
(
"fab fa-github",
"GitHub",
"https://github.com/fatiando",
),
(
"fab fa-mastodon",
"Mastodon",
"https://fosstodon.org/@fatiando",
),
(
"fab fa-twitter",
"Twitter",
"https://twitter.com/fatiandoaterra",
),
(
"fab fa-linkedin",
"LinkedIn",
"https://www.linkedin.com/company/fatiando",
),
(
"fab fa-youtube",
"YouTube",
"https://www.youtube.com/fatiandoorg",
),
],
"base_url": "https://www.fatiando.org",
"twitter": "fatiandoaterra",
"description": "Open-source Python tools for geophysics",
"commit": subprocess.run(
["git", "rev-parse", "--short", "HEAD"],
capture_output=True,
text=True,
).stdout.strip(),
"repository": "fatiando/website",
"plausible": '<script defer data-domain="fatiando.org" src="https://plausible.io/js/plausible.js"></script>',
"plausible_dashboard": "https://plausible.io/fatiando.org",
"last_updated": str(current_date),
"navbar_brand": "_static/fatiando-logo.svg",
"stylesheet": "css/style.css",
"alerts": [],
}