[Python-modules-commits] [python-markdown] 01/02: Build the documentation using mkdocs.

Dmitry Shachnev mitya57 at moszumanska.debian.org
Fri Jan 12 16:25:43 UTC 2018


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch debian/master
in repository python-markdown.

commit 0b44bdccd5b1adbceb80809930ed8286d9539bbf
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Fri Jan 12 19:11:58 2018 +0300

    Build the documentation using mkdocs.
    
    Skip building python-markdown-doc with nodoc build profile.
---
 debian/changelog                 |  2 ++
 debian/control                   | 11 ++++++++++-
 debian/python-markdown-doc.links | 10 ++++++++++
 debian/rules                     |  8 +++++++-
 4 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 1fb2fcc..a22e08f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ python-markdown (2.6.11-1) UNRELEASED; urgency=medium
   * Remove Fredrik Steen from Uploaders list (closes: #877098).
   * Add build-dependencies on setuptools.
   * Add mkdocs.yml from upstream repository (add_mkdocs_config.diff).
+  * Build the documentation using mkdocs.
+  * Skip building python-markdown-doc with nodoc build profile.
 
  -- Dmitry Shachnev <mitya57 at debian.org>  Thu, 28 Sep 2017 21:27:06 +0300
 
diff --git a/debian/control b/debian/control
index 7fe8343..5b69e2b 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.
 Uploaders: Dmitry Shachnev <mitya57 at debian.org>
 Build-Depends: debhelper (>= 9),
                dh-python,
+               mkdocs <!nodoc>,
                python-all (>= 2.6.6-14~),
                python-nose,
                python-pygments,
@@ -62,8 +63,16 @@ Description: text-to-HTML conversion library/tool (Python 3 version)
  3.x.
 
 Package: python-markdown-doc
+Build-Profiles: <!nodoc>
 Architecture: all
-Depends: ${misc:Depends}
+Depends: fonts-font-awesome,
+         libjs-highlight.js,
+         libjs-jquery,
+         libjs-modernizr,
+         libjs-mustache,
+         libjs-requirejs,
+         libjs-requirejs-text,
+         ${misc:Depends}
 Section: doc
 Description: text-to-HTML conversion library/tool (documentation)
  Markdown is a text-to-HTML conversion tool for web writers. Markdown
diff --git a/debian/python-markdown-doc.links b/debian/python-markdown-doc.links
new file mode 100644
index 0000000..67f79a1
--- /dev/null
+++ b/debian/python-markdown-doc.links
@@ -0,0 +1,10 @@
+usr/share/fonts/eot/font-awesome/fontawesome-webfont.eot      usr/share/doc/python-markdown-doc/docs/fonts/fontawesome-webfont.eot
+usr/share/fonts/svg/font-awesome/fontawesome-webfont.svg      usr/share/doc/python-markdown-doc/docs/fonts/fontawesome-webfont.svg
+usr/share/fonts/truetype/font-awesome/fontawesome-webfont.ttf usr/share/doc/python-markdown-doc/docs/fonts/fontawesome-webfont.ttf
+usr/share/fonts/woff/font-awesome/fontawesome-webfont.woff    usr/share/doc/python-markdown-doc/docs/fonts/fontawesome-webfont.woff
+usr/share/javascript/highlight.js/highlight.min.js            usr/share/doc/python-markdown-doc/docs/js/highlight.pack.js
+usr/share/javascript/jquery/jquery.min.js                     usr/share/doc/python-markdown-doc/docs/js/jquery-2.1.1.min.js
+usr/share/javascript/modernizr/modernizr.min.js               usr/share/doc/python-markdown-doc/docs/js/modernizr-2.8.3.min.js
+usr/share/javascript/mustache/mustache.min.js                 usr/share/doc/python-markdown-doc/docs/mkdocs/js/mustache.min.js
+usr/share/javascript/requirejs/require.min.js                 usr/share/doc/python-markdown-doc/docs/mkdocs/js/require.js
+usr/share/javascript/requirejs/text.min.js                    usr/share/doc/python-markdown-doc/docs/mkdocs/js/text.js
diff --git a/debian/rules b/debian/rules
index 428eed2..786e764 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,12 @@ export PYBUILD_TEST_ARGS={interpreter} $(CURDIR)/run-tests.py --verbose
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
 
+override_dh_auto_build:
+	dh_auto_build
+ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
+	mkdocs build -d build/docs -t readthedocs
+endif
+
 override_dh_auto_install:
 	dh_auto_install
 	rm -rf debian/python3-markdown/usr/bin/
@@ -15,6 +21,6 @@ override_dh_auto_test:
 	PYBUILD_SYSTEM=custom dh_auto_test
 
 override_dh_compress:
-	dh_compress -X.txt
+	dh_compress -X.txt -Xfavicon.ico -Xsearch_index.json -Xsitemap.xml
 
 .PHONY: override_dh_auto_install override_dh_auto_test override_dh_compress

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-markdown.git



More information about the Python-modules-commits mailing list