From aca7dd6c2b03e4240105097f6672e4810e9565d4 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Tue, 17 Jan 2023 14:49:38 -0800 Subject: py-sphinx-immaterial: new package (#34948) * py-sphinx-immaterial: new package This is a new-ish theme for Sphinx that's based on MkDocs's `immaterial` theme. More on the theme here: https://jbms.github.io/sphinx-immaterial/, but it seems to be very clear and readable. We *might* consider switching to it for Spack's docs. * Update var/spack/repos/builtin/packages/py-sphinx-immaterial/package.py Co-authored-by: Adam J. Stewart * Update var/spack/repos/builtin/packages/py-sphinx-immaterial/package.py Co-authored-by: Adam J. Stewart * Update var/spack/repos/builtin/packages/py-sphinx-immaterial/package.py Co-authored-by: Adam J. Stewart * Update var/spack/repos/builtin/packages/py-sphinx-immaterial/package.py Co-authored-by: Adam J. Stewart * add note about node.js requirements Co-authored-by: Adam J. Stewart --- .../packages/py-sphinx-immaterial/package.py | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-sphinx-immaterial/package.py diff --git a/var/spack/repos/builtin/packages/py-sphinx-immaterial/package.py b/var/spack/repos/builtin/packages/py-sphinx-immaterial/package.py new file mode 100644 index 0000000000..e41aef8c45 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-sphinx-immaterial/package.py @@ -0,0 +1,29 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class PySphinxImmaterial(PythonPackage): + """An adaptation of the popular mkdocs-material theme for the Sphinx documentation tool.""" + + homepage = "https://github.com/jbms/sphinx-immaterial" + pypi = "sphinx_immaterial/sphinx_immaterial-0.11.2.tar.gz" + + version("0.11.2", sha256="a1c8387ca8b4da282949e474647d06f3b2f7d12fe54e9e662b962771012bf257") + + depends_on("python@3.8:", type=("build", "run")) + depends_on("py-setuptools@42:", type="build") + depends_on("py-setuptools-scm@6.3.2:", type="build") + depends_on("py-appdirs", type=("build", "run")) + depends_on("py-markupsafe", type=("build", "run")) + depends_on("py-pydantic", type=("build", "run")) + depends_on("py-requests", type=("build", "run")) + depends_on("py-sphinx@4:", type=("build", "run")) + depends_on("py-typing-extensions", type=("build", "run")) + + # see https://jbms.github.io/sphinx-immaterial/#material-for-sphinx for node requirements + depends_on("node-js@14:", type="build") + depends_on("npm", type="build") -- cgit v1.2.3-70-g09d2