Update launcher.md to wrap code blocks

This commit is contained in:
Mishig 2023-09-28 16:47:32 +02:00 committed by Mishig Davaadorj
parent a7808ff853
commit 270dd328d5
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# Text-generation-launcher arguments # Text-generation-launcher arguments
<!-- WRAP CODE BLOCKS -->
``` ```
Text Generation Launcher Text Generation Launcher

View File

@ -11,7 +11,8 @@ def main():
output = subprocess.check_output(["text-generation-launcher", "--help"]).decode( output = subprocess.check_output(["text-generation-launcher", "--help"]).decode(
"utf-8" "utf-8"
) )
final_doc = f"# Text-generation-launcher arguments\n\n```\n{output}\n```" wrap_code_blocks_flag = "<!-- WRAP CODE BLOCKS -->"
final_doc = f"# Text-generation-launcher arguments\n\n{wrap_code_blocks_flag}\n\n```\n{output}\n```"
filename = "docs/source/basic_tutorials/launcher.md" filename = "docs/source/basic_tutorials/launcher.md"
if args.check: if args.check: