Skip to content

Commit

Permalink
Update launcher.md to wrap code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishig authored and mishig25 committed Sep 28, 2023
1 parent a7808ff commit 270dd32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/source/basic_tutorials/launcher.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Text-generation-launcher arguments

<!-- WRAP CODE BLOCKS -->

```
Text Generation Launcher
Expand Down
3 changes: 2 additions & 1 deletion update_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def main():
output = subprocess.check_output(["text-generation-launcher", "--help"]).decode(
"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"
if args.check:
Expand Down

0 comments on commit 270dd32

Please sign in to comment.