tools, gendoc: Put module TOC/index in module/ directory.
This commit is contained in:
parent
ea439e59d9
commit
590b2abdfc
|
@ -336,7 +336,7 @@ class Doc:
|
||||||
return '\n'.join(s)
|
return '\n'.join(s)
|
||||||
|
|
||||||
def write(self, dir):
|
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()))
|
f.write(markdown.markdown(self.dump()))
|
||||||
for m in self.modules.values():
|
for m in self.modules.values():
|
||||||
mod_dir = os.path.join(dir, 'module', m.name)
|
mod_dir = os.path.join(dir, 'module', m.name)
|
||||||
|
|
Loading…
Reference in New Issue