Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-python-docs-theme for 
openSUSE:Factory checked in at 2023-12-09 22:49:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-docs-theme (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-docs-theme.new.25432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-docs-theme"

Sat Dec  9 22:49:52 2023 rev:5 rq:1132211 version:2023.9

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-python-docs-theme/python-python-docs-theme.changes
        2023-09-04 22:52:38.277764851 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-python-docs-theme.new.25432/python-python-docs-theme.changes
     2023-12-09 22:50:19.869183850 +0100
@@ -1,0 +2,6 @@
+Sat Dec  9 08:26:29 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 2023.9:
+  * Focus search box when pressing slash
+
+-------------------------------------------------------------------

Old:
----
  python_docs_theme-2023.7.tar.gz

New:
----
  python_docs_theme-2023.9.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-python-docs-theme.spec ++++++
--- /var/tmp/diff_new_pack.os6KNt/_old  2023-12-09 22:50:20.953222987 +0100
+++ /var/tmp/diff_new_pack.os6KNt/_new  2023-12-09 22:50:20.953222987 +0100
@@ -17,12 +17,12 @@
 
 
 Name:           python-python-docs-theme
-Version:        2023.7
+Version:        2023.9
 Release:        0
 Summary:        The Sphinx theme for the CPython docs and related projects
 License:        Python-2.0
 Group:          Development/Languages/Python
-URL:            https://docs.python.org
+URL:            https://github.com/python/python-docs-theme
 Source:         
https://files.pythonhosted.org/packages/source/p/python-docs-theme/python_docs_theme-%{version}.tar.gz
 BuildRequires:  %{python_module flit-core}
 BuildRequires:  %{python_module pip}

++++++ python_docs_theme-2023.7.tar.gz -> python_docs_theme-2023.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_docs_theme-2023.7/.github/workflows/tests.yml 
new/python_docs_theme-2023.9/.github/workflows/tests.yml
--- old/python_docs_theme-2023.7/.github/workflows/tests.yml    2023-08-04 
03:55:48.486844300 +0200
+++ new/python_docs_theme-2023.9/.github/workflows/tests.yml    1970-01-01 
01:00:00.000000000 +0100
@@ -1,43 +0,0 @@
-name: Tests
-
-on:
-  push:
-  pull_request:
-  workflow_dispatch:
-
-jobs:
-  build_doc:
-    name: Build CPython docs
-    runs-on: ubuntu-latest
-    strategy:
-      matrix:
-        branch: [origin/main, 3.12, 3.11, '3.10', 3.9, 3.8]
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v4
-        with:
-          python-version: 3
-      - name: Clone docsbuild scripts
-        run: |
-          git clone https://github.com/python/docsbuild-scripts/
-      - name: Set up requirements
-        run: |
-          python -m pip install --upgrade pip
-          python -m pip install -r docsbuild-scripts/requirements.txt
-      - name: Build documentation
-        run: >
-          python ./docsbuild-scripts/build_docs.py 
-          --quick 
-          --build-root ./build_root 
-          --www-root ./www 
-          --log-directory ./logs 
-          --group $(id -g) 
-          --skip-cache-invalidation 
-          --theme $(pwd) 
-          --language en 
-          --branch ${{ matrix.branch }}
-      - name: Upload
-        uses: actions/upload-artifact@v3
-        with:
-          name: doc-html
-          path: www/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_docs_theme-2023.7/.gitignore 
new/python_docs_theme-2023.9/.gitignore
--- old/python_docs_theme-2023.7/.gitignore     2023-08-04 03:55:48.487041200 
+0200
+++ new/python_docs_theme-2023.9/.gitignore     1970-01-01 01:00:00.000000000 
+0100
@@ -1,101 +0,0 @@
-# Byte-compiled / optimized / DLL files
-__pycache__/
-*.py[cod]
-*$py.class
-
-# C extensions
-*.so
-
-# Distribution / packaging
-.Python
-env/
-build/
-develop-eggs/
-dist/
-downloads/
-eggs/
-.eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-wheels/
-*.egg-info/
-.installed.cfg
-*.egg
-
-# PyInstaller
-#  Usually these files are written by a python script from a template
-#  before PyInstaller builds the exe, so as to inject date/other infos into it.
-*.manifest
-*.spec
-
-# Installer logs
-pip-log.txt
-pip-delete-this-directory.txt
-
-# Unit test / coverage reports
-htmlcov/
-.tox/
-.coverage
-.coverage.*
-.cache
-nosetests.xml
-coverage.xml
-*.cover
-.hypothesis/
-
-# Translations
-*.mo
-*.pot
-
-# Django stuff:
-*.log
-local_settings.py
-
-# Flask stuff:
-instance/
-.webassets-cache
-
-# Scrapy stuff:
-.scrapy
-
-# Sphinx documentation
-docs/_build/
-
-# PyBuilder
-target/
-
-# Jupyter Notebook
-.ipynb_checkpoints
-
-# pyenv
-.python-version
-
-# celery beat schedule file
-celerybeat-schedule
-
-# SageMath parsed files
-*.sage.py
-
-# dotenv
-.env
-
-# virtualenv
-.venv
-venv/
-ENV/
-
-# Spyder project settings
-.spyderproject
-.spyproject
-
-# Rope project settings
-.ropeproject
-
-# mkdocs documentation
-/site
-
-# mypy
-.mypy_cache/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_docs_theme-2023.7/.readthedocs.yml 
new/python_docs_theme-2023.9/.readthedocs.yml
--- old/python_docs_theme-2023.7/.readthedocs.yml       2023-08-04 
03:55:48.487341600 +0200
+++ new/python_docs_theme-2023.9/.readthedocs.yml       1970-01-01 
01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-# Read the Docs configuration file
-# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
-# Project page: https://readthedocs.org/projects/python-docs-theme-previews/
-
-version: 2
-
-build:
-  os: ubuntu-22.04
-  tools:
-    python: "3"
-
-  commands:
-    - git clone --depth=1 https://github.com/python/cpython
-    - make html CPYTHON_PATH=cpython
-    - mv cpython/Doc/build _readthedocs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_docs_theme-2023.7/CHANGELOG.rst 
new/python_docs_theme-2023.9/CHANGELOG.rst
--- old/python_docs_theme-2023.7/CHANGELOG.rst  2023-08-04 03:55:48.487680000 
+0200
+++ new/python_docs_theme-2023.9/CHANGELOG.rst  1970-01-01 01:00:00.000000000 
+0100
@@ -1,127 +0,0 @@
-=========
-Changelog
-=========
-
-`2023.7 <https://github.com/python/python-docs-theme/releases/tag/v2023.7>`_
-----------------------------------------------------------------------------
-
-- Fix compatability with Sphinx 7.1 (#137)
-   Contributed by Pradyun Gedam
-- Enable the slash keypress to focus the search field (#141)
-   Contributed by Mike Fiedler
-- Sphinx 6.2 fix: add ``nav.contents`` where ``div.topic`` is used (#138)
-   Contributed by Hugo van Kemenade
-- Dark mode: fix contrast for C++ specific styling (#133)
-  Contributed by Hugo van Kemenade
-- Don't let long code literals extend beyond the right side of the screen 
(#139)
-   Contributed by Hugo van Kemenade
-- Test with Python 3.12 (#140)
-   Contributed by Hugo van Kemenade
-
-`2023.5 <https://github.com/python/python-docs-theme/releases/tag/v2023.5>`_
-----------------------------------------------------------------------------
-
-- Add a dark theme. (#44)
-   Contributed by Nils K
-- Fix: Remove searchbox id from form. (fixes #117)
-   Contributed by Nils K
-- Update ``python-docs-theme`` to work with Sphinx 5 & 6. (#99 & #127)
-   Contributed by Adam Turner
-- Override font for ``.sig`` for consistency with other code blocks. (#121)
-   Contributed by Chris Warrick
-- Dark mode: add class to invert image brightness. (#128)
-   Contributed by Hugo van Kemenade
-
-
-`2023.3.1 
<https://github.com/python/python-docs-theme/releases/tag/v2023.3.1>`_
---------------------------------------------------------------------------------
-
-- Skip cache-busting for old Sphinx #113
-
-
-`2023.3 <https://github.com/python/python-docs-theme/releases/tag/v2023.3>`_
-----------------------------------------------------------------------------
-
-- Fix problem with monospace rendering in Vivaldi #104
-- Fix mobile nav obstructing content #96
-- Reduce footer margin only for desktop #106
-- Append a hash ?digest to CSS files for cache-busting #108
-
-
-`2022.1 <https://github.com/python/python-docs-theme/releases/tag/v2022.1>`_
-----------------------------------------------------------------------------------
-
-- Add a configuration for license URL. (#90)
-- Exclude the floating navbar from CHM help. (#84)
-- Make sidebar scrollable and sticky (on modern browsers) (#91)
-
-
-`2021.11.1 
<https://github.com/python/python-docs-theme/releases/tag/v2021.11.1>`_
------------------------------------------------------------------------------------
-
-- Fix monospace again, on buggy Google Chrome (#87)
-   Contributed by Tushar Sadhwani
-
-
-`2021.11 <https://github.com/python/python-docs-theme/releases/tag/v2021.11>`_
--------------------------------------------------------------------------------
-
-- Fix monospace on buggy Google Chrome (#85)
-   Contributed by Tushar Sadhwani
-
-
-`2021.8 <https://github.com/python/python-docs-theme/releases/tag/v2021.8>`_
-------------------------------------------------------------------------------
-
-- Add the copyright_url variable in the theme (#67)
-   Contributed by jablonskidev
-- Improve readability (#79)
-   Contributed by Olga Bulat
-- Remove #searchbox on mobile to fix a layout bug (#76)
-   Contributed by Olga Bulat
-- Fix the appearance of version/language selects (#74)
-   Contributed by Olga Bulat
-
-
-`2021.5 <https://github.com/python/python-docs-theme/releases/tag/v2021.5>`_
-------------------------------------------------------------------------------
-
-- Make the theme responsive (#46)
-   Contributed by Olga Bulat.
-- Use Python 3.8 for the Github Actions (#71)
-   Contributed by Stéphane Wirtel.
-- Use default pygments theme (#68)
-   Contributed by Aaron Carlisle.
-- Test Github action to validate the theme against docsbuild scripts. (#69)
-   Contributed by Julien Palard.
-- Add the copy button to pycon3 highlighted code blocks. (#64)
-   Contributed by Julien Palard.
-
-
-`2020.12 <https://github.com/python/python-docs-theme/releases/tag/v2020.12>`_
-------------------------------------------------------------------------------
-
-- Updated the readme, to remind user to install the package in a virtual 
environment. (#41)
-   Contributed by Mariatta.
-- Updated the package url, using the GitHub repository instead of 
docs.python.org (#49)
-   Contributed by Pradyun Gedam.
-- Added license information to the footer of the doc (#36)
-   Contributed by Todd.
-- Fixed typo in the footer (#52)
-   Contributed by Dominic Davis-Foster.
-- Added information on how to use the package (#32)
-   Contributed by Tapasweni Pathak.
-- Fixed code formatting (#53).
-   Contributed by Hugo van Kemenade.
-- Fixed code bgcolor and codetextcolor for Sphinx 3.1.0+ (#57)
-   Contributed by Zhiming Wang.
-
-2018.7
-------
-Corresponds to `44a8f30 
<https://github.com/python/python-docs-theme/commit/44a8f306db9ec86d277a8a687538d5d51e415130>`_
-
-
-`2018.2 <https://github.com/python/python-docs-theme/releases/tag/2018.2>`_
----------------------------------------------------------------------------
-
-Initial release.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_docs_theme-2023.7/CONTRIBUTING.rst 
new/python_docs_theme-2023.9/CONTRIBUTING.rst
--- old/python_docs_theme-2023.7/CONTRIBUTING.rst       2023-08-04 
03:55:48.488010600 +0200
+++ new/python_docs_theme-2023.9/CONTRIBUTING.rst       1970-01-01 
01:00:00.000000000 +0100
@@ -1,23 +0,0 @@
-# How to release
-
-- Update CHANGELOG.rst
-- bump version (YYYY.MM) in pyproject.toml
-- commit
-- push to check one last time if the tests pass github side.
-- tag it (YYYY.MM).
-- build (``python -m build``)
-- Test it (in :file:`cpython/Doc` run
-  ``./venv/bin/pip install 
../../python-docs-theme/dist/python-docs-theme-2021.8.tar.gz``
-  then build the doc using ``make html``).
-- upload it: ``twine upload dist/*``.
-- push the tag (``git push --tags``)
-
-
-# Makefile usage
-
-This project includes a simple Makefile for syncing changes to the theme with
-the main CPython repository. Run ``make help`` for details on available rules.
-
-There is one configurable variable, ``CPYTHON_PATH``, which should be the path
-to the CPython repository on your machine. By default, it points to
-``../cpython``.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_docs_theme-2023.7/Makefile 
new/python_docs_theme-2023.9/Makefile
--- old/python_docs_theme-2023.7/Makefile       2023-08-04 03:55:48.488413300 
+0200
+++ new/python_docs_theme-2023.9/Makefile       1970-01-01 01:00:00.000000000 
+0100
@@ -1,29 +0,0 @@
-# You can set these variables from the command line.
-CPYTHON_PATH = ../cpython
-PYTHON       = python3
-PACKAGE_ABS_PATH = $(shell pwd)/$(shell find dist/python-docs-theme-*.tar.gz)
-
-
-.PHONY: help
-help:
-       @echo "Please use \`make <target>' where <target> is one of"
-       @echo "  venv       to create a venv with necessary tools at 
$(CPYTHON_PATH)/Doc/venv"
-       @echo "  html       to make standalone CPython HTML files"
-       @echo "  htmlview   to open the index page built by the html target in 
your browser"
-
-.PHONY: venv
-venv:
-       $(PYTHON) -m pip install build
-       $(PYTHON) -m build
-       cd $(CPYTHON_PATH)/Doc \
-               && make venv \
-               && ./venv/bin/pip install $(PACKAGE_ABS_PATH)
-
-.PHONY: html
-html: venv
-       cd $(CPYTHON_PATH)/Doc && \
-               make html
-
-.PHONY: htmlview
-htmlview: html
-       $(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + 
os.path.realpath('$(CPYTHON_PATH)/Doc/build/html/index.html'))"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_docs_theme-2023.7/PKG-INFO 
new/python_docs_theme-2023.9/PKG-INFO
--- old/python_docs_theme-2023.7/PKG-INFO       1970-01-01 01:00:00.000000000 
+0100
+++ new/python_docs_theme-2023.9/PKG-INFO       1970-01-01 01:00:00.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: python-docs-theme
-Version: 2023.7
+Version: 2023.9
 Summary: The Sphinx theme for the CPython docs and related projects
 Author-email: PyPA <distutils-...@python.org>
 Requires-Python: >=3.8
@@ -18,6 +18,8 @@
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
 Project-URL: Code, https://github.com/python/python-docs-theme
 Project-URL: Download, https://pypi.org/project/python-docs-theme/
 Project-URL: Homepage, https://github.com/python/python-docs-theme/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_docs_theme-2023.7/code_of_conduct.rst 
new/python_docs_theme-2023.9/code_of_conduct.rst
--- old/python_docs_theme-2023.7/code_of_conduct.rst    2023-08-04 
03:55:48.488743800 +0200
+++ new/python_docs_theme-2023.9/code_of_conduct.rst    1970-01-01 
01:00:00.000000000 +0100
@@ -1,14 +0,0 @@
-Code of Conduct
-===============
-
-Please note that all interactions on
-`Python Software Foundation <https://www.python.org/psf-landing/>`__-supported
-infrastructure is `covered
-<https://www.python.org/psf/records/board/minutes/2014-01-06/#management-of-the-psfs-web-properties>`__
-by the `PSF Code of Conduct <https://www.python.org/psf/codeofconduct/>`__,
-which includes all infrastructure used in the development of Python itself
-(e.g. mailing lists, issue trackers, GitHub, etc.).
-
-In general this means everyone is expected to be open, considerate, and
-respectful of others no matter what their position is within the project.
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_docs_theme-2023.7/pyproject.toml 
new/python_docs_theme-2023.9/pyproject.toml
--- old/python_docs_theme-2023.7/pyproject.toml 2023-08-04 03:55:48.488902300 
+0200
+++ new/python_docs_theme-2023.9/pyproject.toml 2023-10-04 16:52:28.000000000 
+0200
@@ -5,7 +5,7 @@
 # project metadata
 [project]
 name = "python-docs-theme"
-version = "2023.7"
+version = "2023.9"
 description = "The Sphinx theme for the CPython docs and related projects"
 readme = "README.rst"
 urls.Code = "https://github.com/python/python-docs-theme";
@@ -30,6 +30,8 @@
     "Programming Language :: Python :: 3.9",
     "Programming Language :: Python :: 3.10",
     "Programming Language :: Python :: 3.11",
+    "Programming Language :: Python :: 3.12",
+    "Programming Language :: Python :: 3.13",
 ]
 
 [[project.authors]]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_docs_theme-2023.7/python_docs_theme/layout.html 
new/python_docs_theme-2023.9/python_docs_theme/layout.html
--- old/python_docs_theme-2023.7/python_docs_theme/layout.html  2023-08-04 
03:55:48.489701700 +0200
+++ new/python_docs_theme-2023.9/python_docs_theme/layout.html  2023-10-04 
16:52:28.000000000 +0200
@@ -48,7 +48,7 @@
     {%- if builder != "htmlhelp" %}
     <div class="inline-search" role="search">
         <form class="inline-search" action="{{ pathto('search') }}" 
method="get">
-          <input placeholder="{{ _('Quick search') }}" aria-label="{{ _('Quick 
search') }}" type="search" name="q" />
+          <input placeholder="{{ _('Quick search') }}" aria-label="{{ _('Quick 
search') }}" type="search" name="q" id="search-box" />
           <input type="submit" value="{{ _('Go') }}" />
         </form>
     </div>
@@ -76,13 +76,19 @@
         {%- if not embedded %}
             <script type="text/javascript" src="{{ 
pathto('_static/copybutton.js', 1) }}"></script>
             <script type="text/javascript" src="{{ pathto('_static/menu.js', 
1) }}"></script>
+            <script type="text/javascript" src="{{ 
pathto('_static/search-focus.js', 1) }}"></script>
             <script type="text/javascript" src="{{ 
pathto('_static/themetoggle.js', 1) }}"></script>
         {%- endif -%}
     {%- endif -%}
     {{ super() }}
 {%- endblock -%}
 
-{%- block document %}
+{%- block css -%}
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    {{ super() }}
+{%- endblock -%}
+
+{%- block body_tag %}
 {{ super() }}
 {%- if builder != 'htmlhelp' %}
 <div class="mobile-nav">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_docs_theme-2023.7/python_docs_theme/static/pydoctheme_dark.css 
new/python_docs_theme-2023.9/python_docs_theme/static/pydoctheme_dark.css
--- old/python_docs_theme-2023.7/python_docs_theme/static/pydoctheme_dark.css   
2023-08-04 03:55:48.491044000 +0200
+++ new/python_docs_theme-2023.9/python_docs_theme/static/pydoctheme_dark.css   
2023-10-04 16:52:28.000000000 +0200
@@ -103,6 +103,7 @@
     background-color: rgba(255, 0, 0, 0.5);
 }
 
+aside.topic,
 div.topic,
 div.note,
 nav.contents {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_docs_theme-2023.7/python_docs_theme/static/search-focus.js 
new/python_docs_theme-2023.9/python_docs_theme/static/search-focus.js
--- old/python_docs_theme-2023.7/python_docs_theme/static/search-focus.js       
1970-01-01 01:00:00.000000000 +0100
+++ new/python_docs_theme-2023.9/python_docs_theme/static/search-focus.js       
2023-10-04 16:52:28.000000000 +0200
@@ -0,0 +1,21 @@
+function isInputFocused() {
+  const activeElement = document.activeElement;
+  return (
+    activeElement.tagName === 'INPUT' ||
+    activeElement.tagName === 'TEXTAREA' ||
+    activeElement.isContentEditable
+  );
+}
+
+document.addEventListener('keydown', function(event) {
+  if (event.key === '/') {
+    if (!isInputFocused()) {
+      // Prevent "/" from being entered in the search box
+      event.preventDefault();
+
+      // Set the focus on the search box
+      const searchBox = document.getElementById('search-box');
+      searchBox.focus();
+    }
+  }
+});

Reply via email to