mirror of
https://github.com/jomjol/AI-on-the-edge-device-docs.git
synced 2025-12-06 11:36:53 +03:00
show srction on each parameter
This commit is contained in:
@@ -20,6 +20,9 @@ def appendParameterFile(section, file, parameterName):
|
||||
parameterDoc = parameterFileHandle.read()
|
||||
parameterDoc = parameterDoc.replace("# ", "### ") # Move all headings 2 level down
|
||||
|
||||
sectionText = "Section: " + "[" + section + "](#section-" + section.lower() +")"
|
||||
parameterDoc = parameterDoc.replace("Default Value:", sectionText + "\n\n" + "Default Value:") # Add section to each parameter
|
||||
|
||||
# Add parameter doc to overview page
|
||||
with open(docsMainFolder + "/" + parameterOverviewFile, 'a') as overviewFileHandle:
|
||||
overviewFileHandle.write("<a id=%s-%s></a>\n" % (section, parameterName)) # Create a html anchor so we can link to it with "section-parameter"
|
||||
|
||||
Reference in New Issue
Block a user