summaryrefslogtreecommitdiff
blob: 199a88d28dbbf3ce56405d1a557c7d7a13fef9ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Subject: Fix relative path for doc generation

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

--- a/doc/conf.py
+++ b/doc/conf.py
@@ -244,7 +244,7 @@ def pg_context(app, pagename, templatename, ctx, event_arg):
         ctx['languages'] = lexer_name_url

     if pagename in ('styles', 'demo'):
-        with open('examples/example.py') as f:
+        with open('doc/examples/example.py') as f:
             html = f.read()
         lexer = pygments.lexers.get_lexer_for_filename('example.py')
         min_contrasts = test_contrasts.min_contrasts()
@@ -280,7 +280,7 @@ def pg_context(app, pagename, templatename, ctx, event_arg):
 def source_read(app, docname, source):
     # linkify issue / PR numbers in changelog
     if docname == 'docs/changelog':
-        with open('../CHANGES') as f:
+        with open('CHANGES') as f:
             changelog = f.read()

         idx = changelog.find('\nVersion 2.4.2\n')
--
2.35.1