%global _empty_manifest_terminate_build 0 Name: python-mkdocs-mdpo-plugin Version: 0.0.27 Release: 1 Summary: Mkdocs plugin for translations using PO files. License: BSD-3-Clause URL: https://github.com/mondeja/mkdocs-mdpo-plugin Source0: https://mirrors.aliyun.com/pypi/web/packages/85/d3/f03b3bd0e3a4c1b8163731c525c41b342ed6fc891adf5d843f3de61e53fc/mkdocs_mdpo_plugin-0.0.27.linux-x86_64.tar.gz BuildArch: noarch %description # mkdocs-mdpo-plugin [![PyPI version](https://img.shields.io/pypi/v/mkdocs-mdpo-plugin?label=version)](https://pypi.org/project/mkdocs-mdpo-plugin) [![Downloads](https://img.shields.io/pypi/dm/mkdocs-mdpo-plugin)](https://pypistats.org/packages/mkdocs-mdpo-plugin) [![Test](https://img.shields.io/github/workflow/status/mondeja/mkdocs-mdpo-plugin/CI?label=tests&logo=github)](https://github.com/mondeja/mkdocs-mdpo-plugin/actions?query=workflow%3ACI) [![Documentation](https://img.shields.io/github/workflow/status/mondeja/mkdocs-mdpo-plugin/Github%20Pages?label=docs&logo=github)](https://mkdocs-mdpo.ga) [![Cloudflare DNS](https://img.shields.io/github/workflow/status/mondeja/mkdocs-mdpo-plugin/website-check?label=dns&logo=cloudflare&logoColor=white)](https://github.com/mondeja/mkdocs-mdpo-plugin/actions/workflows/website-check.yml) Translations for Mkdocs using PO files, fully customizable. Compatible with [mkdocs-material](https://squidfunk.github.io/mkdocs-material), based on [mdpo][mdpo-docs]. ## Documentation: [en](https://mkdocs-mdpo.ga) - [es](https://mkdocs-mdpo.ga/es/) ## Install ``` pip install mkdocs-mdpo-plugin ``` ## Usage Enable the plugin in your `mkdocs.yml`: ```yaml plugins: - mdpo ``` ### Minimal configuration #### With [mkdocs-material](https://squidfunk.github.io/mkdocs-material) ```yaml theme: name: material language: en extra: alternate: - name: English lang: en - name: EspaΓ±ol link: es lang: es plugins: - mdpo ``` #### Standalone ```yaml plugins: - mdpo: languages: - en # first language is the original - es ``` Both previous configurations will create the same layout of files building the documentation. Given the next layout in a `docs/` directory: ``` πŸ“ docs └── πŸ“„ index.md ``` After the build, you will get: ``` πŸ“ docs β”œβ”€β”€ πŸ“ es β”‚Β Β  └── πŸ“„ index.md.po └── πŸ“„ index.md ``` Just translate the strings in `docs/es/index.md.po` into Spanish, build again with `mkdocs build` and the `site/` directory will look like: ``` πŸ“ site β”œβ”€β”€ πŸ“„ 404.html β”œβ”€β”€ πŸ“ assets β”‚Β Β  β”œβ”€β”€ πŸ“ images β”‚Β Β  β”œβ”€β”€ πŸ“ javascripts β”‚Β Β  └── πŸ“ stylesheets β”œβ”€β”€ πŸ“ es β”‚Β Β  └── πŸ“„ index.html β”œβ”€β”€ πŸ“„ index.html β”œβ”€β”€ πŸ“„ sitemap.xml └── πŸ“„ sitemap.xml.gz ``` Simple and easy. The extraction of messages process and the produced layout are fully customizable, you can even translate code blocks! [Check the full documentation here](https://mkdocs-mdpo.ga). [mdpo-docs]: https://mdpo.readthedocs.io %package -n python3-mkdocs-mdpo-plugin Summary: Mkdocs plugin for translations using PO files. Provides: python-mkdocs-mdpo-plugin BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-mkdocs-mdpo-plugin # mkdocs-mdpo-plugin [![PyPI version](https://img.shields.io/pypi/v/mkdocs-mdpo-plugin?label=version)](https://pypi.org/project/mkdocs-mdpo-plugin) [![Downloads](https://img.shields.io/pypi/dm/mkdocs-mdpo-plugin)](https://pypistats.org/packages/mkdocs-mdpo-plugin) [![Test](https://img.shields.io/github/workflow/status/mondeja/mkdocs-mdpo-plugin/CI?label=tests&logo=github)](https://github.com/mondeja/mkdocs-mdpo-plugin/actions?query=workflow%3ACI) [![Documentation](https://img.shields.io/github/workflow/status/mondeja/mkdocs-mdpo-plugin/Github%20Pages?label=docs&logo=github)](https://mkdocs-mdpo.ga) [![Cloudflare DNS](https://img.shields.io/github/workflow/status/mondeja/mkdocs-mdpo-plugin/website-check?label=dns&logo=cloudflare&logoColor=white)](https://github.com/mondeja/mkdocs-mdpo-plugin/actions/workflows/website-check.yml) Translations for Mkdocs using PO files, fully customizable. Compatible with [mkdocs-material](https://squidfunk.github.io/mkdocs-material), based on [mdpo][mdpo-docs]. ## Documentation: [en](https://mkdocs-mdpo.ga) - [es](https://mkdocs-mdpo.ga/es/) ## Install ``` pip install mkdocs-mdpo-plugin ``` ## Usage Enable the plugin in your `mkdocs.yml`: ```yaml plugins: - mdpo ``` ### Minimal configuration #### With [mkdocs-material](https://squidfunk.github.io/mkdocs-material) ```yaml theme: name: material language: en extra: alternate: - name: English lang: en - name: EspaΓ±ol link: es lang: es plugins: - mdpo ``` #### Standalone ```yaml plugins: - mdpo: languages: - en # first language is the original - es ``` Both previous configurations will create the same layout of files building the documentation. Given the next layout in a `docs/` directory: ``` πŸ“ docs └── πŸ“„ index.md ``` After the build, you will get: ``` πŸ“ docs β”œβ”€β”€ πŸ“ es β”‚Β Β  └── πŸ“„ index.md.po └── πŸ“„ index.md ``` Just translate the strings in `docs/es/index.md.po` into Spanish, build again with `mkdocs build` and the `site/` directory will look like: ``` πŸ“ site β”œβ”€β”€ πŸ“„ 404.html β”œβ”€β”€ πŸ“ assets β”‚Β Β  β”œβ”€β”€ πŸ“ images β”‚Β Β  β”œβ”€β”€ πŸ“ javascripts β”‚Β Β  └── πŸ“ stylesheets β”œβ”€β”€ πŸ“ es β”‚Β Β  └── πŸ“„ index.html β”œβ”€β”€ πŸ“„ index.html β”œβ”€β”€ πŸ“„ sitemap.xml └── πŸ“„ sitemap.xml.gz ``` Simple and easy. The extraction of messages process and the produced layout are fully customizable, you can even translate code blocks! [Check the full documentation here](https://mkdocs-mdpo.ga). [mdpo-docs]: https://mdpo.readthedocs.io %package help Summary: Development documents and examples for mkdocs-mdpo-plugin Provides: python3-mkdocs-mdpo-plugin-doc %description help # mkdocs-mdpo-plugin [![PyPI version](https://img.shields.io/pypi/v/mkdocs-mdpo-plugin?label=version)](https://pypi.org/project/mkdocs-mdpo-plugin) [![Downloads](https://img.shields.io/pypi/dm/mkdocs-mdpo-plugin)](https://pypistats.org/packages/mkdocs-mdpo-plugin) [![Test](https://img.shields.io/github/workflow/status/mondeja/mkdocs-mdpo-plugin/CI?label=tests&logo=github)](https://github.com/mondeja/mkdocs-mdpo-plugin/actions?query=workflow%3ACI) [![Documentation](https://img.shields.io/github/workflow/status/mondeja/mkdocs-mdpo-plugin/Github%20Pages?label=docs&logo=github)](https://mkdocs-mdpo.ga) [![Cloudflare DNS](https://img.shields.io/github/workflow/status/mondeja/mkdocs-mdpo-plugin/website-check?label=dns&logo=cloudflare&logoColor=white)](https://github.com/mondeja/mkdocs-mdpo-plugin/actions/workflows/website-check.yml) Translations for Mkdocs using PO files, fully customizable. Compatible with [mkdocs-material](https://squidfunk.github.io/mkdocs-material), based on [mdpo][mdpo-docs]. ## Documentation: [en](https://mkdocs-mdpo.ga) - [es](https://mkdocs-mdpo.ga/es/) ## Install ``` pip install mkdocs-mdpo-plugin ``` ## Usage Enable the plugin in your `mkdocs.yml`: ```yaml plugins: - mdpo ``` ### Minimal configuration #### With [mkdocs-material](https://squidfunk.github.io/mkdocs-material) ```yaml theme: name: material language: en extra: alternate: - name: English lang: en - name: EspaΓ±ol link: es lang: es plugins: - mdpo ``` #### Standalone ```yaml plugins: - mdpo: languages: - en # first language is the original - es ``` Both previous configurations will create the same layout of files building the documentation. Given the next layout in a `docs/` directory: ``` πŸ“ docs └── πŸ“„ index.md ``` After the build, you will get: ``` πŸ“ docs β”œβ”€β”€ πŸ“ es β”‚Β Β  └── πŸ“„ index.md.po └── πŸ“„ index.md ``` Just translate the strings in `docs/es/index.md.po` into Spanish, build again with `mkdocs build` and the `site/` directory will look like: ``` πŸ“ site β”œβ”€β”€ πŸ“„ 404.html β”œβ”€β”€ πŸ“ assets β”‚Β Β  β”œβ”€β”€ πŸ“ images β”‚Β Β  β”œβ”€β”€ πŸ“ javascripts β”‚Β Β  └── πŸ“ stylesheets β”œβ”€β”€ πŸ“ es β”‚Β Β  └── πŸ“„ index.html β”œβ”€β”€ πŸ“„ index.html β”œβ”€β”€ πŸ“„ sitemap.xml └── πŸ“„ sitemap.xml.gz ``` Simple and easy. The extraction of messages process and the produced layout are fully customizable, you can even translate code blocks! [Check the full documentation here](https://mkdocs-mdpo.ga). [mdpo-docs]: https://mdpo.readthedocs.io %prep %autosetup -n mkdocs_mdpo_plugin.linux-x86_64-0.0.27 %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-mdpo-plugin -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 0.0.27-1 - Package Spec generated