Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
book
提交
b7590547
B
book
项目概览
PaddlePaddle
/
book
通知
16
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
40
列表
看板
标记
里程碑
合并请求
37
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
B
book
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
40
Issue
40
列表
看板
标记
里程碑
合并请求
37
合并请求
37
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b7590547
编写于
2月 28, 2017
作者:
Y
Yi Wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove build.sh and template.html because both are combined into convert-markdown-into-html.sh
上级
4a99498e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
83 deletion
+0
-83
.tmpl/build.sh
.tmpl/build.sh
+0
-20
.tmpl/template.html
.tmpl/template.html
+0
-63
未找到文件。
.tmpl/build.sh
已删除
100755 → 0
浏览文件 @
4a99498e
#!/bin/bash
function
find_line
()
{
local
fn
=
$1
local
x
=
0
cat
$fn
|
while
read
line
;
do
local
x
=
$((
x+1
))
if
echo
$line
|
grep
'${MARKDOWN}'
-q
;
then
echo
$x
break
fi
done
}
MD_FILE
=
$1
TMPL_FILE
=
$2
TPL_LINE
=
`
find_line
$TMPL_FILE
`
cat
$TMPL_FILE
|
head
-n
$((
TPL_LINE-1
))
cat
$MD_FILE
cat
$TMPL_FILE
|
tail
-n
+
$((
TPL_LINE+1
))
.tmpl/template.html
已删除
100644 → 0
浏览文件 @
4a99498e
<html>
<head>
<script
type=
"text/x-mathjax-config"
>
MathJax
.
Hub
.
Config
({
extensions
:
[
"
tex2jax.js
"
,
"
TeX/AMSsymbols.js
"
,
"
TeX/AMSmath.js
"
],
jax
:
[
"
input/TeX
"
,
"
output/HTML-CSS
"
],
tex2jax
:
{
inlineMath
:
[
[
'
$
'
,
'
$
'
],
[
"
\\
(
"
,
"
\\
)
"
]
],
displayMath
:
[
[
'
$$
'
,
'
$$
'
],
[
"
\\
[
"
,
"
\\
]
"
]
],
processEscapes
:
true
},
"
HTML-CSS
"
:
{
availableFonts
:
[
"
TeX
"
]
}
});
</script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"
async
></script>
<script
type=
"text/javascript"
src=
"../.tmpl/marked.js"
>
</script>
<link
href=
"http://cdn.bootcss.com/highlight.js/9.9.0/styles/darcula.min.css"
rel=
"stylesheet"
>
<script
src=
"http://cdn.bootcss.com/highlight.js/9.9.0/highlight.min.js"
></script>
<link
href=
"http://cdn.bootcss.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"
rel=
"stylesheet"
>
<link
href=
"https://cdn.jsdelivr.net/perfect-scrollbar/0.6.14/css/perfect-scrollbar.min.css"
rel=
"stylesheet"
>
<link
href=
"../.tmpl/github-markdown.css"
rel=
'stylesheet'
>
</head>
<style
type=
"text/css"
>
.markdown-body
{
box-sizing
:
border-box
;
min-width
:
200px
;
max-width
:
980px
;
margin
:
0
auto
;
padding
:
45px
;
}
</style>
<body>
<div
id=
"context"
class=
"container markdown-body"
>
</div>
<!-- This block will be replaced by each markdown file content. Please do not change lines below.-->
<div
id=
"markdown"
style=
'display:none'
>
${MARKDOWN}
</div>
<!-- You can change the lines below now. -->
<script
type=
"text/javascript"
>
marked
.
setOptions
({
renderer
:
new
marked
.
Renderer
(),
gfm
:
true
,
breaks
:
false
,
smartypants
:
true
,
highlight
:
function
(
code
,
lang
)
{
code
=
code
.
replace
(
/&/g
,
"
&
"
)
code
=
code
.
replace
(
/>/g
,
"
>
"
)
code
=
code
.
replace
(
/</g
,
"
<
"
)
code
=
code
.
replace
(
/ /g
,
"
"
)
return
hljs
.
highlightAuto
(
code
,
[
lang
]).
value
;
}
});
document
.
getElementById
(
"
context
"
).
innerHTML
=
marked
(
document
.
getElementById
(
"
markdown
"
).
innerHTML
)
</script>
</body>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录