Skip to content

Commit e23b361

Browse files
author
James William Pye
committed
Add module autodocs.
sphinx runs under Python 3 now!
1 parent 90c76b3 commit e23b361

3 files changed

Lines changed: 3 additions & 24 deletions

File tree

postgresql/documentation/sphinx/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
# serve to show the default value.
1313

1414
import sys, os
15-
sys.path.insert(0, '.')
1615
sys.dont_write_bytecode = True
1716

1817
# If your extensions are in another directory, add it here. If the directory
1918
# is relative to the documentation root, use os.path.abspath to make it
2019
# absolute, like shown here.
21-
sys.path.insert(0, os.path.abspath('../../'))
20+
sys.path.insert(0, os.path.abspath('../../..'))
2221

2322
# General configuration
2423
# ---------------------
@@ -37,7 +36,7 @@
3736
master_doc = 'index'
3837

3938
# General substitutions.
40-
import project
39+
from postgresql import project
4140
copyright = '2010, ' + project.author
4241

4342
# The default replacements for |version| and |release|, also used in various

postgresql/documentation/sphinx/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Reference
3232
:maxdepth: 2
3333

3434
bin
35+
modules
3536

3637
Sample Code
3738
-----------

postgresql/documentation/sphinx/modules.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)