pax_global_header00006660000000000000000000000064146167627600014531gustar00rootroot0000000000000052 comment=d51cf59fe6987329b81686e9927001462552af82 mpl-sphinx-theme-3.9.0/000077500000000000000000000000001461676276000147415ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/.circleci/000077500000000000000000000000001461676276000165745ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/.circleci/config.yml000066400000000000000000000030531461676276000205650ustar00rootroot00000000000000--- version: 2.1 orbs: python: circleci/python@1.2.1 jobs: build_docs: executor: python/default steps: - checkout - python/install-packages: pkg-manager: pip-dist pip-dependency-file: docs/requirements.txt - run: name: Build docs command: make -C docs html - persist_to_workspace: root: docs/_build/html paths: . - store_artifacts: path: docs/_build/html/ deploy: docker: - image: "node:current" steps: - checkout - attach_workspace: at: html - run: name: Install and configure dependencies command: | # Old version used because of gh-pages bug: # https://github.com/tschaub/gh-pages/issues/354 npm install -g --silent gh-pages@3.0.0 git config --global user.email "MatplotlibCircleBot@nomail" git config --global user.name "MatplotlibCircleBot" - add_ssh_keys: fingerprints: - "fc:4f:e4:b8:3f:28:43:83:4a:6b:ba:30:4a:df:56:6f" - run: name: "Deploy new docs" command: | rm html/.buildinfo touch html/.nojekyll # Disable jekyll builds on GitHub. gh-pages \ --dotfiles \ --message "[skip ci] Doc build of $CIRCLE_SHA1" \ --dist html workflows: main: jobs: - build_docs - deploy: requires: - build_docs filters: branches: only: main mpl-sphinx-theme-3.9.0/.flake8000066400000000000000000000003401461676276000161110ustar00rootroot00000000000000[flake8] # References: # https://flake8.readthedocs.io/en/latest/user/configuration.html # https://flake8.readthedocs.io/en/latest/user/error-codes.html exclude = .git build # External files. .tox .eggs mpl-sphinx-theme-3.9.0/.github/000077500000000000000000000000001461676276000163015ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/.github/.github/000077500000000000000000000000001461676276000176415ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/.github/.github/workflows/000077500000000000000000000000001461676276000216765ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/.github/.github/workflows/lighthouse.yml000066400000000000000000000012311461676276000245710ustar00rootroot00000000000000name: Lighthouse on: [push, pull_request] jobs: CI: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Set up Python 3.7 uses: actions/setup-python@v1 with: python-version: 3.7 - name: Install dask-sphinx-theme run: | python -m pip install --upgrade pip python -m pip install -e . - name: Make example docs run: | cd docs make html - name: Run Lighthouse against example docs build uses: treosh/lighthouse-ci-action@v2 with: configPath: "./lighthouserc.json" temporaryPublicStorage: true mpl-sphinx-theme-3.9.0/.github/.github/workflows/pre-commit.yaml000066400000000000000000000004221461676276000246340ustar00rootroot00000000000000name: Linting on: push: branches: main pull_request: branches: main jobs: checks: name: pre-commit hooks runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 - uses: pre-commit/action@v2.0.0 mpl-sphinx-theme-3.9.0/.github/.github/workflows/publish-pypi.yml000066400000000000000000000013461461676276000250520ustar00rootroot00000000000000name: Push to PyPI on: push: tags: - "*" jobs: publish: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v1 - name: Set up Python 3.7 uses: actions/setup-python@v1 with: python-version: 3.7 - name: Install mpl-sphinx-theme run: | python -m pip install --upgrade pip python -m pip install -e . - name: Build mpl-sphinx-theme dist run: | python -m pip install wheel twine python setup.py sdist bdist_wheel - name: Publish mpl-sphinx-theme uses: pypa/gh-action-pypi-publish@master with: user: __token__ password: ${{ secrets.pypi_token }} mpl-sphinx-theme-3.9.0/.github/.githubold/000077500000000000000000000000001461676276000203405ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/.github/.githubold/pull_request_template.md000066400000000000000000000007331461676276000253040ustar00rootroot00000000000000## PR Summary mpl-sphinx-theme-3.9.0/.github/.githubold/workflows/000077500000000000000000000000001461676276000223755ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/.github/.githubold/workflows/main.yml000066400000000000000000000006111461676276000240420ustar00rootroot00000000000000on: [status] jobs: circleci_artifacts_redirector_job: runs-on: ubuntu-latest name: Run CircleCI artifacts redirector steps: - name: GitHub Action step uses: larsoner/circleci-artifacts-redirector-action@master with: repo-token: ${{ secrets.GITHUB_TOKEN }} artifact-path: 0/docs/_build/html/index.html circleci-jobs: build_docs mpl-sphinx-theme-3.9.0/.github/workflows/000077500000000000000000000000001461676276000203365ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/.github/workflows/circleci.yml000066400000000000000000000011661461676276000226420ustar00rootroot00000000000000--- name: "CircleCI artifact handling" on: [status] jobs: circleci_artifacts_redirector_job: if: "${{ github.event.context == 'ci/circleci: build_docs' }}" permissions: statuses: write runs-on: ubuntu-latest name: Run CircleCI artifacts redirector steps: - name: GitHub Action step uses: larsoner/circleci-artifacts-redirector-action@master with: repo-token: ${{ secrets.GITHUB_TOKEN }} api-token: ${{ secrets.CIRCLECI_TOKEN }} artifact-path: 0/docs/_build/html/index.html circleci-jobs: build_docs job-title: View the built docs mpl-sphinx-theme-3.9.0/.github/workflows/lint.yml000066400000000000000000000015351461676276000220330ustar00rootroot00000000000000--- name: Linting on: [pull_request] jobs: flake8: name: flake8 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python 3 uses: actions/setup-python@v1 with: python-version: 3.8 - name: Install flake8 run: pip3 install 'flake8>=3.8' - name: Set up reviewdog run: | mkdir -p "$HOME/bin" curl -sfL \ https://github.com/reviewdog/reviewdog/raw/master/install.sh | \ sh -s -- -b "$HOME/bin" echo "$HOME/bin" >> $GITHUB_PATH - name: Run flake8 env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -o pipefail flake8 | \ reviewdog -f=pep8 -name=flake8 \ -tee -reporter=github-check -filter-mode nofilter mpl-sphinx-theme-3.9.0/.github/workflows/release.yml000066400000000000000000000024571461676276000225110ustar00rootroot00000000000000--- name: Release on: release: types: - published jobs: build: name: Build Release Packages runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 10 - name: Set up Python id: setup uses: actions/setup-python@v4 with: python-version: 3.x - name: Install build tools run: | python -m pip install --upgrade pip python -m pip install --upgrade build - name: Build packages run: python -m build - name: Save built packages as artifact uses: actions/upload-artifact@v3 with: name: packages-${{ runner.os }}-${{ steps.setup.outputs.python-version }} path: dist/ if-no-files-found: error retention-days: 5 publish: name: Upload release to PyPI needs: build runs-on: ubuntu-latest environment: release permissions: id-token: write steps: - name: Download packages uses: actions/download-artifact@v3 - name: Consolidate packages for upload run: | mkdir dist cp packages-*/* dist/ - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10 mpl-sphinx-theme-3.9.0/.gitignore000066400000000000000000000001011461676276000167210ustar00rootroot00000000000000/mpl_sphinx_theme.egg-info/ /mpl_sphinx_theme/__pycache__/ build mpl-sphinx-theme-3.9.0/CONTRIBUTING.md000066400000000000000000000011101461676276000171630ustar00rootroot00000000000000Matplotlib is a community maintained project. We welcome contributions in the form of bug reports, documentation, code, design proposals, and more. For general information on how to contribute see https://matplotlib.org/stable/devel/. Installing the theme itself: After following the contribution guidelines in the Matplotlib docs, you will still need to install the theme itself to see the changes you made. At the root level of the repository run: `python -m pip install -e .` After that you will be able to build the docs locally by doing `make html` in the `docs` directory. mpl-sphinx-theme-3.9.0/LICENSE.txt000066400000000000000000000027571461676276000165770ustar00rootroot00000000000000BSD 3-Clause License Copyright (c) 2021-2023, Matplotlib Development Team Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. mpl-sphinx-theme-3.9.0/README.rst000066400000000000000000000063651461676276000164420ustar00rootroot00000000000000Matplotlib Sphinx Theme ======================= This is the official Sphinx theme for Matplotlib documentation. It extends the ``pydata-sphinx-theme`` project, but adds custom styling and a navigation bar. A demo of the theme built with the ``main`` branch can be seen at https://matplotlib.org/mpl-sphinx-theme/. When creating a Matplotlib subproject you can include this theme by changing this line in your ``conf.py`` file .. code-block:: python html_theme = 'mpl_sphinx_theme' And by including ``mpl_sphinx_theme`` as a requirement in your documentation installation. See the ``docs/conf.py`` file for other settings. There are two main templates that replace the defaults in ``pydata-sphinx-theme``: .. code-block:: navbar_center = mpl_nav_bar.html navbar_end = mpl_icon_links.html Note that the logo options need not be specified as they are included in theme initialization. The logo is stored at ``mpl_sphinx_theme/static/logo_{light,dark}.svg``. To change the top navbar, edit ``mpl_sphinx_theme/mpl_nav_bar.html`` To change the social icons, edit ``mpl_sphinx_theme/mpl_icon_links.html`` To change the style, edit ``mpl_sphinx_theme/static/css/style.css`` Overriding hard coded elements ------------------------------ This theme is primarily designed to be used with subprojects that are part of the main Matplotlib webiste (e.g., [our cheatseets](https://github.com/matplotlib/cheatsheets] and [list of third-party packages](https://github.com/matplotlib/mpl-third-party)). As such several elements are hard coded. However, the theme may also be used by other subprojects that need to change the hard-coded defaults. The following sections explain how to reset these back to their defaults by modifying ``html_theme_options`` in ``conf.py``. Header section links ~~~~~~~~~~~~~~~~~~~~ Use a copy of [the default pydata-sphinx-theme navbar](https://github.com/pydata/pydata-sphinx-theme/blob/main/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/navbar-nav.html) and set the ``'navbar_center'`` key to this HTML file in ``html_theme_options``. Building -------- To build the theme with a sample page, navigate into the ``doc/`` directory and run .. code-block:: make html The built html pages can be found in ``doc/_build/html/`` Releasing --------- This project `uses GitHub Actions `_ to automatically push a new release to PyPI whenever a release is made. For example, to release a new ``3.9.0`` version of ``mpl-sphinx-theme``: - be sure to edit `mpl_sphinx_theme/_version.py` - checkout the commit you would like to release - add a git tag - push the tag to the ``matplotlib/mpl-sphinx-theme`` repository .. code-block:: $ git checkout $ git tag -s -a v3.9.0 -m 'REL: 3.9.0' $ git push upstream --tags Finally, `turn the tag into a GitHub release `_. Update the required ``mpl-sphinx-theme`` version in the following files: * matplotlib/matplotlib: requirements/doc/doc-requirements.txt * matplotlib/mpl-brochure-site: requirements.txt * matplotlib/mpl-third-party: docs/requirements.txt * matplotlib/governance: requirements-doc.txt * matplotlib/mpl-gui: requirements-doc.txt mpl-sphinx-theme-3.9.0/docs/000077500000000000000000000000001461676276000156715ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/docs/Makefile000066400000000000000000000011721461676276000173320ustar00rootroot00000000000000# Minimal makefile for Sphinx documentation # # You can set these variables from the command line, and also # from the environment for the first two. SPHINXOPTS ?= 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) .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) mpl-sphinx-theme-3.9.0/docs/_static/000077500000000000000000000000001461676276000173175ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/docs/_static/favicon.ico000066400000000000000000000537261461676276000214550ustar00rootroot0000000000000000f h00 %  B hnS(0` ``` ```` @@``` ` @ `@@ @ @ @@``@hhhhhhXXXhHHHxxx`888hHphhxP(((h@h@HHxHXXph`hHhHpHhxxxxPhhXؐHhhx`HhHP@pHpPX`h(pH8X8`8h@ @HxXH`HhPpPxPP8XXphXhXXpXxXXXXX`hhhHXpPhpxpxpp@Px@XxhxxPxXxpxxxpxxx@XPhhpHxXxpxxPXx@XXh`p8xPxhxpxpȈ8XH`Xp`xhpxА0`Pp`p`xxhxXؘXxxXXhX`XxH`-7>==<=K72++852/-,/X-+94541851,X+*/459,458},+**7>X2S*X+*8458**X+*>Sz71X+}7/z>*X++Q->Q-7zUU,SJ*?gNME-7*z-*~VW]9U7+88*/U*+Q1}*[hT.C]BQ5Xw-+wk+S-1x.;.;lQ4>Q*z-XSS,*v{{/,+/,+o.C.G+7S/,/rk{{+;..R@*277Q*1Z/{v,ZIDG\3Bp*J7/*SS--{vdJ:T]/882**/*|-Xvv*QT]TD*/7>S*+-V*+-ZvkrqB]xh*/,UXzX|1FQ/Fgl[+4>K4:--}|+ff~IDT1,S*29<2*Xu/U,z*,b9f@wS*/5<*UYyPQS@}b/dNQU-[*+*+>zSsA66^Yyytu1ƓMz_-,<9+++9OA0006666^YyOPs_aaa`+++1w++++++++S=wX,XwOA0000000000AA^yNaa`cXXX+}XXXXXXXX/+sA000000066Yy7Bi1U鑊c-K<9*?600000066YO/VxL?-F:S,*+><*X^000066YP:BhS4*S**184Y666YP/I,2]R?Qn*+8*5*1OA6Y/:XŤ;.S-@H2SX451*@YtE?U,G.;F+eLw-+-728*}|/G..WXSS-*/**77JQwMR.;.TQ*SXiH1+X5*,SB.C3.BE*S HHj/-S5-5,,SSl;.33.XXSUnHH@+-**SUς.33.WD+*@HL*S-*w+7+,D.333.T+/+z}j*QUX7Q7,/T.3..3.R/*/**@e+*z-*4M,/*x.33333.?X+Qz:zUM448++..;3.3.;mI,+*-2578*po..33.GX+*>-SR;...xX+*25,M7S:1RW.B}X+*-/74:/۽X,+***M>19-X-*,S**,97,w85-*UQ452/8582218581Q7=<<=>??( @@@@(((000888```XXXHHHppph@pxxxXxP`XpH`hPXPhPh`иxhhhP`Ȱ`pXxppx`xXhxx@xPpP`hH`P`HpȸXhXh`Pp@xXXhHpppH`hppȸP`hPX@hH``p`x``@X0xhXXPHX``Pp`hXpPhHhHxhHPxȨpxXp`P0иhpȠ@hPPPh8pАȐHhXHpPhPhxxHpP`pp@phx``hhpp,,,444<<<\\\8 8 =] = 28= fV=] Ig  $P2  8"=   4*8  ~#r* *v@h] rŰ  kC/9B2BXf w  {ocd񜝟  9{nnnn{oz Bzonnn{cd}  klcn{cp} 'Jxy  =acdeg#/ij8 X hO[54]F^S] #5Q9/STB   2  ??( @OLIbmlll`_d]Yfз9;;MiиHHHL|yȺv`YP|Qwn~zΞÝq`}yruxoXÑyМǴϾsGGGرYTTTӚңJ\mmm޸bژlllľ`^dܼ؎\Xʺ؈f::8LڲhĴHHHĎLм|ȒxȞĘv`XP|vPz~nʶp`|xxtrXnLK=iZ;Kxyz{H|}~j!klmnopqrstuvw\]^_`abcdefghii[MNOPQRSTUVWXYZZ[>?@ABCDEFGHIJKL/0123456789:;;<=$%&'()*+,-. !"# (0` %###-PMMM000)))BBBP- (ŞrrrWWW^^^fffUUUiiiϩ7==='{{{TTTaaammmQQQTgggWWWqqqDDD:::"WdddvvvkkkYZVVV{{{;;;— ZHHHKKK Z444000\FFFOj@gFFF_{{{^^^JZpWl3\DDDZvvvrrrF{ielFnddd$zzzmmmXQQQVmVqsۖҐXZ||Erkdi^Egiii|||JJJkkkYYY???ѭϏGjeelOBXyBBB& fffÙcccԏ|~BZ~`igGzrGGGXXXHHHAAA˰z{kyNncEnOOO$_^^^stwxMsQ>[www}}}eeetttghstRoLevIII^^^ NNN%999ؒKqlFr~aaa&\\\r~΍ɊOhSFgjjj???Q...lllf`U‹gwB}f凇guyh`}0\xSSS 7wPMPVVw;kw{~~CiiS]8gT888Dohfa\QKNQJv}NUtu;ZӺtThEtRa@x!!!Djceghijid_T;AKH^BF'rH9iFfBmJoNmLiExlCkdeeeeeeffhnqZE[Bk:Z[seWzUH]D`>mIrPiEtBiddfeefedhjZFh?BONneQ~lS_=X4v((( @~deefeeehjUCdy|;mPeuqYh~>>>}}}Mw^geefjhXKb}~~Dm[}YmppyyyeeecccqNjdjeQJlDbiNdؽ]xxxbbbZZZ?pfTKPjq>>ZcccaaabbbbtIy^ihl>p[[[Z~~~lll LLL]sJxVeNu^^^cccWVDDDmmmzPoVi===!\\\LLLSZtttYYYdddlllTTTY(xxxWWW___ttt{{{ddd[[[rrrʬ9 pEEE888Ï??( @ eee_MMMGGGJJJFFFIIIKKKnnn_###hhh qqqzvvv⎎jjjSSSBBB(SSS}}}vvvjᲲ[[[u oootttfffqqqlll$dddopp7 kkklggh___ \\\{{{xxxpSGsTTU  WWWFOqVawzzztWWW}}} VVVQlSkfffaaakkk???www^JqiQBBBy333~~~ ```Ԕo\Irvvv444nnn<ВȐLjVIIIӭl:q---ҼmuƦȡAkTTT555KS]^|ͩq~ZufV6GGG888Xled\WOT^gcPsf>:NUL 2>NUL if errorlevel 9009 ( echo. echo.The 'sphinx-build' command was not found. Make sure you have Sphinx echo.installed, then set the SPHINXBUILD environment variable to point echo.to the full path of the 'sphinx-build' executable. Alternatively you echo.may add the Sphinx directory to PATH. echo. echo.If you don't have Sphinx installed, grab it from echo.http://sphinx-doc.org/ exit /b 1 ) %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% goto end :help %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% :end popd mpl-sphinx-theme-3.9.0/docs/requirements.txt000066400000000000000000000000461461676276000211550ustar00rootroot00000000000000pydata-sphinx-theme>=0.13.1 matplotlibmpl-sphinx-theme-3.9.0/mpl_sphinx_theme/000077500000000000000000000000001461676276000203045ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/__init__.py000066400000000000000000000054251461676276000224230ustar00rootroot00000000000000from ._version import version_info, __version__ # noqa: F401 from pathlib import Path def set_config_defaults(app): """Set default logo in theme options.""" try: theme = app.builder.theme_options except AttributeError: theme = None if not theme: theme = {} # Default logo logo = theme.get("logo", {}) if "image_dark" not in logo: logo["image_dark"] = "_static/logo_dark.svg" if "image_light" not in logo: logo["image_light"] = "_static/logo_light.svg" if "link" not in logo: logo["link"] = "https://matplotlib.org/stable/" theme["logo"] = logo # Update the HTML theme config app.builder.theme_options = theme def get_html_theme_path(): """Return list of HTML theme paths.""" return [str(Path(__file__).parent.parent.resolve())] def setup_html_page_context(app, pagename, templatename, context, doctree): """Add a mpl_path template function.""" # Pick link setting based on release mode. Theme users may specify either: # 1. a single string indicating the mode for navbar links; # 2. a tuple of two strings, the first being the mode for development, and # the second being the mode for release. # Release mode is determined by specifying the 'release' tag during build. navbar_links = context['theme_navbar_links'] if not isinstance(navbar_links, tuple): # Allow a single string for backwards compatibility. navbar_links = (navbar_links, navbar_links) if (len(navbar_links) != 2 or any(opt not in ['internal', 'absolute', 'server-stable'] for opt in navbar_links)): raise ValueError(f'Invalid navbar_links theme option: {navbar_links}') navbar_links = (navbar_links[1] if app.tags.has('release') else navbar_links[0]) def mpl_path(path): if navbar_links == 'internal': pathto = context['pathto'] return pathto(path) elif navbar_links == 'absolute': return f'https://matplotlib.org/stable/{path}' elif navbar_links == 'server-stable': return f'/stable/{path}' else: raise ValueError( f'Invalid navbar_links theme option: {navbar_links}') context['mpl_path'] = mpl_path # For more details, see: # https://www.sphinx-doc.org/en/master/development/theming.html#distribute-your-theme-as-a-python-package def setup(app): here = Path(__file__).parent.resolve() # Include component templates app.config.templates_path.append(str(here / "components")) app.add_html_theme("mpl_sphinx_theme", str(here)) app.connect("builder-inited", set_config_defaults) app.connect("html-page-context", setup_html_page_context) return {'version': __version__, 'parallel_read_safe': True} mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/_version.py000066400000000000000000000003221461676276000224770ustar00rootroot00000000000000#!/usr/bin/env python # coding: utf-8 # Copyright (c) Matplotlib developers. # Distributed under the terms of the Modified BSD License. version_info = (3, 9, 0) __version__ = ".".join(map(str, version_info)) mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/components/000077500000000000000000000000001461676276000224715ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/components/doc_version.html000066400000000000000000000001611461676276000256670ustar00rootroot00000000000000{% if doc_version %}

Built from {{ doc_version }}.

{% endif %} mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/donate_sidebar.html000066400000000000000000000002551461676276000241370ustar00rootroot00000000000000 mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/mpl_icon_links.html000066400000000000000000000010421461676276000241670ustar00rootroot00000000000000{%- if not theme_icon_links -%} {%- set theme_icon_links = [ { "url": "https://gitter.im/matplotlib/matplotlib", "icon": "fa-brands fa-gitter", "name": "Gitter" }, { "url": "https://discourse.matplotlib.org", "icon": "fa-brands fa-discourse", "name": "Discourse" }, { "url": "https://github.com/matplotlib/matplotlib", "icon": "fa-brands fa-github", "name": "GitHub" }, { "url": "https://twitter.com/matplotlib/", "icon": "fa-brands fa-twitter", "name": "Twitter" }, ] -%} {%- endif -%} {% extends "navbar-icon-links.html" %} mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/mpl_nav_bar.html000066400000000000000000000016741461676276000234620ustar00rootroot00000000000000 mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/static/000077500000000000000000000000001461676276000215735ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/static/css/000077500000000000000000000000001461676276000223635ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/static/css/style.css000066400000000000000000000013221461676276000242330ustar00rootroot00000000000000/* rgb #11557c */ html[data-theme="light"] { --pst-color-primary: hsl(202, 76%, 28%); --pst-color-text-base: rgb(51, 51, 51); --sd-color-primary-text: rgb(250, 250, 250); --pst-color-link: hsl(202, 76%, 25%); } html[data-theme="dark"] { --pst-color-primary: rgb(70, 152, 198); --pst-color-text-base: rgb(250, 250, 250); --sd-color-primary-text: rgb(51, 51, 51); --pst-color-link: hsl(202, 53%, 80%); } :root { --pst-color-link-hover: var(--pst-color-secondary); } .sidebar-cheatsheets, .sidebar-donate { margin: 2.75rem 0; } #navbar-icon-links { margin-left: 1.5em; } #navbar-icon-links .nav-link { color: #989898; } #navbar-icon-links .nav-link:hover { color: var(--pst-color-primary); } mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/static/images/000077500000000000000000000000001461676276000230405ustar00rootroot00000000000000mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/static/images/favicon.ico000077500000000000000000000360561461676276000251760ustar00rootroot00000000000000 h6  (00 h&(  )K%1W)4N1:\?kҭCw1*T/O_?8Z>iRK|QmUU7]̉:^?gGu׮N|X7X͸7W FqTݩ[x$[8]7a7Fs3M`6W̲4[5UN ^dL7\X;aϗ5T˾5ZsgҖL}؆gj];bЫ2M2U33f Pܴ\Hd8l;`Ύe>`%+A/2M4Rʡ.E /TCmӪL{R|?a"hmj?8^yfR-Aq1K1Pɏ? >g%LzUXKimmM9_PgҖ: ,FP3Q˭8Z;`gЯ3f?_*F7W`;`?hBoӇ8qL(^fYmkof9X1;a>gClӼHtԑJvcIz4Es 7^.=hҲCpGuךGw ]giAf joi"1Z9`͖>fBmHtMzQTݰUZT9bDnԡIwM{ٕV>fl_inp+T 6[?fFr:JyqQگTZ]`UGu'HvרM}Pud^kaimh,HmM;Wߑ]beRAL~RQTlgi.hmb'HY<`egNQQTݷ^+f#glcYf}ihXPَVXb\fkiT iamVDUY^Qeif HmTmHUݐZ_egcHj+RAY^cc6PX^aL HmXލ\`UV[Z߻TU0VG?3f(0` 'G .N74N'(P-LC5S˻5V˴6[p7Z3,XH,L(5S̵7X:]gAlBoԕDoG=pUL 2PL7V:[;b=gAmDrHwIx}Ey,?_)R%6V8[:`ο;dk@kҦCqHvK{LڴMLKx?UU.E6Uˤ9[:^3[2;j+BpkGuչK|ORQdOU?.W&3Y<3[@7Y<0V53Z-0Y%9b5_6mf?4Sʃ9Z:]5X4?.\ >q-IzؒNQTW}O U.E 5[d9]9^9^9^:_gѴAlӗDopCtDCr&Hy_? 2Rf8Z9\5]L8 E{!LrPUXZR"1U$7]͛9^:_:_;_8]:`;cЯ5]&. /Ne5T7W6XT5Y[9^:^f9$HO^^egjg 1X7[ϋ:`;b:eS_?0MȄ6S7W2V80W:8^Ͱ9_?eCmժDk4*U[cfjiR\ L 7]J:_=c>eЏ.\"91Kɦ4R7V.P&3 5Y98^Ϩ>eDoJv֥Gz2??*]Dfikf#/W 9]͹d<]&)D%2K4Q6Sͤ/K?5]4>eѣDoJwNڒI&_gjljHf-K6]Έ;a>e@fC$H. -CO2K4O4Ru??9e:CnұKwPTvL?c_jmnzc8 4\Xefg?j|:h'?HySq\bg~c`kmpi/O:^Δ=c>fg@mBpԑBs*_P&\bhc)hjnpn%/O8\͐;b>fAiDmԜEqyFtSHr1?v:u .Q9_Pf$H5]L:_Έ image/svg+xml mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/static/logo_light.svg000066400000000000000000003710051461676276000244510ustar00rootroot00000000000000 image/svg+xml mpl-sphinx-theme-3.9.0/mpl_sphinx_theme/theme.conf000066400000000000000000000003701461676276000222550ustar00rootroot00000000000000[theme] inherit = pydata_sphinx_theme stylesheet = css/style.css [options] navbar_links = absolute navbar_center = mpl_nav_bar.html navbar_end = theme-switcher.html, mpl_icon_links.html navbar_persistent = search-button.html logo = logo_light.svg mpl-sphinx-theme-3.9.0/pyproject.toml000066400000000000000000000023411461676276000176550ustar00rootroot00000000000000[build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] name = "mpl_sphinx_theme" dynamic = ["version"] description = "Matplotlib theme for Sphinx" readme = "README.rst" requires-python = ">=3" license = {file = "LICENSE.txt"} authors = [ {name = "Matplotlib Developers"}, ] classifiers = [ "Framework :: Sphinx :: Theme", "Programming Language :: Python :: 3 :: Only", "Topic :: Documentation", "Topic :: Documentation :: Sphinx", ] dependencies = [ "pydata-sphinx-theme>=0.13.1", "matplotlib", ] [project.urls] homepage = "https://matplotlib.org/mpl-sphinx-theme/" repository = "https://github.com/matplotlib/mpl-sphinx-theme" # http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package [project.entry-points."sphinx.html_themes"] mpl_sphinx_theme = "mpl_sphinx_theme" [tool.setuptools] packages = ["mpl_sphinx_theme"] zip-safe = false [tool.setuptools.dynamic] version = {attr = "mpl_sphinx_theme.__version__"} [tool.setuptools.package-data] mpl_sphinx_theme = [ "theme.conf", "*.html", "static/css/*.css", "static/*.svg", "static/images/*.ico", "static/js/*.js", "static/font/*.*", "components/*.html", ]