diff --git a/prepare_vendor.sh b/prepare_vendor.sh index 9a4b622924b60cd3c51fe26775b3c48c345aaf12..cd23056334f6508d609ae3a22c731f12a65550b3 100755 --- a/prepare_vendor.sh +++ b/prepare_vendor.sh @@ -1,5 +1,4 @@ #!/bin/bash -yum -y install nodejs-yarn spectool rpm-build PKG_URL=$(spectool *.spec --source 0 | sed -e 's/Source0:[ ]*//g') PKG_TARBALL=$(basename $PKG_URL) @@ -44,48 +43,12 @@ cd $PKG_PATH export YARN_CACHE_FOLDER="$PWD/.package-cache" echo ">>>>>> Install npm modules" -rm package-lock.json -yarn install +yarn install --frozen-lockfile if [ $? -ne 0 ]; then echo "ERROR: yarn install failed" cleanup_and_exit 1 fi -echo ">>>>>> Cleanup object dirs" -find node_modules/ -type d -name "*.o.d" -execdir rm {} + -find node_modules/ -type d -name "__pycache__" -execdir rm {} + - -echo ">>>>>> Cleanup object files" -find node_modules/ -name "*.node" -execdir rm {} + - -find node_modules/ -name "*.dll" | grep -Fv signal-client | xargs rm -f -find node_modules/ -name "*.dylib" -delete -find node_modules/ -name "*.so" -delete -find node_modules/ -name "*.o" -delete -find node_modules/ -name "*.a" -delete -find node_modules/ -name "*.snyk-*.flag" -delete - -echo ">>>>>> Cleanup build info" -find node_modules/ -name "builderror.log" -delete -find node_modules/ -name "yarn-error.log" -delete -find node_modules/ -name "yarn.lock" -delete -find node_modules/ -name ".deps" -type d -execdir rm {} + -find node_modules/ -name "Makefile" -delete -find node_modules/ -name "*.target.mk" -delete -find node_modules/ -name "config.gypi" -delete -find node_modules/ -name "package.json" -exec sed -i "s#$PKG_PATH#/tmp#g" {} \; - -echo ">>>>>> Cleanup yarn tarballs" -find node_modules/ -name ".yarn-tarball.tgz" -delete - -echo ">>>>>> Cleanup source maps" -find node_modules/ -name "*.js.map" -delete -find node_modules/ -name "*.ts.map" -delete -find node_modules/ -name "*.mjs.map" -delete -find node_modules/ -name "*.cjs.map" -delete -find node_modules/ -name "*.css.map" -delete -find node_modules/ -name "*.min.map" -delete - echo ">>>>>> Package vendor files" rm -f $PKG_DIR/${PKG_NAME}-${PKG_VERSION}-vendor.tar.xz XZ_OPT="-9e -T$(nproc)" tar cJf $PKG_DIR/${PKG_NAME}-${PKG_VERSION}-vendor.tar.xz .package-cache @@ -94,9 +57,9 @@ if [ $? -ne 0 ]; then fi yarn add license-checker -yarn license-checker --summary | sed "s#$PKG_PATH#/tmp#g" > $PKG_DIR/${PKG_NAME}-${PKG_VERSION}-vendor-licenses.txt +yarn license-checker --summary | sed "s#$PKG_PATH#/tmp/#g" > $PKG_DIR/${PKG_NAME}-${PKG_VERSION}-vendor-licenses.txt cd - -rm -rf .package-cache +rm -rf .package-cache node_modules cleanup_and_exit 0 diff --git a/pydata-sphinx-theme-0.13.3.tar.gz b/pydata-sphinx-theme-0.13.3.tar.gz deleted file mode 100644 index 6012c8c744a6c213b1409cb012ab0bad60133e28..0000000000000000000000000000000000000000 Binary files a/pydata-sphinx-theme-0.13.3.tar.gz and /dev/null differ diff --git a/pydata-sphinx-theme-0.13.3-vendor-licenses.txt b/pydata-sphinx-theme-0.16.0-vendor-licenses.txt similarity index 57% rename from pydata-sphinx-theme-0.13.3-vendor-licenses.txt rename to pydata-sphinx-theme-0.16.0-vendor-licenses.txt index 758988897daf2a3c1ea1d934db448ca3ceadd4b3..678975d7f899684d5d424be046e2da74712dd1e8 100644 --- a/pydata-sphinx-theme-0.13.3-vendor-licenses.txt +++ b/pydata-sphinx-theme-0.16.0-vendor-licenses.txt @@ -1,15 +1,17 @@ yarn run v1.22.19 $ /tmpnode_modules/.bin/license-checker --summary -├─ MIT: 327 -├─ ISC: 40 -├─ BSD-2-Clause: 16 -├─ BSD-3-Clause: 6 -├─ Apache-2.0: 4 +├─ MIT: 264 +├─ ISC: 32 +├─ BSD-2-Clause: 15 +├─ BSD-3-Clause: 7 +├─ Apache-2.0: 5 ├─ CC0-1.0: 2 ├─ (CC-BY-4.0 AND OFL-1.1 AND MIT): 1 +├─ MPL-2.0: 1 ├─ CC-BY-4.0: 1 +├─ (WTFPL OR MIT): 1 ├─ CC-BY-3.0: 1 ├─ (MIT AND CC-BY-3.0): 1 └─ 0BSD: 1 -Done in 1.19s. +Done in 0.94s. diff --git a/pydata-sphinx-theme-0.13.3-vendor.tar.xz b/pydata-sphinx-theme-0.16.0-vendor.tar.xz similarity index 66% rename from pydata-sphinx-theme-0.13.3-vendor.tar.xz rename to pydata-sphinx-theme-0.16.0-vendor.tar.xz index f24f883544e12af9e37f900e90539b770a08eee3..e6f2b62412fb5466c021bd48873bd735b8d96984 100644 Binary files a/pydata-sphinx-theme-0.13.3-vendor.tar.xz and b/pydata-sphinx-theme-0.16.0-vendor.tar.xz differ diff --git a/pydata-sphinx-theme-0.16.0.tar.gz b/pydata-sphinx-theme-0.16.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..30a4931b2fef0864d8e71ad8700768b629063ea2 Binary files /dev/null and b/pydata-sphinx-theme-0.16.0.tar.gz differ diff --git a/python-pydata-sphinx-theme.spec b/python-pydata-sphinx-theme.spec index c4684164071845c6a20aec6209d33d8037f15702..136b055041d86fcfaf251e561055198e07c56c5a 100644 --- a/python-pydata-sphinx-theme.spec +++ b/python-pydata-sphinx-theme.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-pydata-sphinx-theme -Version: 0.13.3 +Version: 0.16.0 Release: 1 Summary: Bootstrap-based Sphinx theme from the PyData community. @@ -16,6 +16,7 @@ BuildArch: noarch BuildRequires: nodejs-devel BuildRequires: nodejs-yarn BuildRequires: npm +BuildRequires: pandoc BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-setuptools @@ -33,17 +34,23 @@ BuildRequires: python3-sphinx-design BuildRequires: python3-sphinx-inline-tabs BuildRequires: python3-sphinxext-rediraffe BuildRequires: python3-jupyter-sphinx +BuildRequires: python3-jupyterlite-sphinx BuildRequires: python3-pygments >= 2.7 BuildRequires: python3-myst-parser BuildRequires: python3-ablog BuildRequires: python3-pandas +BuildRequires: python3-plotly +BuildRequires: python3-xarray +BuildRequires: python3-ipyleaflet BuildRequires: python3-myst-nb BuildRequires: python3-matplotlib BuildRequires: python3-sphinxcontrib-youtube BuildRequires: python3-numpydoc +BuildRequires: python3-nbsphinx BuildRequires: python3-sphinx-togglebutton BuildRequires: python3-sphinx-favicon BuildRequires: python3-sphinx-sitemap +BuildRequires: python3-sphinx-autoapi BuildRequires: python3-linkify-it-py %global _description %{expand: @@ -85,13 +92,14 @@ cp -p %{SOURCE2} . # Don't ship version control files find . -name .gitignore -delete +# Point to the local switcher instead of the inaccessible one on the web +sed -i 's,https://pydata-sphinx-theme\.readthedocs\.io/en/latest/,,' docs/conf.py + # Substitute the installed nodejs version for the requested version sed -i 's,^\(node-version = \)".*",\1"%{nodejs_version}",' pyproject.toml -# Use local objects.inv for intersphinx -sed -e 's|\("https://docs\.python\.org/3", \)None|\1"%{_docdir}/python3-docs/html/objects.inv"|' \ - -e 's|\("https://www\.sphinx-doc\.org/en/master", \)None|\1"%{_docdir}/python-sphinx-doc/html/objects.inv"|' \ - -i docs/conf.py +# The Fedora sphinx package does not provide sphinx[test] +sed -i 's/\(sphinx\)\[test\]/\1/' pyproject.toml %build export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 @@ -101,17 +109,21 @@ nodeenv --node=system --prebuilt --clean-src $PWD/.nodeenv %pyproject_build %install +%define instdir %{buildroot}%{python3_sitelib}/pydata_sphinx_theme +%define themedir %{instdir}/theme/pydata_sphinx_theme/static %pyproject_install # Build documentation +cd docs CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \ PATH="%{buildroot}%{_bindir}:$PATH" \ PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \ PYTHONDONTWRITEBYTECODE=1 \ %{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \ PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \ -sphinx-build -b html docs html -rm -rf html/{.buildinfo,.doctrees} +sphinx-build -a . _build +rm _build/.buildinfo +cd - %files -n python3-pydata-sphinx-theme %doc README.md CONTRIBUTING.md @@ -120,9 +132,26 @@ rm -rf html/{.buildinfo,.doctrees} %{python3_sitelib}/pydata_sphinx_theme*.dist-info/ %files help -%doc html +%doc docs/_build/* %license LICENSE %changelog +* Mon Nov 4 2024 Dongxing Wang - 0.16.0-1 +- Update package to version 0.16.0 + Scrollable table? Make keyboard accessible (focusable) + Use ellipsis to truncate breadcrumbs, and test with playwright + Fix nbsphinx color outputs, suppress other notebook output Axe errors + Apply modal pattern to search box pop-up + When hovering a heading, make the #-anchor fully opaque + Increase horizontal whitespace between navbar icon links + Make overlay sidebars behave like modals + Maint: do not use document.write + A11Y: Add title attribute to theme switcher + ENH - Update translations workflows + Additional version banner details + Increase space between links in right sidebar to match left sidebar + Bolder bigger headings by @gabalafou + ENH add algolia docsearch version meta tag + * Tue Jan 30 2024 Dongxing Wang - 0.13.3-1 - Initial package