mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Move converter to its own dir.
This commit is contained in:
parent
d3c0de7d62
commit
a1a6016f0f
25
convert.py
25
convert.py
@ -1,25 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Convert the Python documentation to Sphinx
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
:copyright: 2007-2008 by Georg Brandl.
|
||||
:license: BSD.
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
from converter import convert_dir
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
rootdir = sys.argv[1]
|
||||
destdir = os.path.abspath(sys.argv[2])
|
||||
except IndexError:
|
||||
print "usage: convert.py docrootdir destdir"
|
||||
sys.exit()
|
||||
|
||||
assert os.path.isdir(os.path.join(rootdir, 'texinputs'))
|
||||
os.chdir(rootdir)
|
||||
convert_dir(destdir, *sys.argv[3:])
|
Loading…
Reference in New Issue
Block a user