mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
docs: fix outline for ports section
This commit is contained in:
parent
8e7087f4b8
commit
e0d431cbc9
@ -54,14 +54,11 @@ def process_readmes(intro_file, port_folder, ports_file, ports_folder):
|
|||||||
for readme_dir, readme_file in sorted(matches.items()):
|
for readme_dir, readme_file in sorted(matches.items()):
|
||||||
with open(readme_file, 'rb') as fin:
|
with open(readme_file, 'rb') as fin:
|
||||||
for line in fin:
|
for line in fin:
|
||||||
#increase level of indetation
|
#increase level of indentation
|
||||||
parts = re.match('#(.*)\n',line)
|
parts = re.match('#(.*)\n',line)
|
||||||
title_parts = re.match('(#\s+)(.*)\n',line)
|
title_parts = re.match('(#\s+)(.*)\n',line)
|
||||||
if parts:
|
if parts and title_parts:
|
||||||
if title_parts:
|
ports.write("# " + title_parts.group(2) + " {" + "#sec:" + readme_dir + "Port}\n" )
|
||||||
ports.write("## " + title_parts.group(2) + " {" + "#sec:" + readme_dir + "Port}\n" )
|
|
||||||
else:
|
|
||||||
ports.write("## " + line)
|
|
||||||
else:
|
else:
|
||||||
ports.write(line)
|
ports.write(line)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user