diff options
author | aserebriyskiy <aserebriyskiy@yandex-team.com> | 2025-03-28 20:01:17 +0300 |
---|---|---|
committer | aserebriyskiy <aserebriyskiy@yandex-team.com> | 2025-03-28 20:23:54 +0300 |
commit | ff483c4fe28bea538a31d03227a615768ec7ced6 (patch) | |
tree | 9b4c6c37b9185bd17652a1d4299c4743a8892f26 /build/scripts/docs_proto_wrapper.py | |
parent | b5994299bb31bcb172d9bda222135accef623bb1 (diff) | |
download | ydb-ff483c4fe28bea538a31d03227a615768ec7ced6.tar.gz |
feat protodocs: add template, use new template
Our own template with YFM support.
Also, for debugging, use it in Fleet Tracking System documentation
Testing: none required, just docs
commit_hash:94e983300b5c5d227f0dc3d3c0069c3d2a2bd5e0
Diffstat (limited to 'build/scripts/docs_proto_wrapper.py')
-rw-r--r-- | build/scripts/docs_proto_wrapper.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/scripts/docs_proto_wrapper.py b/build/scripts/docs_proto_wrapper.py index 71cb2124a2..75ae807612 100644 --- a/build/scripts/docs_proto_wrapper.py +++ b/build/scripts/docs_proto_wrapper.py @@ -7,6 +7,7 @@ import pathlib def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--docs-output', required=True) + parser.add_argument('--template', required=True) parser.add_argument('args', nargs='+') return parser.parse_args() @@ -19,7 +20,8 @@ def main(args): # --doc_opt=markdon,TARGET_FILE_NAME target_file = pathlib.Path(args.docs_output) - cmd.append(f'--doc_opt=markdown,{target_file.name}') + target_template = pathlib.Path(args.template) + cmd.append(f'--doc_opt={target_template},{target_file.name}') cmd.append(f'--doc_out={target_file.parent}') try: |