diff --git a/mkdocs.spec b/mkdocs.spec index b8af27c..3e67e13 100644 --- a/mkdocs.spec +++ b/mkdocs.spec @@ -1,6 +1,6 @@ Name: mkdocs Version: 0.16.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python tool to create HTML documentation from markdown sources License: BSD @@ -24,6 +24,8 @@ BuildRequires: fontawesome-fonts-web BuildRequires: js-highlight BuildRequires: mkdocs-bootstrap BuildRequires: mkdocs-bootswatch +BuildRequires: mkdocs-cinder +BuildRequires: mkdocs-material BuildRequires: js-jquery BuildRequires: js-jquery1 @@ -49,8 +51,6 @@ Suggests: mkdocs-basic-theme %package docs Summary: Documentantion for %{name} -# This is the anterior version available -BuildRequires: mkdocs %description MkDocs is a fast and simple way to create a website from source files written @@ -107,6 +107,9 @@ ln -sf %{_datadir}/javascript/jquery/latest/jquery.min.js \ ln -sf %{_datadir}/javascript/jquery/1/jquery.min.js \ %{buildroot}/%{python3_sitelib}/%{name}/themes/mkdocs/js/jquery-1.10.2.min.js +# Build docs with self and verify all works fine. +PATH=%{buildroot}%{_bindir}:$PATH +which mkdocs export LC_ALL=C.UTF-8 export LANG=C.UTF-8 @@ -114,7 +117,20 @@ touch mkdocs.yml mkdocs build %check -#%%{__python3} setup.py test +# Verify if docs build fine with this version available. +# This help to check if all symlinks work fine. +PATH=%{buildroot}%{_bindir}:$PATH +which mkdocs +test_themes="cinder material readthedocs amelia cerulean cosmo \ +cyborg flatly journal readable simplex slate spacelab united yeti \ +bootstrap" +mkdocs new testing +pushd testing +for theme in $test_themes +do +mkdocs build --theme $theme +done +popd %files %doc README.md @@ -129,6 +145,10 @@ mkdocs build %doc site/* %changelog +* Fri Oct 06 2017 williamjmorenor@gmail.com - 0.16.3-3 +- Build docs with self to check for broken symlinks + See: https://bugzilla.redhat.com/show_bug.cgi?id=1497654 + * Wed Jul 26 2017 Fedora Release Engineering - 0.16.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild