forked from pyOpenSci/python-package-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py
133 lines (114 loc) · 4.04 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# -- Project information -----------------------------------------------------
project = "python-package-guide"
copyright = "2023, pyOpenSci"
author = "pyOpenSci Community"
# The full version, including alpha/beta/rc tags
release = "0.1"
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"myst_nb",
"sphinx_design",
"sphinx_copybutton",
"sphinx.ext.intersphinx",
"sphinx_sitemap",
"sphinxcontrib.gtagjs",
"sphinxext.opengraph",
]
# colon fence for card support in md
myst_enable_extensions = [
"colon_fence",
"deflist",
]
myst_heading_anchors = 3
# For generating sitemap
html_baseurl = "https://www.pyopensci.org/software-peer-review/"
# Link to our repo for easy PR/ editing
html_theme_options = {
"announcement": "<p><a href='https://www.pyopensci.org/software-peer-review/about/intro.html'>Submit Your Python Package for Peer Review - Learn More!</a></p>🚧 This guide is currently being developed! 🚧 ",
"external_links": [
{
"url": "https://www.pyopensci.org",
"name": "pyOpenSci Website",
},
{
"url": "https://www.pyopensci.org/software-peer-review",
"name": "Peer Review Guide",
},
{
"url": "https://pyopensci.org/governance",
"name": "Governance",
},
],
"icon_links": [
{
"name": "Mastodon",
"url": "https://fosstodon.org/@pyOpenSci",
"icon": "fa-brands fa-mastodon",
},
],
"logo": {
"text": "Python Package Guide",
"image_dark": "logo-dark-mode.png",
"image_light": "logo-light-mode.png",
"alt_text": "pyOpenSci Python Package Guide. The pyOpenSci logo is a purple flower with pyOpenSci under it. The o in open sci is the center of the flower",
},
"header_links_before_dropdown": 4,
"use_edit_page_button": True,
"show_toc_level": 1,
# "navbar_align": "left", # [left, content, right] For testing that the navbar items align properly
"github_url": "https://github.com/pyopensci/python-package-guide",
"twitter_url": "https://twitter.com/pyopensci",
"footer_items": ["copyright"],
}
html_theme_options["analytics"] = {
"google_analytics_id": "UA-141260825-1",
}
html_context = {
"github_user": "pyopensci",
"github_repo": "python-package-guide",
"github_version": "main",
}
# Add analytics to furo theme
gtagjs_ids = [
"UA-141260825-1",
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = [
"_build",
"Thumbs.db",
".DS_Store",
".github",
".nox",
"README.md",
]
# For sitemap
html_baseurl = "https://www.pyopensci.org/package-review-guide/"
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "pydata_sphinx_theme"
html_static_path = ["_static"]
html_css_files = ["pyos.css"]
html_title = "Python Packaging Guide"
html_js_files = ["matomo.js"]