File: build-apidoc.patch

package info (click to toggle)
python-repoze.tm2 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 264 kB
  • sloc: python: 422; makefile: 64
file content (23 lines) | stat: -rw-r--r-- 672 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: Jan Dittberner <jandd@debian.org>
Date: Thu, 8 Oct 2015 13:01:06 -0700
Subject: add source path to sys.path to allow proper API documentation
 generation

Patch-Name: build-apidoc.patch
---
 docs/conf.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docs/conf.py b/docs/conf.py
index de65130..43b4c69 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -29,6 +29,8 @@ os.chdir(wd)
 for item in os.listdir(parent):
     if item.endswith('.egg'):
         sys.path.append(os.path.join(parent, item))
+# add base pase for API documentation generation
+sys.path.append(os.path.abspath(os.path.join(parent, '..')))
 
 # General configuration
 # ---------------------