summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-mkdocs-enumerate-headings-plugin.spec27
-rw-r--r--sources2
3 files changed, 20 insertions, 10 deletions
diff --git a/.gitignore b/.gitignore
index 6dc810a..0abba33 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/mkdocs-enumerate-headings-plugin-0.6.0.tar.gz
+/mkdocs-enumerate-headings-plugin-0.6.1.tar.gz
diff --git a/python-mkdocs-enumerate-headings-plugin.spec b/python-mkdocs-enumerate-headings-plugin.spec
index edaebc0..47c5c31 100644
--- a/python-mkdocs-enumerate-headings-plugin.spec
+++ b/python-mkdocs-enumerate-headings-plugin.spec
@@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-mkdocs-enumerate-headings-plugin
-Version: 0.6.0
+Version: 0.6.1
Release: 1
Summary: MkDocs Plugin to enumerate the headings (h1-h6) across site pages
License: MIT
URL: https://github.com/timvink/mkdocs-enumerate-headings-plugin.git
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bf/93/1868f6848d6bf5374891eabe688a3c9f38b6352d8d6c4716a65a2f9bdb1e/mkdocs-enumerate-headings-plugin-0.6.0.tar.gz
+Source0: https://mirrors.aliyun.com/pypi/web/packages/44/71/f13d4bf35d01fb2a7cc7234bdf43ee9d55ca97b19c8c33d4f8cbc114d78a/mkdocs-enumerate-headings-plugin-0.6.1.tar.gz
BuildArch: noarch
Requires: python3-mkdocs
@@ -90,6 +90,8 @@ plugins:
toc_depth: 0
strict: true
increment_across_pages: true
+ include:
+ - "*"
exclude:
- index.md
- another_page.md
@@ -100,6 +102,7 @@ plugins:
- **`toc_depth`** (default `0`): Up to which level the table of contents should be enumerated as well. Default is 0, which means the TOC is not enumerated at all. Max is 6 (showing all enumeration)
- **`strict`** (default `true`): Raise errors instead of warnings when first heading on a page is not a level one heading (single `#`) and your MkDocs theme has not inserted the page title as a heading 1 for you. Note that in `strict: false` mode the heading numbers might be incorrect between pages and before and after a level 1 heading.
- **`increment_across_pages`** (default `true`): Increment the chapter number for each new page (in the order they appear in the navigation). If disabled, each page will start from 1.
+- **`include`** (default *`["*"]`*): Specify a list of page source paths (one per line) that should have enumeration (included in processing by this plugin). This can be useful for example to include enumeration on only one directory. The source path of a page is relative to your `docs/` folder. You can also use [globs](https://docs.python.org/3/library/glob.html) instead of source paths. For example, to include `docs/subfolder/page.md` specify in your `mkdocs.yml` a line under `include:` with `- subfolder/page.md`
- **`exclude`** (default *not specified*): Specify a list of page source paths (one per line) that should not have enumeration (excluded from processing by this plugin). This can be useful for example to remove enumeration from the front page. The source path of a page is relative to your `docs/` folder. You can also use [globs](https://docs.python.org/3/library/glob.html) instead of source paths. For example, to exclude `docs/subfolder/page.md` specify in your `mkdocs.yml` a line under `exclude:` with `- subfolder/page.md`
- **`restart_increment_after`** (default *not specified*): Specify a list of page source paths (one per line) where enumeration should be restarted. This can be useful if you have multiple reports or tutorials in one mkdocs site. Paths behave as with `exclude` (can use globs).
@@ -195,6 +198,8 @@ plugins:
toc_depth: 0
strict: true
increment_across_pages: true
+ include:
+ - "*"
exclude:
- index.md
- another_page.md
@@ -205,6 +210,7 @@ plugins:
- **`toc_depth`** (default `0`): Up to which level the table of contents should be enumerated as well. Default is 0, which means the TOC is not enumerated at all. Max is 6 (showing all enumeration)
- **`strict`** (default `true`): Raise errors instead of warnings when first heading on a page is not a level one heading (single `#`) and your MkDocs theme has not inserted the page title as a heading 1 for you. Note that in `strict: false` mode the heading numbers might be incorrect between pages and before and after a level 1 heading.
- **`increment_across_pages`** (default `true`): Increment the chapter number for each new page (in the order they appear in the navigation). If disabled, each page will start from 1.
+- **`include`** (default *`["*"]`*): Specify a list of page source paths (one per line) that should have enumeration (included in processing by this plugin). This can be useful for example to include enumeration on only one directory. The source path of a page is relative to your `docs/` folder. You can also use [globs](https://docs.python.org/3/library/glob.html) instead of source paths. For example, to include `docs/subfolder/page.md` specify in your `mkdocs.yml` a line under `include:` with `- subfolder/page.md`
- **`exclude`** (default *not specified*): Specify a list of page source paths (one per line) that should not have enumeration (excluded from processing by this plugin). This can be useful for example to remove enumeration from the front page. The source path of a page is relative to your `docs/` folder. You can also use [globs](https://docs.python.org/3/library/glob.html) instead of source paths. For example, to exclude `docs/subfolder/page.md` specify in your `mkdocs.yml` a line under `exclude:` with `- subfolder/page.md`
- **`restart_increment_after`** (default *not specified*): Specify a list of page source paths (one per line) where enumeration should be restarted. This can be useful if you have multiple reports or tutorials in one mkdocs site. Paths behave as with `exclude` (can use globs).
@@ -297,6 +303,8 @@ plugins:
toc_depth: 0
strict: true
increment_across_pages: true
+ include:
+ - "*"
exclude:
- index.md
- another_page.md
@@ -307,6 +315,7 @@ plugins:
- **`toc_depth`** (default `0`): Up to which level the table of contents should be enumerated as well. Default is 0, which means the TOC is not enumerated at all. Max is 6 (showing all enumeration)
- **`strict`** (default `true`): Raise errors instead of warnings when first heading on a page is not a level one heading (single `#`) and your MkDocs theme has not inserted the page title as a heading 1 for you. Note that in `strict: false` mode the heading numbers might be incorrect between pages and before and after a level 1 heading.
- **`increment_across_pages`** (default `true`): Increment the chapter number for each new page (in the order they appear in the navigation). If disabled, each page will start from 1.
+- **`include`** (default *`["*"]`*): Specify a list of page source paths (one per line) that should have enumeration (included in processing by this plugin). This can be useful for example to include enumeration on only one directory. The source path of a page is relative to your `docs/` folder. You can also use [globs](https://docs.python.org/3/library/glob.html) instead of source paths. For example, to include `docs/subfolder/page.md` specify in your `mkdocs.yml` a line under `include:` with `- subfolder/page.md`
- **`exclude`** (default *not specified*): Specify a list of page source paths (one per line) that should not have enumeration (excluded from processing by this plugin). This can be useful for example to remove enumeration from the front page. The source path of a page is relative to your `docs/` folder. You can also use [globs](https://docs.python.org/3/library/glob.html) instead of source paths. For example, to exclude `docs/subfolder/page.md` specify in your `mkdocs.yml` a line under `exclude:` with `- subfolder/page.md`
- **`restart_increment_after`** (default *not specified*): Specify a list of page source paths (one per line) where enumeration should be restarted. This can be useful if you have multiple reports or tutorials in one mkdocs site. Paths behave as with `exclude` (can use globs).
@@ -318,7 +327,7 @@ Credits: This plugin was inspired by [ignorantshr/mkdocs-add-number-plugin](http
%prep
-%autosetup -n mkdocs-enumerate-headings-plugin-0.6.0
+%autosetup -n mkdocs-enumerate-headings-plugin-0.6.1
%build
%py3_build
@@ -332,20 +341,20 @@ if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
- find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
- find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
- find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
- find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
- find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
@@ -358,5 +367,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.0-1
+* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.1-1
- Package Spec generated
diff --git a/sources b/sources
index c1ed200..4394a5c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d1aadf64508dfa9d06dbde14d47bf378 mkdocs-enumerate-headings-plugin-0.6.0.tar.gz
+19c3fe783a23c0a4c68330d0b6cfb6ea mkdocs-enumerate-headings-plugin-0.6.1.tar.gz