Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb23d4e

Browse files
committed
moved api_reference docs out of source to flatten the directory structure
svn path=/trunk/matplotlib/; revision=5223
1 parent e5840ee commit bb23d4e

7 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# If your extensions are in another directory, add it here. If the directory
1717
# is relative to the documentation root, use os.path.abspath to make it
1818
# absolute, like shown here.
19-
sys.path.append(os.path.abspath('../../sphinxext'))
19+
sys.path.append(os.path.abspath('../sphinxext'))
2020

2121
# General configuration
2222
# ---------------------
File renamed without changes.

doc/api_reference/make.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
def check_build():
99
build_dirs = ['build', 'build/doctrees', 'build/html', 'build/latex',
10-
'source/_static', 'source/_templates']
10+
'_static', '_templates']
1111
for d in build_dirs:
1212
try:
1313
os.mkdir(d)
@@ -19,12 +19,12 @@ def figs():
1919

2020
def html():
2121
check_build()
22-
os.system('sphinx-build -b html -d build/doctrees source build/html')
22+
os.system('sphinx-build -b html -d build/doctrees ./ build/html')
2323

2424
def latex():
2525
if sys.platform != 'win32':
2626
# LaTeX format.
27-
os.system('sphinx-build -b latex -d build/doctrees source build/latex')
27+
os.system('sphinx-build -b latex -d build/doctrees ./ build/latex')
2828

2929
# Produce pdf.
3030
os.chdir('build/latex')
@@ -65,4 +65,4 @@ def all():
6565
arg, funcd.keys()))
6666
func()
6767
else:
68-
all()
68+
all()

0 commit comments

Comments
 (0)