docs: fix systemd code block formatting in README - #279
Open
dadalulu-ai wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复内容
修复 README 中「使用systemd(Linux系统服务)」一节的 Markdown 代码块闭合错误。
问题原因
原代码块中
sudo nano ...之后的反引号提前结束了bash代码块,导致[Unit]、[Service]、[Install]等 systemd 配置内容散落在代码块外,在 GitHub 页面上渲染错乱。修复方式
sudo nano ...单独放入bash代码块,并正确闭合ini代码块bash代码块效果
systemd 配置现在能完整、清晰地展示,方便用户直接参考复制。
Fixes #278