mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 20:50:14 +01:00
tools, gendoc: Put module TOC/index in module/ directory.
This commit is contained in:
@@ -336,7 +336,7 @@ class Doc:
|
||||
return '\n'.join(s)
|
||||
|
||||
def write(self, dir):
|
||||
with open(os.path.join(dir, 'index.html'), 'wt') as f:
|
||||
with open(os.path.join(dir, 'module', 'index.html'), 'wt') as f:
|
||||
f.write(markdown.markdown(self.dump()))
|
||||
for m in self.modules.values():
|
||||
mod_dir = os.path.join(dir, 'module', m.name)
|
||||
|
||||
Reference in New Issue
Block a user