Skip to content

Commit d05af1e

Browse files
committed
Update content and config for building
1 parent 1bd4c7d commit d05af1e

File tree

6 files changed

+439
-278
lines changed

6 files changed

+439
-278
lines changed

content/zh/_index.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: NumPy
3+
---
4+
5+
{{< grid columns="1 2 2 3" >}}
6+
7+
[[item]]
8+
type = 'card'
9+
title = '强大的高维数组'
10+
body = '''
11+
Fast and versatile, the NumPy vectorization, indexing, and broadcasting concepts are the de-facto standards of array computing today.
12+
'''
13+
14+
[[item]]
15+
type = 'card'
16+
title = '数字计算工具'
17+
body = '''
18+
NumPy offers comprehensive mathematical functions, random number generators, linear algebra routines, Fourier transforms, and more.
19+
'''
20+
21+
[[item]]
22+
type = 'card'
23+
title = 'Open source'
24+
body = '''
25+
Distributed under a liberal [BSD license](https://github.com/numpy/numpy/blob/main/LICENSE.txt), NumPy is developed and maintained [publicly on GitHub](https://github.com/numpy/numpy) by a vibrant, responsive, and diverse [community](/community).
26+
'''
27+
28+
[[item]]
29+
type = 'card'
30+
title = 'Interoperable'
31+
body = '''
32+
NumPy supports a wide range of hardware and computing platforms, and plays well with distributed, GPU, and sparse array libraries.
33+
'''
34+
35+
[[item]]
36+
type = 'card'
37+
title = 'Performant'
38+
body = '''
39+
The core of NumPy is well-optimized C code. Enjoy the flexibility of Python with the speed of compiled code.
40+
'''
41+
42+
[[item]]
43+
type = 'card'
44+
title = 'Easy to use'
45+
body = '''
46+
NumPy's high level syntax makes it accessible and productive for programmers from any background or experience level.
47+
'''
48+
49+
{{< /grid>}}

content/zh/config.yaml

Lines changed: 47 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -2,165 +2,115 @@ languageName: 英语 (Chinese)
22
params:
33
description: 为什么使用 NumPy?它有强大的高维数组、有数字计算工具、互可操作、高性能、开源。
44
navbarlogo:
5-
image: logos/numpy.svg
5+
image: logo.svg
6+
text: NumPy
67
link: /zh/
78
hero:
8-
#Main hero title
9+
# Main hero title
910
title: NumPy
10-
#Hero subtitle (optional)
11+
# Hero subtitle (optional)
1112
subtitle: 使用 Python 进行科学计算的基本包
12-
#Button text
13+
# Button text
1314
buttontext: 入门
14-
#Where the main hero button links to
15+
# Where the main hero button links to
1516
buttonlink: "/zh/install"
16-
#Hero image (from static/images/___)
17-
image: logos/numpy.svg
18-
#Customizable navbar. For a dropdown, add a "sublinks" list.
19-
news:
20-
title: 2021 NumPy survey
21-
content: Your voice matters
22-
url: /zh/news
17+
# Hero image (from static/images/___)
18+
image: logo.svg
19+
2320
shell:
2421
title: 占位符
25-
promptlabel: interactive shell prompt
26-
button:
27-
-
28-
label: Enables the interactive tutorial shell
29-
text: Enable
30-
shellcontent:
22+
3123
intro:
32-
-
33-
title: Try NumPy
34-
text: Enable the interactive shell
35-
loading:
36-
-
37-
title: While we wait...
38-
text: Launching container on mybinder.org...
24+
- title: Try NumPy
25+
text: Use the interactive shell to try NumPy in the browser
26+
3927
docslink: Don't forget to check out the <a href="https://numpy.org/doc/stable" target="_blank">docs</a>.
28+
4029
casestudies:
4130
title: CASE STUDIES
4231
features:
43-
-
44-
title: 第一张黑洞图像
32+
- title: 第一张黑洞图像
4533
text: NumPy 是怎么配合 SciPy 和 Matplotlib 等库来让事件视界望远镜(Eht)生成第一张黑洞图像的
4634
img: /images/content_images/case_studies/blackhole.png
4735
alttext: 这是黑洞的第一张图像。它是黑色背景上衬着的一个橙色圆环。
4836
url: /zh/case-studies/blackhole-image
49-
-
50-
title: 引力波探测
37+
- title: 引力波探测
5138
text: 在1916年,阿尔伯特·爱因斯坦预测了引力波的存在。100年后,激光干涉引力波天文台(LIGO)的科学家利用 NumPy 证明了引力波的存在。
5239
img: /images/content_images/case_studies/gravitional.png
5340
alttext: 两个相互环绕的天体。它们改变了周围的引力。
5441
url: /zh/case-studies/gw-discov
55-
-
56-
title: 运动分析
42+
- title: 运动分析
5743
text: Cricket Analytics 正在通过统计模型和预测分析来改进队员的团队的表现,改变体育界。NumPy 让其中很多的分析成为了可能。
5844
img: /images/content_images/case_studies/sports.jpg
5945
alttext: 绿色的赛场上的板球。
6046
url: /zh/case-studies/cricket-analytics
61-
-
62-
title: 使用深度学习进行估计
47+
- title: 使用深度学习进行估计
6348
text: DeepLabCut 使用 NumPy 来加速进行涉及观察动物行为的科学研究,以便跨物种和时间尺度推动研究发展。
6449
img: /images/content_images/case_studies/deeplabcut.png
6550
alttext: Cheetah pose analysis
6651
url: /zh/case-studies/deeplabcut-dnn
67-
keyfeatures:
68-
features:
69-
-
70-
title: 强大的高维数组
71-
text: Fast and versatile, the NumPy vectorization, indexing, and broadcasting concepts are the de-facto standards of array computing today.
72-
-
73-
title: 数字计算工具
74-
text: NumPy offers comprehensive mathematical functions, random number generators, linear algebra routines, Fourier transforms, and more.
75-
-
76-
title: Interoperable
77-
text: NumPy supports a wide range of hardware and computing platforms, and plays well with distributed, GPU, and sparse array libraries.
78-
-
79-
title: Performant
80-
text: The core of NumPy is well-optimized C code. Enjoy the flexibility of Python with the speed of compiled code.
81-
-
82-
title: Easy to use
83-
text: NumPy's high level syntax makes it accessible and productive for programmers from any background or experience level.
84-
-
85-
title: Open source
86-
text: Distributed under a liberal [BSD license](https://github.com/numpy/numpy/blob/master/LICENSE.txt), NumPy is developed and maintained [publicly on GitHub](https://github.com/numpy/numpy) by a vibrant, responsive, and diverse [community](/community).
52+
8753
tabs:
8854
title: ECOSYSTEM
55+
8956
section5: false
57+
9058
navbar:
91-
-
92-
title: Install
59+
- title: Install
9360
url: /zh/install
94-
-
95-
title: Documentation
61+
- title: Documentation
9662
url: https://numpy.org/doc/stable
97-
-
98-
title: Learn
63+
- title: Learn
9964
url: /zh/learn
100-
-
101-
title: Community
65+
- title: Community
10266
url: /zh/community
103-
-
104-
title: About Us
67+
- title: About Us
10568
url: /zh/about
106-
-
107-
title: Contribute
69+
- title: Contribute
10870
url: /zh/contribute
71+
10972
footer:
110-
logo: numpy.svg
73+
logo: logo.svg
11174
socialmediatitle: ""
11275
socialmedia:
113-
-
114-
link: https://github.com/numpy/numpy
76+
- link: https://github.com/numpy/numpy
11577
icon: github
116-
-
117-
link: https://twitter.com/numpy_team
118-
icon: twitter
78+
- link: https://www.youtube.com/@NumPy_team
79+
icon: youtube
11980
quicklinks:
12081
column1:
12182
title: ""
12283
links:
123-
-
124-
text: Install
84+
- text: Install
12585
link: /zh/install
126-
-
127-
text: Documentation
86+
- text: Documentation
12887
link: https://numpy.org/doc/stable
129-
-
130-
text: Learn
88+
- text: Learn
13189
link: /zh/learn
132-
-
133-
text: Citing NumPy
90+
- text: Citing NumPy
13491
link: /zh/citing-numpy
135-
-
136-
text: Roadmap
92+
- text: Roadmap
13793
link: https://numpy.org/neps/roadmap.html
13894
column2:
13995
links:
140-
-
141-
text: About us
96+
- text: About us
14297
link: /zh/about
143-
-
144-
text: Community
98+
- text: Community
14599
link: /zh/community
146-
-
147-
text: Contribute
100+
- text: User surveys
101+
link: /zh/user-surveys
102+
- text: Contribute
148103
link: /zh/contribute
149-
-
150-
text: Code of conduct
104+
- text: Code of conduct
151105
link: /zh/code-of-conduct
152106
column3:
153107
links:
154-
-
155-
text: Get help
108+
- text: Get help
156109
link: /zh/gethelp
157-
-
158-
text: Terms of use
110+
- text: Terms of use
159111
link: /zh/terms
160-
-
161-
text: Privacy
112+
- text: Privacy
162113
link: /zh/privacy
163-
-
164-
text: Press kit
114+
- text: Press kit
165115
link: /press-kit
166116

0 commit comments

Comments
 (0)