Built-in documentation text width in Lighthouse book (#5394)

* Adjust width

* Commit changes

* Trigger Build
This commit is contained in:
chonghe
2024-03-24 04:52:09 +08:00
committed by GitHub
parent 0a6e4a11d7
commit a0e64d0652
8 changed files with 17 additions and 7 deletions

View File

@@ -17,6 +17,9 @@ write_to_file() {
# We need to add the header and the backticks to create the code block.
printf "# %s\n\n\`\`\`\n%s\n\`\`\`" "$program" "$cmd" > "$file"
# Adjust the width of the help text and append to the end of file
sed -i -e '$a\'$'\n''<style> .content main {max-width:88%;} </style>' "$file"
}
CMD=./target/release/lighthouse