1
0
Fork 0

Merge branch 'devel' of https://github.com/arangodb/arangodb into devel

This commit is contained in:
Jan Steemann 2015-02-19 16:10:29 +01:00
commit cb8da2b5cf
1 changed files with 9 additions and 5 deletions

View File

@ -27,10 +27,14 @@ def replaceCode(pathOfFile, newVersionNumber):
lines = lines.replace("<a href=\"../ModuleGraph/GraphConstructor.html\">","<a class=\"fa fa-exclamation-triangle\" style=\"color:rgba(240,210,0,1)\" href=\"../ModuleGraph/GraphConstructor.html\">")
lines = lines.replace("<a href=\"../ModuleGraph/VertexMethods.html\">","<a class=\"fa fa-exclamation-triangle\" style=\"color:rgba(240,210,0,1)\" href=\"../ModuleGraph/VertexMethods.html\">")
lines = lines.replace("<a href=\"../ModuleGraph/EdgeMethods.html\">","<a class=\"fa fa-exclamation-triangle\" style=\"color:rgba(240,210,0,1)\" href=\"../ModuleGraph/EdgeMethods.html\">")
lines = lines.replace("!CHAPTER","#")
lines = lines.replace("!SECTION","##")
lines = lines.replace("!SUBSECTION","###")
lines = lines.replace("!SUBSUBSECTION","####")
#lines = lines.replace("!CHAPTER","#")
lines = re.sub("!CHAPTER\s+" + "(.*)", r"<h1>\g<1></h1>", lines)
#lines = lines.replace("!SECTION","##")
lines = re.sub("!SECTION\s+" + "(.*)", r"<h2>\g<1></h2>", lines)
#lines = lines.replace("!SUBSECTION","###")
lines = re.sub("!SUBSECTION\s+" + "(.*)", r"<h3>\g<1></h3>", lines)
#lines = lines.replace("!SUBSUBSECTION","####")
lines = re.sub("!SUBSUBSECTION\s+" + "(.*)", r"<h4>\g<1></h4>", lines)
lines = lines.replace("VERSION_NUMBER", newVersionNumber)
f.write(lines)
f.close()
@ -44,4 +48,4 @@ if __name__ == '__main__':
for i in path:
dirpath = os.path.abspath(os.path.join(os.path.dirname( __file__ ), os.pardir,"ArangoDB/../../"+i))
print "Tagging deprecated files"
walk_on_files(dirpath, newVersionNumber)
walk_on_files(dirpath, newVersionNumber)