Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
deno
提交
1d7c74e9
D
deno
项目概览
张重言
/
deno
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
deno
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1d7c74e9
编写于
2月 16, 2019
作者:
满
满远荣
提交者:
Ryan Dahl
2月 15, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Syntax highlighting on the website paegs (#1780)
上级
061a9353
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
50 addition
and
7 deletion
+50
-7
website/index.html
website/index.html
+16
-4
website/manual.html
website/manual.html
+11
-0
website/manual.md
website/manual.md
+3
-3
website/style.css
website/style.css
+9
-0
website/style_guide.html
website/style_guide.html
+11
-0
未找到文件。
website/index.html
浏览文件 @
1d7c74e9
...
...
@@ -3,6 +3,10 @@
<html>
<head>
<title>
Deno
</title>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/styles/default.min.css"
>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/styles/github-gist.min.css"
>
<script
src=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/highlight.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/languages/typescript.min.js"
></script>
<link
rel=
"stylesheet"
href=
"style.css"
/>
<meta
content=
"width=device-width, initial-scale=1.0"
name=
"viewport"
/>
</head>
...
...
@@ -98,9 +102,7 @@ href="https://github.com/denoland/deno_install/blob/master/install.ps1">https://
<p>
Or a more complex one:
</p>
<pre>
import { serve } from "
<a
href=
"https://github.com/denoland/deno_std/blob/master/http/server.ts"
>
https://deno.land/x/http/server.ts
</a>
";
<pre><code
class=
"typescript language-typescript"
>
import { serve } from "https://deno.land/x/http/server.ts";
const s = serve("0.0.0.0:8000");
async function main() {
...
...
@@ -109,7 +111,7 @@ async function main() {
}
}
main();
</pre>
main();
</code>
</pre>
<h2
id=
"dig-in"
>
Dig in...
<a
href=
"#dig-in"
>
#
</a></h2>
...
...
@@ -138,6 +140,16 @@ main(); </pre>
>
A curated list of awesome Deno things
</a
>
</p>
<script>
// Disable automatic language detection
hljs
.
configure
({
languages
:
[],
});
hljs
.
initHighlighting
();
</script>
</main>
</body>
</html>
website/manual.html
浏览文件 @
1d7c74e9
...
...
@@ -3,6 +3,10 @@
<html>
<head>
<title>
Deno Manual
</title>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/styles/default.min.css"
>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/styles/github-gist.min.css"
>
<script
src=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/highlight.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/languages/typescript.min.js"
></script>
<link
rel=
"stylesheet"
href=
"style.css"
/>
<meta
content=
"width=device-width, initial-scale=1.0"
name=
"viewport"
/>
</head>
...
...
@@ -32,6 +36,13 @@
let
el
=
document
.
getElementById
(
window
.
location
.
hash
.
slice
(
1
));
window
.
scrollTo
({
top
:
el
.
offsetTop
});
}
// Disable automatic language detection
hljs
.
configure
({
languages
:
[],
});
hljs
.
initHighlighting
();
}
main
();
...
...
website/manual.md
浏览文件 @
1d7c74e9
...
...
@@ -115,7 +115,7 @@ deno https://deno.land/welcome.js
### Build from source
```
```
bash
# Fetch deps.
git clone
--recurse-submodules
https://github.com/denoland/deno.git
cd
deno
...
...
@@ -170,7 +170,7 @@ Extra steps for Windows users:
#### Other useful commands
```
```
bash
# Call ninja manually.
./third_party/depot_tools/ninja
-C
target/debug
...
...
@@ -556,7 +556,7 @@ Rust. These common data structures are defined in
### Updating prebuilt binaries
```
```
bash
./third_party/depot_tools/upload_to_google_storage.py
-b
denoland
\
-e
~/.config/gcloud/legacy_credentials/ry@tinyclouds.org/.boto
`
which sccache
`
mv
`
which sccache
`
.sha1 prebuilt/linux64/
...
...
website/style.css
浏览文件 @
1d7c74e9
...
...
@@ -91,3 +91,12 @@ header h1 {
}
}
code
{
background
:
rgba
(
36
,
126
,
233
,
0.1
);
padding
:
2px
5px
;
color
:
#333
;
}
.hljs
{
background
:
transparent
;
}
\ No newline at end of file
website/style_guide.html
浏览文件 @
1d7c74e9
...
...
@@ -3,6 +3,10 @@
<html>
<head>
<title>
Deno Style Guide
</title>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/styles/default.min.css"
>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/styles/github-gist.min.css"
>
<script
src=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/highlight.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.14.2/build/languages/typescript.min.js"
></script>
<link
rel=
"stylesheet"
href=
"style.css"
/>
<meta
content=
"width=device-width, initial-scale=1.0"
name=
"viewport"
/>
</head>
...
...
@@ -32,6 +36,13 @@
let
el
=
document
.
getElementById
(
window
.
location
.
hash
.
slice
(
1
));
window
.
scrollTo
({
top
:
el
.
offsetTop
});
}
// Disable automatic language detection
hljs
.
configure
({
languages
:
[],
});
hljs
.
initHighlighting
();
}
main
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录