summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 12:33:43 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 12:33:43 +0000
commita7870f3d5adefa8030ab7d05a9bce36542935ae1 (patch)
tree9f8b355c05060988096a75d2823944624e5e4d96
parentf3fd2c8214ef9f6a7a182960481d28ce229757e3 (diff)
automatic import of python-mkdocs-versioningopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-mkdocs-versioning.spec257
-rw-r--r--sources1
3 files changed, 259 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..830e27c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mkdocs-versioning-0.4.0.tar.gz
diff --git a/python-mkdocs-versioning.spec b/python-mkdocs-versioning.spec
new file mode 100644
index 0000000..b76e676
--- /dev/null
+++ b/python-mkdocs-versioning.spec
@@ -0,0 +1,257 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mkdocs-versioning
+Version: 0.4.0
+Release: 1
+Summary: A tool that allows for versioning sites built with mkdocs
+License: MIT License
+URL: https://github.com/zayd62/mkdocs-versioning
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4e/cc/dcf46d17aac81b557fc66b8f62257079bb063917105e2504a04e1b000f32/mkdocs-versioning-0.4.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-PyYAML
+Requires: python3-mkdocs
+
+%description
+# mkdocs-versioning
+
+`mkdocs-versioning` is a plugin for [mkdocs](https://www.mkdocs.org/), a tool designed to create static websites usually for generating project documentation.
+
+`mkdocs-versioning` extends mkdocs by differentiating between different versions of documentation you may build. For example, a newer versions of some software may work differently from an older version and it is important that users of an older version of the software reads the appropriate version of the documentation in order to ensure that the user has the correct information and uses the software appropriately.
+
+## Setup
+
+Install the plugin using pip:
+
+```bash
+pip install mkdocs-versioning
+```
+
+Next, add the following lines to your `mkdocs.yml`:
+
+```yml
+plugins:
+ - search
+ - mkdocs-versioning:
+ version: 0.3.0
+```
+
+> If you have no `plugins` entry in your config file yet, you'll likely also want to add the `search` plugin. MkDocs enables it by default if there is no `plugins` entry set.
+
+## Usage
+
+Instructions on how to use the plugin is available at https://zayd62.github.io/mkdocs-versioning/
+
+## Contributing
+
+Please note that mkdocs-versioning is currently in **Beta** and there may be missing feature/documentation so if you could help out by either:
+
+1. finding and reporting bugs
+2. contributing by checking out the [issues](https://github.com/zayd62/mkdocs-versioning/issues)
+
+## Troubleshooting
+
+### Combined use of awesome-pages and mkdocs-versioning
+
+In case of using [awesome-pages](https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin/) the order of registration within the `plugins` is important. The following error may occur:
+
+```
+Traceback (most recent call last):
+ [...]
+ File "/path/to/mkversion/entry.py", line 47, on_config
+ for count, i in enumerate(nav):
+TypeError: 'NoneType' object is not iterable
+```
+
+You need to make sure, that the `awesome-pages` plugin is register **after** `mkdocs-versioning`:
+
+```yaml
+plugins:
+ - mkdocs-versioning:
+ version: "1.0"
+ - awesome-pages
+````
+
+
+
+
+
+%package -n python3-mkdocs-versioning
+Summary: A tool that allows for versioning sites built with mkdocs
+Provides: python-mkdocs-versioning
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-mkdocs-versioning
+# mkdocs-versioning
+
+`mkdocs-versioning` is a plugin for [mkdocs](https://www.mkdocs.org/), a tool designed to create static websites usually for generating project documentation.
+
+`mkdocs-versioning` extends mkdocs by differentiating between different versions of documentation you may build. For example, a newer versions of some software may work differently from an older version and it is important that users of an older version of the software reads the appropriate version of the documentation in order to ensure that the user has the correct information and uses the software appropriately.
+
+## Setup
+
+Install the plugin using pip:
+
+```bash
+pip install mkdocs-versioning
+```
+
+Next, add the following lines to your `mkdocs.yml`:
+
+```yml
+plugins:
+ - search
+ - mkdocs-versioning:
+ version: 0.3.0
+```
+
+> If you have no `plugins` entry in your config file yet, you'll likely also want to add the `search` plugin. MkDocs enables it by default if there is no `plugins` entry set.
+
+## Usage
+
+Instructions on how to use the plugin is available at https://zayd62.github.io/mkdocs-versioning/
+
+## Contributing
+
+Please note that mkdocs-versioning is currently in **Beta** and there may be missing feature/documentation so if you could help out by either:
+
+1. finding and reporting bugs
+2. contributing by checking out the [issues](https://github.com/zayd62/mkdocs-versioning/issues)
+
+## Troubleshooting
+
+### Combined use of awesome-pages and mkdocs-versioning
+
+In case of using [awesome-pages](https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin/) the order of registration within the `plugins` is important. The following error may occur:
+
+```
+Traceback (most recent call last):
+ [...]
+ File "/path/to/mkversion/entry.py", line 47, on_config
+ for count, i in enumerate(nav):
+TypeError: 'NoneType' object is not iterable
+```
+
+You need to make sure, that the `awesome-pages` plugin is register **after** `mkdocs-versioning`:
+
+```yaml
+plugins:
+ - mkdocs-versioning:
+ version: "1.0"
+ - awesome-pages
+````
+
+
+
+
+
+%package help
+Summary: Development documents and examples for mkdocs-versioning
+Provides: python3-mkdocs-versioning-doc
+%description help
+# mkdocs-versioning
+
+`mkdocs-versioning` is a plugin for [mkdocs](https://www.mkdocs.org/), a tool designed to create static websites usually for generating project documentation.
+
+`mkdocs-versioning` extends mkdocs by differentiating between different versions of documentation you may build. For example, a newer versions of some software may work differently from an older version and it is important that users of an older version of the software reads the appropriate version of the documentation in order to ensure that the user has the correct information and uses the software appropriately.
+
+## Setup
+
+Install the plugin using pip:
+
+```bash
+pip install mkdocs-versioning
+```
+
+Next, add the following lines to your `mkdocs.yml`:
+
+```yml
+plugins:
+ - search
+ - mkdocs-versioning:
+ version: 0.3.0
+```
+
+> If you have no `plugins` entry in your config file yet, you'll likely also want to add the `search` plugin. MkDocs enables it by default if there is no `plugins` entry set.
+
+## Usage
+
+Instructions on how to use the plugin is available at https://zayd62.github.io/mkdocs-versioning/
+
+## Contributing
+
+Please note that mkdocs-versioning is currently in **Beta** and there may be missing feature/documentation so if you could help out by either:
+
+1. finding and reporting bugs
+2. contributing by checking out the [issues](https://github.com/zayd62/mkdocs-versioning/issues)
+
+## Troubleshooting
+
+### Combined use of awesome-pages and mkdocs-versioning
+
+In case of using [awesome-pages](https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin/) the order of registration within the `plugins` is important. The following error may occur:
+
+```
+Traceback (most recent call last):
+ [...]
+ File "/path/to/mkversion/entry.py", line 47, on_config
+ for count, i in enumerate(nav):
+TypeError: 'NoneType' object is not iterable
+```
+
+You need to make sure, that the `awesome-pages` plugin is register **after** `mkdocs-versioning`:
+
+```yaml
+plugins:
+ - mkdocs-versioning:
+ version: "1.0"
+ - awesome-pages
+````
+
+
+
+
+
+%prep
+%autosetup -n mkdocs-versioning-0.4.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+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
+fi
+if [ -d usr/lib64 ]; then
+ 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
+fi
+if [ -d usr/sbin ]; then
+ 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
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-mkdocs-versioning -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..fe0a2b3
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2310be7812b6cdfcb4e676202a8aee2e mkdocs-versioning-0.4.0.tar.gz