File: 0002-Use-themes-from-usr-share-mkdocs-themes.patch

package info (click to toggle)
python-mkdocs 0.15.3-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,476 kB
  • ctags: 1,313
  • sloc: python: 3,840; makefile: 22; xml: 20
file content (23 lines) | stat: -rw-r--r-- 744 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 31150740d5b7b66013f63192aced354883cb5022 Mon Sep 17 00:00:00 2001
From: Brian May <bam@debian.org>
Date: Mon, 2 May 2016 15:53:46 +1000
Subject: Use themes from /usr/share/mkdocs/themes

See https://lists.debian.org/debian-python/2016/04/msg00042.html
---
 mkdocs/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mkdocs/__init__.py b/mkdocs/__init__.py
index 170bf76..6fe2e34 100644
--- a/mkdocs/__init__.py
+++ b/mkdocs/__init__.py
@@ -5,6 +5,8 @@ from __future__ import unicode_literals
 
 import sys
 
+sys.path.insert(1, "/usr/share/mkdocs/themes")
+
 if sys.version_info < (2, 7):
     sys.stderr.write(("WARNING: Support for Python 2.6 will be dropped in the "
                       "1.0.0 release of MkDocs\n\n"))