Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-mkdocs-material for 
openSUSE:Factory checked in at 2024-02-13 22:43:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mkdocs-material (Old)
 and      /work/SRC/openSUSE:Factory/.python-mkdocs-material.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mkdocs-material"

Tue Feb 13 22:43:28 2024 rev:42 rq:1146312 version:9.5.9

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-mkdocs-material/python-mkdocs-material.changes
    2024-02-07 18:52:40.855957788 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-mkdocs-material.new.1815/python-mkdocs-material.changes
  2024-02-13 22:43:53.507532973 +0100
@@ -1,0 +2,6 @@
+Sat Feb 10 07:08:02 UTC 2024 - Johannes Kastl 
<opensuse_buildserv...@ojkastl.de>
+
+- update to 9.5.9:
+  * Fixed navigation pruning with tabs and sections enabled
+
+-------------------------------------------------------------------

Old:
----
  mkdocs_material-9.5.8.tar.gz

New:
----
  mkdocs_material-9.5.9.tar.gz

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

Other differences:
------------------
++++++ python-mkdocs-material.spec ++++++
--- /var/tmp/diff_new_pack.wLl6dM/_old  2024-02-13 22:43:54.295561428 +0100
+++ /var/tmp/diff_new_pack.wLl6dM/_new  2024-02-13 22:43:54.295561428 +0100
@@ -19,7 +19,7 @@
 %{?sle15_python_module_pythons}
 %global skip_python312 1
 Name:           python-mkdocs-material
-Version:        9.5.8
+Version:        9.5.9
 Release:        0
 Summary:        Material theme for mkdocs
 License:        MIT

++++++ mkdocs_material-9.5.8.tar.gz -> mkdocs_material-9.5.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mkdocs_material-9.5.8/PKG-INFO 
new/mkdocs_material-9.5.9/PKG-INFO
--- old/mkdocs_material-9.5.8/PKG-INFO  2020-02-02 01:00:00.000000000 +0100
+++ new/mkdocs_material-9.5.9/PKG-INFO  2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: mkdocs-material
-Version: 9.5.8
+Version: 9.5.9
 Summary: Documentation that simply works
 Project-URL: Homepage, https://squidfunk.github.io/mkdocs-material/
 Project-URL: Bug Tracker, https://github.com/squidfunk/mkdocs-material/issues
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mkdocs_material-9.5.8/material/__init__.py 
new/mkdocs_material-9.5.9/material/__init__.py
--- old/mkdocs_material-9.5.8/material/__init__.py      2020-02-02 
01:00:00.000000000 +0100
+++ new/mkdocs_material-9.5.9/material/__init__.py      2020-02-02 
01:00:00.000000000 +0100
@@ -18,4 +18,4 @@
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 # IN THE SOFTWARE.
 
-__version__ = "9.5.8"
+__version__ = "9.5.9"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mkdocs_material-9.5.8/material/templates/base.html 
new/mkdocs_material-9.5.9/material/templates/base.html
--- old/mkdocs_material-9.5.8/material/templates/base.html      2020-02-02 
01:00:00.000000000 +0100
+++ new/mkdocs_material-9.5.9/material/templates/base.html      2020-02-02 
01:00:00.000000000 +0100
@@ -32,7 +32,7 @@
         <link rel="alternate" type="application/rss+xml" title="{{ 
lang.t('rss.updated') }}" href="{{ 'feed_rss_updated.xml' | url }}">
       {% endif %}
       <link rel="icon" href="{{ config.theme.favicon | url }}">
-      <meta name="generator" content="mkdocs-{{ mkdocs_version }}, 
mkdocs-material-9.5.8">
+      <meta name="generator" content="mkdocs-{{ mkdocs_version }}, 
mkdocs-material-9.5.9">
     {% endblock %}
     {% block htmltitle %}
       {% if page.meta and page.meta.title %}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/mkdocs_material-9.5.8/material/templates/partials/nav-item.html 
new/mkdocs_material-9.5.9/material/templates/partials/nav-item.html
--- old/mkdocs_material-9.5.8/material/templates/partials/nav-item.html 
2020-02-02 01:00:00.000000000 +0100
+++ new/mkdocs_material-9.5.9/material/templates/partials/nav-item.html 
2020-02-02 01:00:00.000000000 +0100
@@ -53,20 +53,33 @@
         {% endif %}
       {% endfor %}
     {% endif %}
-    {% set tabs = "navigation.tabs" in features %}
-    {% set sections = "navigation.sections" in features %}
-    {% if tabs and level == 1 or sections and tabs >= level - 1 %}
-      {% set class = class ~ " md-nav__item--section" %}
-      {% set is_section = true %}
-    {% elif not nav_item.active and "navigation.prune" in features %}
-      {% set class = class ~ " md-nav__item--pruned" %}
-      {% set is_pruned = true %}
+    {% if "navigation.tabs" in features %}
+      {% if level == 1 and nav_item.active %}
+        {% set class = class ~ " md-nav__item--section" %}
+        {% set is_section = true %}
+      {% endif %}
+      {% if "navigation.sections" in features %}
+        {% if level == 2 and nav_item.parent.active %}
+          {% set class = class ~ " md-nav__item--section" %}
+          {% set is_section = true %}
+        {% endif %}
+      {% endif %}
+    {% elif "navigation.sections" in features %}
+      {% if level == 1 %}
+        {% set class = class ~ " md-nav__item--section" %}
+        {% set is_section = true %}
+      {% endif %}
+    {% endif %}
+    {% if "navigation.prune" in features %}
+      {% if not is_section and not nav_item.active %}
+        {% set class = class ~ " md-nav__item--pruned" %}
+        {% set is_pruned = true %}
+      {% endif %}
     {% endif %}
     <li class="{{ class }} md-nav__item--nested">
       {% if not is_pruned %}
         {% set checked = "checked" if nav_item.active %}
-        {% set is_expanded = "navigation.expand" in features %}
-        {% if is_expanded and not checked %}
+        {% if "navigation.expand" in features and not checked %}
           {% set indeterminate = "md-toggle--indeterminate" %}
         {% endif %}
         <input class="md-nav__toggle md-toggle {{ indeterminate }}" 
type="checkbox" id="{{ path }}" {{ checked }}>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mkdocs_material-9.5.8/package.json 
new/mkdocs_material-9.5.9/package.json
--- old/mkdocs_material-9.5.8/package.json      2020-02-02 01:00:00.000000000 
+0100
+++ new/mkdocs_material-9.5.9/package.json      2020-02-02 01:00:00.000000000 
+0100
@@ -1,6 +1,6 @@
 {
   "name": "mkdocs-material",
-  "version": "9.5.8",
+  "version": "9.5.9",
   "description": "Documentation that simply works",
   "keywords": [
     "mkdocs",

Reply via email to