-
Notifications
You must be signed in to change notification settings - Fork 909
Doc move to sphinx #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
python: circleci/[email protected] | ||
|
||
jobs: | ||
build_docs: | ||
executor: python/default | ||
steps: | ||
- checkout | ||
- python/install-deps | ||
- run: | ||
name: Build cheatsheets and docs | ||
command: make all | ||
- persist_to_workspace: | ||
root: docs/_build/html | ||
paths: . | ||
- store_artifacts: | ||
path: docs/_build/html/ | ||
|
||
workflows: | ||
main: | ||
jobs: | ||
- build_docs |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= -W | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
show: | ||
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(shell pwd)/build/html/index.html')" | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import datetime | ||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
html_title = 'Visualization with Python' | ||
project = "Matplotlib cheatsheets" | ||
copyright = ( | ||
f"2012 - {datetime.datetime.now().year} The Matplotlib development team" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the copyright years to be be different for the cheatsheets? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess the appearance is that it should look like the rest of the docs, so the webpage should stay this way. The cheatsheets may of course have their own copyright. |
||
) | ||
author = "Matplotlib Developers" | ||
|
||
# -- 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 = [] | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
|
||
templates_path = [] | ||
|
||
# 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"] | ||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
html_css_files = ['css/normalize.css', 'css/landing.css'] | ||
html_theme = "mpl_sphinx_theme" | ||
html_favicon = "_static/favicon.ico" | ||
html_theme_options = { | ||
"logo_link": "https://matplotlib.org/stable/", | ||
"native_site": False, | ||
} | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the theme static files, | ||
# so a file named "default.css" will overwrite the theme's "default.css". | ||
html_static_path = ["_static"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
.. title:: Matplotlib cheatsheets | ||
|
||
*********************************** | ||
Matplotlib cheatsheets and handouts | ||
*********************************** | ||
|
||
Cheatsheets | ||
*********** | ||
|
||
.. container:: twocol | ||
|
||
.. container:: | ||
|
||
.. image:: ../cheatsheets-1.png | ||
:width: 270px | ||
:align: center | ||
:alt: image of first page of cheatsheets | ||
|
||
|
||
.. container:: | ||
|
||
.. image:: ../cheatsheets-2.png | ||
:width: 270px | ||
:align: center | ||
:alt: image of second page of cheatsheets | ||
|
||
|
||
`Cheatsheets [pdf] <./cheatsheets.pdf>`_ | ||
|
||
|
||
|
||
Handouts | ||
******** | ||
|
||
.. container:: twocol | ||
|
||
.. container:: | ||
|
||
.. image:: ../handout-beginner.png | ||
:width: 270px | ||
:align: center | ||
:alt: image of beginner handout | ||
|
||
`Beginner [pdf] <./handout-beginner.pdf>`_ | ||
|
||
|
||
.. container:: | ||
|
||
.. image:: ../handout-intermediate.png | ||
:width: 270px | ||
:align: center | ||
:alt: image of intermediate handout | ||
|
||
`Intermediate [pdf] <./handout-intermediate.pdf>`_ | ||
|
||
|
||
.. container:: | ||
|
||
.. image:: ../handout-tips.png | ||
:width: 270px | ||
:align: center | ||
:alt: image of tips handout | ||
|
||
`Tips [pdf] <./handout-tips.pdf>`_ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,7 @@ pdfx | |
pip-tools | ||
pre-commit | ||
scipy | ||
sphinx | ||
mpl-sphinx-theme | ||
|
||
--no-binary shapely |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title -> "Matplotlib Cheatsheets"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, the actual title ends up being "Matplotlib Cheatsheets - Visualization with Python" so I think this is OK.