- Updated documentation to use CSS and <div> instead of blockquotes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7003 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bc96925c9d
commit
13ad5fff85
35 changed files with 8013 additions and 4099 deletions
25
Doc/Manual/fixstyle.py
Normal file
25
Doc/Manual/fixstyle.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
# Adds the SWIG stylesheet to the generated documentation on a single page
|
||||
|
||||
import sys
|
||||
import string
|
||||
|
||||
filename = sys.argv[1]
|
||||
|
||||
data = open(filename).read()
|
||||
open(filename+".bak","w").write(data)
|
||||
|
||||
swigstyle = "\n" + open("style.css").read()
|
||||
|
||||
lines = data.splitlines()
|
||||
result = [ ]
|
||||
for s in lines:
|
||||
if s == "<STYLE TYPE=\"text/css\"><!--":
|
||||
result.append(s + swigstyle)
|
||||
else:
|
||||
result.append(s)
|
||||
|
||||
data = "\n".join(result)
|
||||
|
||||
open(filename,"w").write(data)
|
||||
Loading…
Add table
Add a link
Reference in a new issue