npm: add .scheme class

This commit is contained in:
Ray Song 2013-02-01 09:45:38 +08:00
parent c7dc400c82
commit 12e38e9eb2
4 changed files with 4 additions and 140 deletions

View File

@ -1,135 +0,0 @@
/*
Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
*/
pre code {
display: block; padding: 0.5em;
background: #F0F0F0;
}
pre code,
pre .subst,
pre .tag .title,
pre .lisp .title,
pre .clojure .built_in,
pre .nginx .title {
color: black;
}
pre .string,
pre .title,
pre .constant,
pre .parent,
pre .tag .value,
pre .rules .value,
pre .rules .value .number,
pre .preprocessor,
pre .ruby .symbol,
pre .ruby .symbol .string,
pre .aggregate,
pre .template_tag,
pre .django .variable,
pre .smalltalk .class,
pre .addition,
pre .flow,
pre .stream,
pre .bash .variable,
pre .apache .tag,
pre .apache .cbracket,
pre .tex .command,
pre .tex .special,
pre .erlang_repl .function_or_atom,
pre .markdown .header {
color: #800;
}
pre .comment,
pre .annotation,
pre .template_comment,
pre .diff .header,
pre .chunk,
pre .markdown .blockquote {
color: #888;
}
pre .number,
pre .date,
pre .regexp,
pre .literal,
pre .smalltalk .symbol,
pre .smalltalk .char,
pre .go .constant,
pre .change,
pre .markdown .bullet,
pre .markdown .link_url {
color: #080;
}
pre .label,
pre .javadoc,
pre .ruby .string,
pre .decorator,
pre .filter .argument,
pre .localvars,
pre .array,
pre .attr_selector,
pre .important,
pre .pseudo,
pre .pi,
pre .doctype,
pre .deletion,
pre .envvar,
pre .shebang,
pre .apache .sqbracket,
pre .nginx .built_in,
pre .tex .formula,
pre .erlang_repl .reserved,
pre .prompt,
pre .markdown .link_label,
pre .vhdl .attribute,
pre .clojure .attribute,
pre .coffeescript .property {
color: #88F
}
pre .keyword,
pre .id,
pre .phpdoc,
pre .title,
pre .built_in,
pre .aggregate,
pre .css .tag,
pre .javadoctag,
pre .phpdoc,
pre .yardoctag,
pre .smalltalk .class,
pre .winutils,
pre .bash .variable,
pre .apache .tag,
pre .go .typename,
pre .tex .command,
pre .markdown .strong,
pre .request,
pre .status {
font-weight: bold;
}
pre .markdown .emphasis {
font-style: italic;
}
pre .nginx .built_in {
font-weight: normal;
}
pre .coffeescript .javascript,
pre .javascript .xml,
pre .tex .formula,
pre .xml .javascript,
pre .xml .vbscript,
pre .xml .css,
pre .xml .cdata {
opacity: 0.5;
}

View File

@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>清华大学Node Packaged Modules镜像</title><meta name="keywords" content="tuna, mirror, npm, node.js"><link rel="stylesheet" href="css/style.css"></head><body><header id="masthead" class="container"><div id="logo-container"><img id="nodejs" src="img/nodejs.png"><img id="ribbon" src="img/ribbon.svg"><img id="npm" src="img/npm.png"></div><div id="logo"><h1>清华大学Node Packaged Modules镜像</h1></div></header><div class="container"><section><h2>把我们设置为默认 npm 源</h2><div class="row"><div class="span6"><h3>修改 ~/.npmrc</h3><p>添加<pre>registry = http://npm.tuna.tsinghua.edu.cn/registry</pre></p></div><div class="span6"><h3>使用 npm config</h3><p>在 shell 里输入:<pre>npm config set registry http://npm.tuna.tsinghua.edu.cn/registry</pre></p></div></div></section><section><h2>测试是否配置成功</h2><div class="row"><div class="scheme span6"><h3>把我们设置为了默认源</h3><p>在 shell 里输入<pre>npm install &lt;packagename&gt;</pre></p></div><div class="scheme span6"><h3>未把我们设置为默认源</h3><p>在 shell 里输入<pre>npm --registry http://npm.tuna.tsinghua.edu.cn/registry install &lt;packagename&gt;</pre></p></div></div></section><section><h2>强制使用 ipv4 或 ipv6</h2><div class="row"><div class="scheme span6"><h3>强制使用ipv4</h3><p>把上面提到的registry url修改成<pre>http://npm.4.tuna.tsinghua.edu.cn/registry</pre></p></div><div class="scheme span6"><h3>强制使用ipv6</h3><p>把上面提到的registry url修改成<pre>http://npm.6.tuna.tsinghua.edu.cn/registry</pre></p></div></div></section><div class="alert"><p><strong>注意</strong>,不支持上传包。</p></div></div><footer class="container"><p>服务由<a href="http://tuna.tsinghua.edu.cn/about">清华大学学生网管会</a>提供,欢迎使用我们提供的其他<a href="http://mirrors.tuna.tsinghua.edu.cn/">软件镜像。</a></p><p>如有问题和建议,请写信到<a href="mailto:thu-opensource-mirror-admin@googlegroups.com">thu-opensource-mirror-admin@googlegroups.com</a></p><p>© 2012, 2013 <a href="http://maskray.me">SONG Fangrui</a></p></footer></body></html>
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>清华大学Node Packaged Modules镜像</title><meta name="keywords" content="tuna, mirror, npm, node.js"><link rel="stylesheet" href="css/style.css"></head><body><header id="masthead" class="container"><div id="logo-container"><img id="nodejs" src="img/nodejs.png"><img id="ribbon" src="img/ribbon.svg"><img id="npm" src="img/npm.png"></div><div id="logo"><h1>清华大学Node Packaged Modules镜像</h1></div></header><div class="container"><section><h2>把我们设置为默认 npm 源</h2><div class="row"><div class="scheme span6"><h3>修改 ~/.npmrc</h3><p>添加<pre>registry = http://npm.tuna.tsinghua.edu.cn/registry</pre></p></div><div class="scheme span6"><h3>使用 npm config</h3><p>在 shell 里输入:<pre>npm config set registry http://npm.tuna.tsinghua.edu.cn/registry</pre></p></div></div></section><section><h2>测试是否配置成功</h2><div class="row"><div class="scheme span6"><h3>把我们设置为了默认源</h3><p>在 shell 里输入<pre>npm install &lt;packagename&gt;</pre></p></div><div class="scheme span6"><h3>未把我们设置为默认源</h3><p>在 shell 里输入<pre>npm --registry http://npm.tuna.tsinghua.edu.cn/registry install &lt;packagename&gt;</pre></p></div></div></section><section><h2>强制使用 ipv4 或 ipv6</h2><div class="row"><div class="scheme span6"><h3>强制使用ipv4</h3><p>把上面提到的registry url修改成<pre>http://npm.4.tuna.tsinghua.edu.cn/registry</pre></p></div><div class="scheme span6"><h3>强制使用ipv6</h3><p>把上面提到的registry url修改成<pre>http://npm.6.tuna.tsinghua.edu.cn/registry</pre></p></div></div></section><div class="alert"><p><strong>注意</strong>,不支持上传包。</p></div></div><footer class="container"><p>服务由<a href="http://tuna.tsinghua.edu.cn/about">清华大学学生网管会</a>提供,欢迎使用我们提供的其他<a href="http://mirrors.tuna.tsinghua.edu.cn/">软件镜像。</a></p><p>如有问题和建议,请写信到<a href="mailto:thu-opensource-mirror-admin@googlegroups.com">thu-opensource-mirror-admin@googlegroups.com</a></p><p>© 2012, 2013 <a href="http://maskray.me">Ray Song</a></p></footer></body></html>

View File

@ -20,13 +20,13 @@ html
section
h2 把我们设置为默认 npm 源
.row
.span6
.scheme.span6
h3 修改 ~/.npmrc
p
| 添加
pre
| registry = http://npm.tuna.tsinghua.edu.cn/registry
.span6
.scheme.span6
h3 使用 npm config
p
| 在 shell 里输入:
@ -80,4 +80,4 @@ html
| 。
p
= '© 2012, 2013 '
a(href='http://maskray.me') SONG Fangrui
a(href='http://maskray.me') Ray Song

File diff suppressed because one or more lines are too long