aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-08-23 16:46:16 -0400
committerWaylan Limberg <waylan@gmail.com>2011-08-23 16:46:16 -0400
commitb51f22daa98c8c484b48134fe5f1b19b7a6291c3 (patch)
tree43e9dcf9b80a4c496eb1adc1e16e72e098a8cc43
parenta4022d40d0437e777c54c91876045dee0932ee60 (diff)
downloadmarkdown-b51f22daa98c8c484b48134fe5f1b19b7a6291c3.tar.gz
markdown-b51f22daa98c8c484b48134fe5f1b19b7a6291c3.tar.bz2
markdown-b51f22daa98c8c484b48134fe5f1b19b7a6291c3.zip
Added support to build_docs command to copy non markdown files unmodified.
-rw-r--r--docs/_template.html10
-rw-r--r--docs/style.css2
-rwxr-xr-xsetup.py4
3 files changed, 10 insertions, 6 deletions
diff --git a/docs/_template.html b/docs/_template.html
index d313098..58fde35 100644
--- a/docs/_template.html
+++ b/docs/_template.html
@@ -1,11 +1,9 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
-"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!DOCTYPE html>
+<html>
<head>
+<meta charset=utf-8>
<title>%(title)s</title>
-<style type="text/css">
-.nav { float:right; margin:1em;}
-</style>
+<link rel=stylesheet href=style.css>
</head>
<body>
<div id="nav">
diff --git a/docs/style.css b/docs/style.css
new file mode 100644
index 0000000..33e2c70
--- /dev/null
+++ b/docs/style.css
@@ -0,0 +1,2 @@
+
+.nav { float:right; margin:1em;}
diff --git a/setup.py b/setup.py
index 80e9581..8a28341 100755
--- a/setup.py
+++ b/setup.py
@@ -120,6 +120,10 @@ class build_docs(Command):
doc = open(outfile, 'wb')
doc.write(out.encode('utf-8'))
doc.close()
+ else:
+ outfile = change_root(self.build_base, infile)
+ self.mkpath(os.path.split(outfile)[0])
+ self.copy_file(infile, outfile)
class md_build(build):