File: build-apidoc.patch

package info (click to toggle)
python-repoze.tm2 2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 244 kB
  • sloc: python: 433; makefile: 64
file content (24 lines) | stat: -rw-r--r-- 743 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 58ae64bea779de54b7db94d52d0c0ba085279a0c Mon Sep 17 00:00:00 2001
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 64c0aa9..9ef19e6 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
 # ---------------------