2
0
mirror of https://github.com/meganz/MEGAcmd synced 2025-08-22 01:47:24 +00:00

Move command docs and script to contrib/docs

This commit is contained in:
Diego Ximenez 2024-06-27 20:32:31 +02:00
parent 66d5ad1a69
commit e577dfc7d6
No known key found for this signature in database
GPG Key ID: 8E94095CB5DBCBA0
66 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class CommandSummary:
def get_markdown_format(self):
args = f'`{self.args}`' if self.args else ''
return f'* [`{self.name}`](docs/commands/{self.name}.md){args} {self.description}'
return f'* [`{self.name}`](contrib/docs/commands/{self.name}.md){args} {self.description}'
class CommandDetail:
def __init__(self, name, summary, usage, description):
@ -152,7 +152,7 @@ def write_to_user_guide(summary):
def write_command_files(command_details):
for cd in command_details:
with open(f'docs/commands/{cd.name}.md', 'w') as f:
with open(f'contrib/docs/commands/{cd.name}.md', 'w') as f:
f.write(cd.get_markdown_format() + '\n')
if __name__=='__main__':