Skip to content

Commit 5271689

Browse files
authored
Merge pull request #20 from tacaswell/dev_build
Dev build
2 parents 81891ff + 6256715 commit 5271689

File tree

12 files changed

+815
-40
lines changed

12 files changed

+815
-40
lines changed

.github/workflows/docs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Docs
2+
3+
on: [push, pull_request]
4+
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Upgrade jinja
13+
run: pip install -U jinja2
14+
15+
- name: Install Python dependencies
16+
run: pip install -r requirements-doc.txt
17+
18+
- name: Build
19+
run: make html
20+
- name: Publish
21+
22+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./_build/html
27+
force_orphan: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ docs/_build/
5555

5656
# PyBuilder
5757
target/
58+
*_build/
59+
*~

Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?= -W --keep-going
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
tables:
18+
make_tables.sh
19+
20+
install: html
21+
tar -C _build/html -cf - . | tar -C /var/www/html/docs -xvf -
22+
chmod -R a+rX /var/www/html/docs
23+
24+
25+
show:
26+
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(shell pwd)/$(BUILDDIR)/html/index.html')"
27+
28+
29+
# Catch-all target: route all unknown targets to Sphinx using the new
30+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
31+
%: Makefile
32+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

_static/logo2.png

21.8 KB
Loading

_static/logo2.svg

Lines changed: 552 additions & 0 deletions
Loading

_static/logo2_compressed.svg

Lines changed: 1 addition & 0 deletions
Loading

conf.py

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+
from subprocess import Popen, PIPE
7+
8+
# -- Path setup --------------------------------------------------------------
9+
10+
# If extensions (or modules to document with autodoc) are in another directory,
11+
# add these directories to sys.path here. If the directory is relative to the
12+
# documentation root, use os.path.abspath to make it absolute, like shown here.
13+
#
14+
# import os
15+
# import sys
16+
# sys.path.insert(0, os.path.abspath('.'))
17+
18+
19+
# -- Project information -----------------------------------------------------
20+
21+
project = "Matplotlib Governance Documents"
22+
copyright = "2022, Matplotlib Development Team"
23+
author = "Matplotlib Steering Council"
24+
pipe = Popen("git describe --tags --always", stdout=PIPE, shell=True)
25+
git = pipe.stdout.read().decode("utf-8").rstrip()
26+
release = git.lstrip("R")
27+
version = "-".join(release.split("-")[0:2])
28+
print(version)
29+
30+
# -- General configuration ---------------------------------------------------
31+
32+
# Add any Sphinx extension module names here, as strings. They can be
33+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
34+
# ones.
35+
extensions = [
36+
"myst_parser",
37+
]
38+
39+
# Add any paths that contain templates here, relative to this directory.
40+
templates_path = ["_templates"]
41+
42+
# List of patterns, relative to source directory, that match files and
43+
# directories to ignore when looking for source files.
44+
# This pattern also affects html_static_path and html_extra_path.
45+
exclude_patterns = [
46+
"_build",
47+
"Thumbs.db",
48+
".DS_Store",
49+
"README.md",
50+
"LICENSE.md",
51+
"projectlicense.md",
52+
]
53+
54+
55+
# -- Options for HTML output -------------------------------------------------
56+
57+
# The theme to use for HTML and HTML Help pages. See the documentation for
58+
# a list of builtin themes.
59+
#
60+
html_theme = "mpl_sphinx_theme"
61+
62+
# Add any paths that contain custom static files (such as style sheets) here,
63+
# relative to this directory. They are copied after the builtin static files,
64+
# so a file named "default.css" will overwrite the builtin "default.css".
65+
html_static_path = ["_static"]
66+
67+
# Fix for table wrapping
68+
# https://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html
69+
70+
html_css_files = []
71+
html_logo = "_static/logo2.svg"
72+
73+
74+
html_sidebars = {
75+
"index": ["search-field.html"],
76+
"**": ["search-field.html", "globaltoc.html"],
77+
}
78+
79+
is_release_build = tags.has("release") # noqa
80+
81+
82+
html_theme_options = {
83+
"native_site": True,
84+
"logo_link": "index",
85+
"collapse_navigation": not is_release_build,
86+
"show_prev_next": False,
87+
# Toc options
88+
"navigation_depth": 2,
89+
}
90+
91+
include_analytics = is_release_build
92+
if include_analytics:
93+
html_theme_options["google_analytics_id"] = "UA-55954603-1"

governance.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ section below, is contained in The Project Governance Repository at:
66

77
[https://github.com/matplotlib/governance](https://github.com/matplotlib/governance)
88

9-
The Project
10-
===========
9+
## The Project
10+
1111

1212
The Matplotlib Project (The Project) is an open source software project
1313
affiliated with the [NumFOCUS](https://numfocus.org) Foundation. The goal of The
@@ -57,8 +57,8 @@ manage project donations and acts as a parent legal entity. NumFOCUS
5757
is the only legal entity that has a formal relationship with the
5858
project (see Institutional Partners section below).
5959

60-
Governance
61-
==========
60+
## Governance
61+
6262

6363
This section describes the governance and leadership model of The Project.
6464

@@ -86,8 +86,8 @@ several Deputy Leads, and a Steering Council. We view this governance
8686
model as the formalization of what we are already doing, rather than a
8787
change in direction.
8888

89-
Project Lead
90-
------------
89+
## Project Lead
90+
9191

9292
The Project will have a Project Leader (PL), who is currently Thomas A Caswell.
9393
The PL has the authority to make all final decisions for The Project. In
@@ -114,8 +114,8 @@ decision. The NumFOCUS board may in extraordinary circumstances remove the PL
114114
from the project.
115115

116116

117-
Steering Council
118-
----------------
117+
## Steering Council
118+
119119

120120
The Project will have a Steering Council that consists of Project Contributors
121121
who have produced contributions that are substantial in quality and quantity,
@@ -274,8 +274,8 @@ spaces. They will maintain their own private mailing list and reporting
274274
address. Detailed policy on how to handle CoC will be documented elsewhere.
275275

276276

277-
Deputy Project Leaders
278-
----------------------
277+
## Deputy Project Leaders
278+
279279

280280
Deputy Project Leaders (DPL) have pre-delegated authority to make decisions
281281
within their area of responsibility. As with the PL, the DPL should strive to
@@ -298,8 +298,8 @@ Any currently active Contributor is eligible to be considered for a DPL and an
298298
individual may hold more than one DPL simultaneously.
299299

300300

301-
Project Specific Leads
302-
----------------------
301+
## Project Specific Leads
302+
303303

304304
Matplotlib has a number of domain specific packages under it's umbrella and
305305
hosted on the Matplotlib github organizations. These projects will each have
@@ -311,8 +311,8 @@ GitHub, they can petition the SC and be accepted by a simple majority
311311
vote. A project can leave the organization at anytime and can be
312312
removed from the organization by an 2/3 majority vote of the SC.
313313

314-
Institutional Partners and Funding
315-
==================================
314+
## Institutional Partners and Funding
315+
316316

317317
The PL and Steering Council are the primary leadership for the project. No
318318
outside institution, individual or legal entity has the ability to own,
@@ -369,8 +369,8 @@ following benefits:
369369
in talks and T-shirts.
370370

371371

372-
Changing the Governance Documents
373-
=================================
372+
## Changing the Governance Documents
373+
374374

375375
Changes to the governance documents are submitted via a GitHub pull request to
376376
The Project's governance documents GitHub repository at

index.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Matplotlib Governance Documentation
2+
===================================
3+
4+
5+
6+
.. toctree::
7+
8+
governance.md
9+
deputy_project_leads.md
10+
people.md
11+
templates.md
12+
communications_guidelines.md

0 commit comments

Comments
 (0)