Skip to content

spite-triangle/docsify-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

作用

doscify的插件,控制台样式显示。

效果

普通

simple

使用

index.html中的headbody内分别添加以下内容

    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/spite-triangle/docsify-terminal@latest/css/term.css"/>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
    <script src="https://cdn.jsdelivr.net/gh/spite-triangle/docsify-terminal@latest/script/term.min.js"></script>

说明

\`\`\`term
user@path$ command // annotation
\`\`\`
command output

user@pathcommand的分隔是靠"$ "进行区分,$之后还有一个空格,且在 command 中支持 \/ 转义

    var parts = lines[i].split('$ ');

详细配置

  • markdown语法规则:

    markdown

  • index.html配置

    index

About

docsify终端样式显示

Resources

Stars

Watchers

Forks

Packages

No packages published