././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1742347191.7895186 astropy_sphinx_theme-2.0/ 0000755 0001751 0000166 00000000000 00000000000 016433 5 ustar 00runner docker 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1742347191.7835186 astropy_sphinx_theme-2.0/.github/ 0000755 0001751 0000166 00000000000 00000000000 017773 5 ustar 00runner docker 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1742347179.0 astropy_sphinx_theme-2.0/.github/dependabot.yml 0000644 0001751 0000166 00000001120 00000000000 022615 0 ustar 00runner docker 0000000 0000000 # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates version: 2 updates: - package-ecosystem: "github-actions" # See documentation for possible values directory: ".github/workflows" # Location of package manifests schedule: interval: "monthly" groups: actions: patterns: - "*" ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1742347191.7835186 astropy_sphinx_theme-2.0/.github/workflows/ 0000755 0001751 0000166 00000000000 00000000000 022030 5 ustar 00runner docker 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1742347179.0 astropy_sphinx_theme-2.0/.github/workflows/ci_workflow.yml 0000644 0001751 0000166 00000001201 00000000000 025072 0 ustar 00runner docker 0000000 0000000 name: CI on: pull_request: push: branches: [ main ] tags: workflow_dispatch: schedule: # Run every Sunday at 04:53 UTC - cron: 53 4 * * 0 jobs: tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 - name: Set up Python uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 with: python-version: 3.9 - name: Install run: | python -m pip install pip -U pip install .[test] - name: Run tests run: pytest astropy_sphinx_theme ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1742347179.0 astropy_sphinx_theme-2.0/.github/workflows/publish.yml 0000644 0001751 0000166 00000002555 00000000000 024230 0 ustar 00runner docker 0000000 0000000 name: Release on: pull_request: push: tags: - '*' jobs: build-n-publish: name: Build and publish Python № distributions №І to PyPI runs-on: ubuntu-latest if: ((github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || contains(github.event.pull_request.labels.*.name, 'Build wheels')) steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 with: python-version: 3.8 - name: Install python-build and twine run: python -m pip install build "twine>=3.3" - name: Build package run: python -m build --sdist --wheel . - name: List result run: ls -l dist - name: Check long_description run: python -m twine check --strict dist/* - name: Test package run: | cd .. python -m venv testenv testenv/bin/pip install pytest sphinx astropy-sphinx-theme/dist/*.whl testenv/bin/pytest astropy-sphinx-theme/astropy_sphinx_theme/tests - name: Publish distribution №І to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 with: user: __token__ password: ${{ secrets.pypi_password }} ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1742347179.0 astropy_sphinx_theme-2.0/.gitignore 0000644 0001751 0000166 00000000076 00000000000 020426 0 ustar 00runner docker 0000000 0000000 dist build *egg-info *.pyc *~ astropy_sphinx_theme/version.py ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1742347179.0 astropy_sphinx_theme-2.0/CHANGES.rst 0000644 0001751 0000166 00000000746 00000000000 020244 0 ustar 00runner docker 0000000 0000000 2.0 (2025-03-18) ---------------- - Infrastructure updates. Minimum Python version is now 3.7. [#27] - Fixed overflowing navbar. [#40] 1.1 (2019-04-25) ---------------- - Added a theme option ``astropy_project_menubar`` which can be used to control whether to show extra project links in the top bar. [#4, #8] - Fixed compatibility with Sphinx 2.x. [#6] 1.0 (2018-01-26) ---------------- - Initial standalone version of the theme (formerly packaged as part of astropy-helpers) ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1742347179.0 astropy_sphinx_theme-2.0/LICENSE.rst 0000644 0001751 0000166 00000002730 00000000000 020251 0 ustar 00runner docker 0000000 0000000 Copyright (c) 2014-2025, Astropy Developers All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * 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. * Neither the name of the Astropy Team 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. ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1742347179.0 astropy_sphinx_theme-2.0/MANIFEST.in 0000644 0001751 0000166 00000000345 00000000000 020173 0 ustar 00runner docker 0000000 0000000 include *.txt include *.rst include *.py include astropy_sphinx_theme/__init__.py include setup.cfg # Non-python files. recursive-include astropy_sphinx_theme * # Extraneous files. global-exclude .DS_Store global-exclude *.pyc ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1742347191.7895186 astropy_sphinx_theme-2.0/PKG-INFO 0000644 0001751 0000166 00000004360 00000000000 017533 0 ustar 00runner docker 0000000 0000000 Metadata-Version: 2.1 Name: astropy-sphinx-theme Version: 2.0 Summary: The sphinx theme for Astropy and affiliated packages. Home-page: https://github.com/astropy/astropy-sphinx-theme Author: The Astropy Developers Author-email: astropy.team@gmail.com License: BSD Classifier: Development Status :: 3 - Alpha Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: BSD License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: Implementation :: CPython Requires-Python: >=3.7 Description-Content-Type: text/x-rst License-File: LICENSE.rst Requires-Dist: setuptools>=30.3.0 Provides-Extra: test Requires-Dist: packaging; extra == "test" Requires-Dist: pytest; extra == "test" Requires-Dist: sphinx; extra == "test" Astropy Sphinx Theme(s) ----------------------- This is the repository for the default Astropy project documentation theme(s). To use this theme, simply install this package then add the following line to your documentation's ``conf.py`` file: .. code:: python html_theme = 'bootstrap-astropy' This requires Sphinx 1.6 or later to work properly. For older versions of Sphinx, you will need to do: .. code:: python import astropy_sphinx_theme html_theme_path = astropy_sphinx_theme.get_html_theme_path() html_theme = 'bootstrap-astropy' ``bootstrap-astropy`` is the only theme that is currently available, but the structure of the package allows more themes to be added in future if needed. Several options for the theme can be set in the ``conf.py`` file: .. code:: python html_theme_options = { 'logotext1': 'packagename', # white, semi-bold 'logotext2': '', # orange, light 'logotext3': ':docs', # white, light 'astropy_project_menubar': True } The ``logotext?`` options can be used to customize the top left logo, while the ``astropy_project_menubar`` option can be set to ``True`` for packages that are managed by the project itself (this will add links to find out more about the Astropy project, about the team, and so on). .. image:: https://circleci.com/gh/astropy/astropy-sphinx-theme/tree/main.svg?style=svg :target: https://circleci.com/gh/astropy/astropy-sphinx-theme/tree/main ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1742347179.0 astropy_sphinx_theme-2.0/README.rst 0000644 0001751 0000166 00000002664 00000000000 020132 0 ustar 00runner docker 0000000 0000000 Astropy Sphinx Theme(s) ----------------------- This is the repository for the default Astropy project documentation theme(s). To use this theme, simply install this package then add the following line to your documentation's ``conf.py`` file: .. code:: python html_theme = 'bootstrap-astropy' This requires Sphinx 1.6 or later to work properly. For older versions of Sphinx, you will need to do: .. code:: python import astropy_sphinx_theme html_theme_path = astropy_sphinx_theme.get_html_theme_path() html_theme = 'bootstrap-astropy' ``bootstrap-astropy`` is the only theme that is currently available, but the structure of the package allows more themes to be added in future if needed. Several options for the theme can be set in the ``conf.py`` file: .. code:: python html_theme_options = { 'logotext1': 'packagename', # white, semi-bold 'logotext2': '', # orange, light 'logotext3': ':docs', # white, light 'astropy_project_menubar': True } The ``logotext?`` options can be used to customize the top left logo, while the ``astropy_project_menubar`` option can be set to ``True`` for packages that are managed by the project itself (this will add links to find out more about the Astropy project, about the team, and so on). .. image:: https://circleci.com/gh/astropy/astropy-sphinx-theme/tree/main.svg?style=svg :target: https://circleci.com/gh/astropy/astropy-sphinx-theme/tree/main ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1742347191.7835186 astropy_sphinx_theme-2.0/astropy_sphinx_theme/ 0000755 0001751 0000166 00000000000 00000000000 022707 5 ustar 00runner docker 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1742347179.0 astropy_sphinx_theme-2.0/astropy_sphinx_theme/__init__.py 0000644 0001751 0000166 00000000512 00000000000 025016 0 ustar 00runner docker 0000000 0000000 """ Astropy Sphinx Theme """ import os def get_html_theme_path(): """Return list of HTML theme paths.""" cur_dir = os.path.abspath(os.path.dirname(__file__)) return [cur_dir] def setup(app): app.add_html_theme('bootstrap-astropy', os.path.abspath(os.path.join(os.path.dirname(__file__), 'bootstrap-astropy'))) ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1742347191.7865186 astropy_sphinx_theme-2.0/astropy_sphinx_theme/bootstrap-astropy/ 0000755 0001751 0000166 00000000000 00000000000 026423 5 ustar 00runner docker 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1742347179.0 astropy_sphinx_theme-2.0/astropy_sphinx_theme/bootstrap-astropy/globaltoc.html 0000644 0001751 0000166 00000000111 00000000000 031250 0 ustar 00runner docker 0000000 0000000