diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-08-19 15:14:40 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-08-21 13:54:55 +0200 |
commit | c8c5e2205b80f79590af55e91776085b5acd0490 (patch) | |
tree | 22f4a95e7aee03dccc740749e30eb0a8b736386e /scripts/tohtml.py | |
parent | aca66f040b72397203c3eb3d8a9ff893d4c1424c (diff) | |
download | mupdf-c8c5e2205b80f79590af55e91776085b5acd0490.tar.xz |
Update source code browser html generation scripts for new layout.
Diffstat (limited to 'scripts/tohtml.py')
-rw-r--r-- | scripts/tohtml.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/tohtml.py b/scripts/tohtml.py index 6ad22ecd..3dd1c759 100644 --- a/scripts/tohtml.py +++ b/scripts/tohtml.py @@ -28,9 +28,9 @@ def load_tags(): if not is_public(ident): continue if type == 'function': - tags[ident] = '<a class="function" href="%s#%s">%s</a>' % (os.path.basename(file), line, ident) + tags[ident] = '<a class="function" href="%s#%s">%s</a>' % ("/docs/browse/" + file, line, ident) if type == 'typedef' or type == 'struct': - tags[ident] = '<a class="typedef" href="%s#%s">%s</a>' % (os.path.basename(file), line, ident) + tags[ident] = '<a class="typedef" href="%s#%s">%s</a>' % ("/docs/browse/" + file, line, ident) return tags tags = load_tags() @@ -48,7 +48,7 @@ for line in sys.stdin.readlines(): line = line.replace("/*", '<span class="comment">/*') line = line.replace("*/", '*/</span>') - line = re.sub('^#include "([a-z-]*\.h)"', '#include "<a href="\\1">\\1</a>"', line) + line = re.sub('^#include "([a-z-/]*\.h)"', '#include "<a href="/docs/browse/include/\\1">\\1</a>"', line) # find identifiers and hyperlink to their definitions words = re.split("(\W+)", line) |