Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
FluidDoc
提交
c27f4b59
F
FluidDoc
项目概览
PaddlePaddle
/
FluidDoc
通知
5
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
23
列表
看板
标记
里程碑
合并请求
111
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
FluidDoc
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
23
Issue
23
列表
看板
标记
里程碑
合并请求
111
合并请求
111
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
c27f4b59
编写于
2月 27, 2020
作者:
D
Daniel Yang
提交者:
GitHub
2月 27, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
this is a pull-request to revise the release notes, test=develop (#1853)
上级
b555cf49
变更
5
展开全部
显示空白变更内容
内联
并排
Showing
5 changed file
with
681 addition
and
533 deletion
+681
-533
.pre-commit-config.yaml
.pre-commit-config.yaml
+42
-0
.pre-commit-hooks/convert_markdown_into_html.py
.pre-commit-hooks/convert_markdown_into_html.py
+97
-0
.pre-commit-hooks/convert_markdown_into_ipynb.sh
.pre-commit-hooks/convert_markdown_into_ipynb.sh
+9
-0
doc/fluid/release_note_cn.md
doc/fluid/release_note_cn.md
+259
-259
doc/fluid/release_note_en.md
doc/fluid/release_note_en.md
+274
-274
未找到文件。
.pre-commit-config.yaml
0 → 100644
浏览文件 @
c27f4b59
-
repo
:
https://github.com/pre-commit/mirrors-yapf.git
sha
:
v0.16.0
hooks
:
-
id
:
yapf
files
:
\.py$
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
sha
:
a11d9314b22d8f8c7556443875b731ef05965464
hooks
:
-
id
:
check-merge-conflict
-
id
:
check-symlinks
-
id
:
detect-private-key
files
:
(?!.*paddle)^.*$
-
id
:
end-of-file-fixer
files
:
\.md$
-
id
:
trailing-whitespace
files
:
\.md$
-
repo
:
https://github.com/Lucas-C/pre-commit-hooks
sha
:
v1.0.1
hooks
:
-
id
:
forbid-crlf
files
:
\.md$
-
id
:
remove-crlf
files
:
\.md$
-
id
:
forbid-tabs
files
:
\.md$
-
id
:
remove-tabs
files
:
\.md$
-
repo
:
https://github.com/reyoung/pre-commit-hooks-jinja-compile.git
sha
:
4a369cc72a4a2b8d3813ab8cc17abb5f5b21ef6c
hooks
:
-
id
:
convert-jinja2-into-html
# The argument means repleace filename from pattern `.*/([^/]*)\.tmpl` to `\1`
args
:
[
'
--filename_pattern=.*/([^/]*)\.tmpl'
,
'
--filename_repl=\1'
]
-
repo
:
local
hooks
:
-
id
:
convert-markdown-into-html
name
:
convert-markdown-into-html
description
:
Convert README.md into index.html and README.cn.md into index.cn.html
entry
:
python .pre-commit-hooks/convert_markdown_into_html.py
language
:
system
files
:
.+README(\.cn)?\.md$
.pre-commit-hooks/convert_markdown_into_html.py
0 → 100644
浏览文件 @
c27f4b59
import
argparse
import
re
import
sys
HEAD
=
"""
<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="../.tools/theme/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="../.tools/theme/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-fluid 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'>
"""
TAIL
=
"""
</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>
"""
def
convert_markdown_into_html
(
argv
=
None
):
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'filenames'
,
nargs
=
'*'
,
help
=
'Filenames to fix'
)
args
=
parser
.
parse_args
(
argv
)
retv
=
0
for
filename
in
args
.
filenames
:
with
open
(
re
.
sub
(
r
"README"
,
"index"
,
re
.
sub
(
r
"\.md$"
,
".html"
,
filename
)),
"w"
,
encoding
=
"utf-8"
)
as
output
:
output
.
write
(
HEAD
)
with
open
(
filename
,
encoding
=
"utf-8"
)
as
input
:
for
line
in
input
:
output
.
write
(
line
)
output
.
write
(
TAIL
)
return
retv
if
__name__
==
'__main__'
:
sys
.
exit
(
convert_markdown_into_html
())
.pre-commit-hooks/convert_markdown_into_ipynb.sh
0 → 100644
浏览文件 @
c27f4b59
#!/bin/sh
for
file
in
$@
;
do
markdown-to-ipynb <
$file
>
${
file
%.*
}
".ipynb"
if
[
$?
-ne
0
]
;
then
echo
>
&2
"markdown-to-ipynb
$file
error"
exit
1
fi
done
doc/fluid/release_note_cn.md
浏览文件 @
c27f4b59
此差异已折叠。
点击以展开。
doc/fluid/release_note_en.md
浏览文件 @
c27f4b59
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录