Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK|Documentation: Generate a .qch help file for the SDK
API documentation inside Qt Creator for all the Doomsday libraries.
- Loading branch information
Showing
4 changed files
with
1,268 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ shell | |
gui | ||
appfw | ||
sdk | ||
qch | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python | ||
# Assumes qhelpgenerator is on the path (part of Qt) | ||
import re, sys, os, string | ||
|
||
print 'Patching index.qhp...' | ||
input = file(sys.argv[1], 'rt').read() | ||
|
||
# Doxygen writes a spurious </section> tag for some reason. | ||
output = re.sub('</section>\s+<section title="Namespace Members"', '<!-- patched -->\n<section title="Namespace Members"', input) | ||
|
||
# Rewrite the source file. | ||
file(sys.argv[1], 'wt').write(output) | ||
|
||
os.system('qhelpgenerator ' + string.join(sys.argv[1:], ' ')) |
Oops, something went wrong.