docs: set unsafe HTML parsing to false and fix raw HTML insertion

This means that markdown files can't contain <thing> any more.
This commit is contained in:
Nick Craig-Wood
2020-05-22 12:22:52 +01:00
parent 06427371eb
commit 74b8cbfb84
128 changed files with 945 additions and 645 deletions

View File

@ -7,9 +7,10 @@ import os
import io
import subprocess
marker = "<!--- autogenerated options"
marker = "{{< rem autogenerated options"
start = marker + " start"
stop = marker + " stop"
end = ">}}"
def find_backends():
"""Return a list of all backends"""
@ -38,11 +39,11 @@ def alter_doc(backend):
if not in_docs:
if start in line:
in_docs = True
start_full = start + " - DO NOT EDIT, instead edit fs.RegInfo in backend/%s/%s.go then run make backenddocs -->\n" % (backend, backend)
start_full = (start + "\" - DO NOT EDIT - instead edit fs.RegInfo in backend/%s/%s.go then run make backenddocs\" " + end + "\n") % (backend, backend)
out_file.write(start_full)
output_docs(backend, out_file)
output_backend_tool_docs(backend, out_file)
out_file.write(stop+" -->\n")
out_file.write(stop+" "+end+"\n")
altered = True
if not in_docs:
out_file.write(line)