sphinx-doc 语法

code

#! /usr/bin/expect

set timeout 10

set host "49.235.149.104"
set username "root"
set password "123456"

# 执行具体操作的shell脚本的路径
spawn /Users/cg/Documents/blog-sphinx/source/tool/publish.sh
# 当输出信息中包含 password 时,输入密码
expect "*password*" {send "$password\r"}
#interact
expect eof
def my_function():
    "just a test"
    print 8/2

caution

注解

ssh root@49.235.149.104 ‘some code’ 中的单引号也可换成双引号,视引号内使用了双引号还是单引号而定。此处的引号一定不能缺少。

math

\[\begin{split}(a + b)^2 &= (a + b)(a + b) \\ &= a^2 + 2ab + b^2\end{split}\]

table

Frozen Delights!

Treat

Quantity

Description

Albatross

2.99

On a stick!

Crunchy Frog

1.49

If we took the bones out, it wouldn’t be crunchy, now would it?

Gannet Ripple

1.99

On a stick!

ssh root@49.235.149.104 ‘some code’

Header row, column 1 (header rows optional)

Header 2

Header 3

Header 4

body row 1, column 1

column 2

column 3

column 4

body row 2