Skip to content
Browse files

[svn r1398] integrate publish.py from svn/lxml/www as doc/mkhtml.py, …

…new make target: make html

--HG--
branch : trunk
rename : doc/publish.py => doc/mkhtml.py
  • Loading branch information...
1 parent 88211b5 commit 7f09a6318fa6dd0c07d2308ea97192f90a9e73de scoder committed Jun 4, 2006
Showing with 10 additions and 4 deletions.
  1. +1 −1 MANIFEST.in
  2. +4 −0 Makefile
  3. +4 −2 doc/{publish.py → mkhtml.py}
  4. +1 −1 version.txt
View
2 MANIFEST.in
@@ -5,5 +5,5 @@ include MANIFEST.in version.txt
include CHANGES.txt CREDITS.txt INSTALL.txt LICENSES.txt README.txt TODO.txt
recursive-include src *.pyx *.pxd *.pxi *.py etree.c etree.h
recursive-include src/lxml/tests *.rng *.xslt *.xml
-recursive-include doc *.txt *.html *.css *.xml *.mgp pubkey.asc
+recursive-include doc *.txt *.html *.css *.xml *.mgp pubkey.asc mkhtml.py
exclude doc/pyrex.txt
View
4 Makefile
@@ -27,6 +27,10 @@ ftest_build: build
ftest_inplace: inplace
$(PYTHON) test.py -f $(TESTFLAGS) $(TESTOPTS)
+html:
+ mkdir -p doc/html
+ $(PYTHON) doc/mkhtml.py doc/html . `cat version.txt`
+
# XXX What should the default be?
test: test_inplace
View
6 doc/publish.py → doc/mkhtml.py
@@ -3,14 +3,16 @@
def publish(dirname, lxml_path, release):
if not os.path.exists(dirname):
os.mkdir(dirname)
- stylesheet_url = 'style.css'
+
+ doc_dir = os.path.join(lxml_path, 'doc')
+ stylesheet_url = os.path.join(doc_dir, 'style.css')
shutil.copy(stylesheet_url, dirname)
for name in ['main.txt', 'intro.txt', 'api.txt', 'compatibility.txt',
'extensions.txt', 'namespace_extensions.txt', 'sax.txt',
'build.txt', 'FAQ.txt', 'performance.txt', 'resolvers.txt']:
- path = os.path.join(lxml_path, 'doc', name)
+ path = os.path.join(doc_dir, name)
outname = os.path.splitext(name)[0] + '.html'
outpath = os.path.join(dirname, outname)
View
2 version.txt
@@ -1 +1 @@
-1.0
+1.0.1

0 comments on commit 7f09a63

Please sign in to comment.
Something went wrong with that request. Please try again.