Skip to content

Commit 1b3ae67

Browse files
committed
(翻译英文)略
1 parent 60a9d71 commit 1b3ae67

File tree

100 files changed

+1696
-1382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1696
-1382
lines changed

Contribution.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# 翻译贡献指南
2+
3+
想要参与翻译的小伙伴,请注意。
4+
5+
参与翻译的提前技能有:[GitHub](https://zh.wikipedia.org/wiki/Github)[Git](https://zh.wikipedia.org/zh-hans/Git)[Markdown](https://zh.wikipedia.org/wiki/Markdown)[命令行操作](https://zh.wikipedia.org/wiki/%E5%91%BD%E4%BB%A4%E8%A1%8C)[英语](https://zh.wikipedia.org/wiki/%E8%8B%B1%E8%AF%AD)[Google翻译](https://translate.google.cn/)也可)
6+
7+
## Git教程
8+
9+
这里推荐一个很不错的开源Git教程:[https://github.com/geeeeeeeeek/git-recipes](https://github.com/geeeeeeeeek/git-recipes)
10+
11+
## Markdown教程
12+
13+
这里推荐一个不错的Markdown教程:[https://www.appinn.com/markdown/](https://www.appinn.com/markdown/)
14+
15+
在线编辑器推荐使用这个:[https://pandao.github.io/editor.md/](https://pandao.github.io/editor.md/)
16+
17+
## Github 贡献指南
18+
19+
了解github最好的方式是直接看[github官方的中文教程](https://help.github.com/cn)
20+
21+
想要贡献翻译,务必请熟知github的贡献规则,可以参看[怎么在GitHub上为开源项目作贡献?](https://zhuanlan.zhihu.com/p/23457016)
22+
23+
关于与原作者仓库同步的问题,强烈推荐一篇由Pandas中文文档翻译小组团队成员 [@Y-sir](https://github.com/Y-sir) 编写的文章:[Github上Fork别人的仓库,怎么保持自己的仓库内容和原始仓库同步](http://www.ysir308.com/archives/827)
24+
25+
## 文档如何在本地跑起来?
26+
27+
Pandas 中文文档的最新版本使用的是 [VuePress](https://v1.vuepress.vuejs.org/zh/) 文档生成工具来驱动的。
28+
29+
由于 [VuePress](https://v1.vuepress.vuejs.org/zh/) 是基于 [Nodejs](https://zh.wikipedia.org/wiki/Node.js) 编写的工具,如果你想让文档在本地运行调试,你首先需要安装 [Nodejs](http://nodejs.cn/) 在你的电脑上,非Windows操作系统推荐使用 [nvm](https://github.com/nvm-sh/nvm/blob/master/README.md) 来安装 [Nodejs](http://nodejs.cn/) ,Windows操作系统的小伙伴可以直接下载最新版本的 Nodejs 的 [Windows 安装包](http://nodejs.cn/download/)
30+
31+
### 文档命令行说明
32+
33+
请先打开命令行或者终端工具,然后切换到文档所在的目录,然后运行以下功能命令。
34+
35+
#### 安装文档工具的依赖
36+
37+
这是拿到文档之后的第一步。
38+
39+
这个命令的作用是安装工具的依赖包,这是拿到文档之后**第一次**必须要运行的命令,且**只需要运行一次**,之后再翻译**无需**运行此命令。
40+
41+
``` bash
42+
$ npm install
43+
```
44+
45+
#### 运行本地环境
46+
47+
想要查看翻译的效果,可以运行下面这个命令。
48+
49+
``` bash
50+
$ npm run dev
51+
```
52+
53+
#### 生成静态html文件
54+
55+
``` bash
56+
$ npm run build
57+
```

docs/.vuepress/components/ahome-footer.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
</li>
99
</ul>
1010
</div>
11+
1112
<div class="left-box item">
1213
<h4>👥兄弟文档</h4>
1314
<ul>
@@ -19,6 +20,16 @@
1920
</li>
2021
</ul>
2122
</div>
23+
24+
<div class="left-box item">
25+
<h4>👬合作伙伴</h4>
26+
<ul>
27+
<li>
28+
<a href="https://bigquant.com/" target="_blank">BigQuant人工智能量化投资平台</a>
29+
</li>
30+
</ul>
31+
</div>
32+
2233
<div class="right-box item friends">
2334
<h4>👬友情链接</h4>
2435
<ul>
@@ -69,7 +80,7 @@
6980
visibility hidden
7081
7182
.item
72-
width 33.3%
83+
width 25%
7384
ul
7485
padding 0px
7586
list-style none

docs/.vuepress/components/ahome-nav.vue

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,28 @@
22
<div class="ahome-nav">
33
<div class="nav-bar">
44
<b class="name">我想要</b>
5-
<a class="btn-home-nav" :class="{'active': navId === 1}" @click="navId=1">加入群聊</a>
6-
<a class="btn-home-nav" :class="{'active': navId === 2}" @click="navId=2">贡献翻译</a>
7-
<a class="btn-home-nav" :class="{'active': navId === 3}" @click="navId=3">捐赠文档</a>
8-
<a class="btn-home-nav" :class="{'active': navId === 4}" @click="navId=4">赞助合作</a>
5+
<a class="btn-home-nav" :class="{'active': navId === 1}" @click="navId=1">关注公众号</a>
6+
<a class="btn-home-nav" :class="{'active': navId === 2}" @click="navId=2">加入群聊</a>
7+
<a class="btn-home-nav" :class="{'active': navId === 3}" @click="navId=3">贡献翻译</a>
8+
<a class="btn-home-nav donation" :class="{'active': navId === 4}" @click="navId=4">捐赠网站</a>
9+
<a class="btn-home-nav" :class="{'active': navId === 5}" @click="navId=5">其他事宜</a>
910
</div>
1011

11-
<!-- 加入群聊 -->
12+
<!-- 关注公众号 -->
1213
<div class="block" :class="{'show': navId === 1}">
1314
<div class>
14-
<p>欢迎加入我们的交流群,群内有BAT公司大牛、常春藤校友、中国顶尖高校的各类学霸,以及众多事业有成者!</p>
15+
<p>掌上中文数据科学社区,关注公众号获取各种Python的奇淫技巧、赚钱技巧,更有机会获得大厂内推。</p>
16+
</div>
17+
<div class="qr-item">
18+
<img src="/home/wx-gzh.png" alt />
19+
<span class="text">或搜索“<b>数量集</b>”</span>
20+
</div>
21+
</div>
22+
23+
<!-- 加入群聊 -->
24+
<div class="block" :class="{'show': navId === 2}">
25+
<div class>
26+
<p>欢迎加入 <b>NumPy 中文社区</b> 群聊,群内有BAT公司大牛、常春藤校友、中国顶尖高校的各类学霸,以及众多大佬!</p>
1527
</div>
1628
<div class="qr-item">
1729
<img src="/home/wx-qr.jpg" alt />
@@ -24,7 +36,7 @@
2436
</div>
2537

2638
<!-- 贡献翻译 -->
27-
<div class="block" :class="{'show': navId === 2}">
39+
<div class="block" :class="{'show': navId === 3}">
2840
<p>
2941
首先感谢
3042
<a href="https://github.com/teadocs/numpy-cn/graphs/contributors" target="_blank">这些小伙伴</a> 对数据科学汉化事业的做出的翻译贡献!🙏
@@ -39,13 +51,14 @@
3951
<p>如果想加入汉化小组可以先添加站长的个人微信。</p>
4052
</div>
4153

42-
<!-- 捐赠文档 -->
43-
<div class="block" :class="{'show': navId === 3}">
54+
<!-- 捐赠网站 -->
55+
<div class="block" :class="{'show': navId === 4}">
56+
<p>1、你的捐赠会帮助更多的国人看到优质的保持<b>免费</b>且<b>无广告</b>的内容!</p>
4457
<p>
45-
维护公益项目不易,你们的支持是我
58+
2、维护公益项目不易,你们的支持是我
4659
<b>坚持翻译</b>,不断优化
47-
<b>网站内容</b>和
48-
<b>阅读体验</b>的动力!
60+
<b>网站内容</b>
61+
<b>阅读体验</b> 的动力!
4962
</p>
5063
<p>捐赠数额不限,特大数额可以加入网站鸣谢列表或全站推荐。</p>
5164
<div class="qr-item">
@@ -62,9 +75,9 @@
6275
</div>
6376
</div>
6477

65-
<!-- 赞助合作 -->
66-
<div class="block" :class="{'show': navId === 4}">
67-
<p>如果您想要交换友情链接、广告赞助、转载内容、咨询网站主题、或者其他合作适宜,可以通过以下联系方式联系到站长。</p>
78+
<!-- 其他事宜 -->
79+
<div class="block" :class="{'show': navId === 5}">
80+
<p>如果您想要交换友情链接、广告赞助、转载内容、咨询网站主题、或者其他合作事宜,可以通过以下联系方式联系到站长。</p>
6881
<ul>
6982
<li>🍀微信个人号:iamnotahacker(备注:合作)</li>
7083
<li>🍁QQ号:17560235</li>
@@ -116,6 +129,10 @@ export default {
116129
background-color: $accentColor;
117130
color: #ffffff;
118131
}
132+
133+
&.donation {
134+
border: 2px solid $accentColor;
135+
}
119136
}
120137
}
121138

docs/.vuepress/components/ahome-wxpub.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export default {
3030
url: "https://mp.weixin.qq.com/s/QUUYEimknwt5v3RUxIf8kQ"
3131
},
3232
{
33-
poster: "https://www.pypandas.cn/static/images/recommend/03.jpeg",
34-
title: "程序员是如何通过开源项目月入 10 万金的?",
35-
url: "https://mp.weixin.qq.com/s/bgM6RkvEO95JE4SUDa4SrQ"
33+
poster: "https://www.pypandas.cn/static/images/recommend/05.jpeg",
34+
title: "几百个不同领域的数据集分享给你,别让巧妇难为无米之炊。",
35+
url: "https://mp.weixin.qq.com/s/lVKa2j2yXbjpjom4GD5Btw"
3636
},
3737
{
3838
poster: "https://www.pypandas.cn/static/images/recommend/04.jpeg",

docs/.vuepress/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = ctx => ({
1919
extraWatchFiles: [
2020
'.vuepress/nav/en.js',
2121
'.vuepress/nav/zh.js',
22-
'.vuepress/sidebar/articles_zh.js',
22+
'.vuepress/sidebar/article_zh.js',
2323
'.vuepress/sidebar/bedocs_en.js',
2424
'.vuepress/sidebar/bedocs_zh.js',
2525
'.vuepress/sidebar/dev_en.js',

docs/.vuepress/configs/head.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = [
5454
}],
5555
['meta', {
5656
name: 'theme-color',
57-
content: '#3eaf7c'
57+
content: '#489dc1'
5858
}],
5959
['meta', {
6060
name: 'apple-mobile-web-app-capable',

docs/.vuepress/configs/themeConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
'/f2py/': require('../sidebar/f2py_zh')(),
3030
'/dev/': require('../sidebar/dev_zh')(),
3131
'/bedocs/': require('../sidebar/bedocs_zh')(),
32-
'/articles/': require('../sidebar/articles_zh')()
32+
'/article/': require('../sidebar/article_zh')()
3333
}
3434
},
3535
'/en/': {

docs/.vuepress/nav/zh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = [
55
},
66
{
77
text: 'NumPy 文章',
8-
link: '/articles/'
8+
link: '/article/'
99
},
1010
{
1111
text: '用户指南',
57 KB
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module.exports = function () {
2+
return [
3+
{
4+
title: '基础篇',
5+
collapsable: true,
6+
sidebarDepth: 3,
7+
children: [
8+
['/article/basics/understanding_numpy', '理解 NumPy'],
9+
['/article/basics/an_introduction_to_scientific_python_numpy', 'NumPy 简单入门教程'],
10+
['/article/basics/python_numpy_tutorial', 'Python Numpy 教程'],
11+
['/article/basics/different_ways_create_numpy_arrays', '创建 NumPy 数组的不同方式'],
12+
['/article/basics/numpy_matrices_vectors', 'NumPy 中的矩阵和向量']
13+
]
14+
},
15+
{
16+
title: '进阶篇',
17+
collapsable: true,
18+
sidebarDepth: 3,
19+
children: [
20+
['/article/advanced/numpy_exercises_for_data_analysis', 'NumPy 数据分析练习'],
21+
['/article/advanced/neural_network_with_numpy', 'NumPy 神经网络'],
22+
['/article/advanced/numpy_array_programming', '使用 NumPy 进行数组编程'],
23+
['/article/advanced/numpy_kmeans', 'NumPy 实现k均值聚类算法'],
24+
['/article/advanced/dnc_rnn_lstm', 'NumPy 实现DNC、RNN和LSTM神经网络算法']
25+
]
26+
},
27+
{
28+
title: '其他篇',
29+
collapsable: true,
30+
sidebarDepth: 3,
31+
children: [
32+
['/article/other/py_basic_ops', 'OpenCV中的图像的基本操作'],
33+
['/article/other/minpy-the-numpy-interface-upon-mxnets-backend', 'MinPy:MXNet后端的NumPy接口']
34+
]
35+
}
36+
]
37+
}

0 commit comments

Comments
 (0)