Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
b96fef84
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b96fef84
编写于
3月 10, 2017
作者:
G
Guillaume Gomez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
End of pulldown switch and remove completely hoedown
上级
c9415eb9
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
216 addition
and
490 deletion
+216
-490
.gitmodules
.gitmodules
+0
-4
src/librustdoc/Cargo.toml
src/librustdoc/Cargo.toml
+0
-1
src/librustdoc/build.rs
src/librustdoc/build.rs
+0
-29
src/librustdoc/html/markdown.rs
src/librustdoc/html/markdown.rs
+211
-450
src/librustdoc/html/render.rs
src/librustdoc/html/render.rs
+4
-4
src/librustdoc/markdown.rs
src/librustdoc/markdown.rs
+1
-1
src/rt/hoedown
src/rt/hoedown
+0
-1
未找到文件。
.gitmodules
浏览文件 @
b96fef84
...
...
@@ -5,10 +5,6 @@
[submodule "src/compiler-rt"]
path = src/compiler-rt
url = https://github.com/rust-lang/compiler-rt.git
[submodule "src/rt/hoedown"]
path = src/rt/hoedown
url = https://github.com/rust-lang/hoedown.git
branch = rust-2015-09-21-do-not-delete
[submodule "src/jemalloc"]
path = src/jemalloc
url = https://github.com/rust-lang/jemalloc.git
...
...
src/librustdoc/Cargo.toml
浏览文件 @
b96fef84
...
...
@@ -2,7 +2,6 @@
authors
=
[
"The Rust Project Developers"
]
name
=
"rustdoc"
version
=
"0.0.0"
build
=
"build.rs"
[lib]
name
=
"rustdoc"
...
...
src/librustdoc/build.rs
已删除
100644 → 0
浏览文件 @
c9415eb9
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern
crate
build_helper
;
extern
crate
gcc
;
fn
main
()
{
let
src_dir
=
std
::
path
::
Path
::
new
(
"../rt/hoedown/src"
);
build_helper
::
rerun_if_changed_anything_in_dir
(
src_dir
);
let
mut
cfg
=
gcc
::
Config
::
new
();
cfg
.file
(
"../rt/hoedown/src/autolink.c"
)
.file
(
"../rt/hoedown/src/buffer.c"
)
.file
(
"../rt/hoedown/src/document.c"
)
.file
(
"../rt/hoedown/src/escape.c"
)
.file
(
"../rt/hoedown/src/html.c"
)
.file
(
"../rt/hoedown/src/html_blocks.c"
)
.file
(
"../rt/hoedown/src/html_smartypants.c"
)
.file
(
"../rt/hoedown/src/stack.c"
)
.file
(
"../rt/hoedown/src/version.c"
)
.include
(
src_dir
)
.compile
(
"libhoedown.a"
);
}
src/librustdoc/html/markdown.rs
浏览文件 @
b96fef84
此差异已折叠。
点击以展开。
src/librustdoc/html/render.rs
浏览文件 @
b96fef84
...
...
@@ -1650,7 +1650,7 @@ fn document_short(w: &mut fmt::Formatter, item: &clean::Item, link: AssocItemLin
}
else
{
format!
(
"{}"
,
&
plain_summary_line
(
Some
(
s
)))
};
write!
(
w
,
"<div class='docblock'>{}</div>"
,
Markdown
(
&
markdown
))
?
;
write!
(
w
,
"<div class='docblock'>{}</div>"
,
Markdown
(
&
markdown
,
false
))
?
;
}
Ok
(())
}
...
...
@@ -1683,7 +1683,7 @@ fn get_doc_value(item: &clean::Item) -> Option<&str> {
fn
document_full
(
w
:
&
mut
fmt
::
Formatter
,
item
:
&
clean
::
Item
)
->
fmt
::
Result
{
if
let
Some
(
s
)
=
get_doc_value
(
item
)
{
write!
(
w
,
"<div class='docblock'>{}</div>"
,
Markdown
(
&
format!
(
"{}{}"
,
md_render_assoc_item
(
item
),
s
)))
?
;
Markdown
(
&
format!
(
"{}{}"
,
md_render_assoc_item
(
item
),
s
)
,
false
))
?
;
}
Ok
(())
}
...
...
@@ -1871,7 +1871,7 @@ fn cmp(i1: &clean::Item, i2: &clean::Item, idx1: usize, idx2: usize) -> Ordering
</tr>"
,
name
=
*
myitem
.name
.as_ref
()
.unwrap
(),
stab_docs
=
stab_docs
,
docs
=
shorter
(
Some
(
&
Markdown
(
doc_value
)
.to_string
())),
docs
=
shorter
(
Some
(
&
Markdown
(
doc_value
,
true
)
.to_string
())),
class
=
myitem
.type_
(),
stab
=
myitem
.stability_class
()
.unwrap_or
(
""
.to_string
()),
unsafety_flag
=
unsafety_flag
,
...
...
@@ -2901,7 +2901,7 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
write!
(
w
,
"</span>"
)
?
;
write!
(
w
,
"</h3>
\n
"
)
?
;
if
let
Some
(
ref
dox
)
=
i
.impl_item
.doc_value
()
{
write!
(
w
,
"<div class='docblock'>{}</div>"
,
Markdown
(
dox
))
?
;
write!
(
w
,
"<div class='docblock'>{}</div>"
,
Markdown
(
dox
,
false
))
?
;
}
}
...
...
src/librustdoc/markdown.rs
浏览文件 @
b96fef84
...
...
@@ -94,7 +94,7 @@ pub fn render(input: &str, mut output: PathBuf, matches: &getopts::Matches,
let
rendered
=
if
include_toc
{
format!
(
"{}"
,
MarkdownWithToc
(
text
))
}
else
{
format!
(
"{}"
,
Markdown
(
text
))
format!
(
"{}"
,
Markdown
(
text
,
false
))
};
let
err
=
write!
(
...
...
hoedown
@
da282f1b
比较
da282f1b
...
da282f1b
Subproject commit da282f1bb7277b4d30fa1599ee29ad8eb4dd2a92
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录