Skip to content

Commit bd7de95

Browse files
authored
Merge pull request #61 from numpy/gsod-newsite
crowdin setup and language dropdown
2 parents b3bfd17 + 54614a0 commit bd7de95

24 files changed

+552
-57
lines changed

.scripts/deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ ls "./public"
2121

2222
surge --project $PROJECT_BUILD --domain $DOMAIN;
2323

24+
echo ::set-output name=deployed-domain::"pr-${PR_NUMBER}-numpy.org-newsite.surge.sh"

config.yaml

Lines changed: 142 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ languageCode: en-us
33
title: NumPy
44
theme: hugo-fresh
55
disableKinds: ["taxonomyTerm"]
6+
DefaultContentLanguage: en
67

78
params:
89
navColor: blue
@@ -24,21 +25,7 @@ params:
2425
# Hero image (from static/images/___)
2526
image: logos/numpy.svg
2627
# Customizable navbar. For a dropdown, add a "sublinks" list.
27-
navbar:
28-
- title: Install
29-
url: /install
30-
- title: Documentation
31-
url: /doc
32-
- title: Array computing
33-
url: /arraycomputing
34-
- title: Learn
35-
url: /learn
36-
- title: Community
37-
url: /community
38-
- title: About Us
39-
url: /aboutus
40-
- title: Contribute
41-
url: /contribute
28+
4229
section2:
4330
title: In a Nutshell
4431
subtitle:
@@ -88,28 +75,143 @@ params:
8875
# TODO: not yet organized well (footer links need to differ from header
8976
# links)
9077
bulmalogo: false
91-
quicklinks:
92-
column1:
93-
title: "Pages"
94-
links:
95-
- text: About us
96-
link: /about
97-
- text: Community
98-
link: /community
99-
- text: Install
100-
link: /install
101-
- text: Learning
102-
link: /learning
103-
- text: Documentation
104-
link: /doc
105-
- text: Array computing
106-
link: /arraycomputing
107-
column2:
108-
title: "Docs"
109-
links:
110-
- text: Getting started
111-
link: /
112-
- text: User guide
113-
link: /
114-
- text: Reference guide
115-
link: /
78+
79+
languages:
80+
en:
81+
title: NumPy
82+
languageName: English
83+
weight: 1
84+
contentDir: content/en
85+
navbar:
86+
- title: Install
87+
url: /install
88+
- title: Documentation
89+
url: /doc
90+
- title: Array computing
91+
url: /arraycomputing
92+
- title: Learn
93+
url: /learn
94+
- title: Community
95+
url: /community
96+
- title: About Us
97+
url: /aboutus
98+
- title: Contribute
99+
url: /contribute
100+
footerLinks:
101+
quicklinks:
102+
column1:
103+
title: "Pages"
104+
links:
105+
- text: About us
106+
link: /about
107+
- text: Community
108+
link: /community
109+
- text: Install
110+
link: /install
111+
- text: Learning
112+
link: /learning
113+
- text: Documentation
114+
link: /doc
115+
- text: Array computing
116+
link: /arraycomputing
117+
column2:
118+
title: "Docs"
119+
links:
120+
- text: Getting started
121+
link: /
122+
- text: User guide
123+
link: /
124+
- text: Reference guide
125+
link: /
126+
nl:
127+
title: NumPy
128+
languageName: Dutch
129+
weight: 2
130+
contentDir: content/nl
131+
navbar:
132+
- title: Install
133+
url: /nl/install
134+
- title: Documentation
135+
url: /nl/doc
136+
- title: Array computing
137+
url: /nl/arraycomputing
138+
- title: Learn
139+
url: /nl/learn
140+
- title: Community
141+
url: /nl/community
142+
- title: About Us
143+
url: /nl/aboutus
144+
- title: Contribute
145+
url: /nl/contribute
146+
footerLinks:
147+
quicklinks:
148+
column1:
149+
title: "Pages"
150+
links:
151+
- text: About us
152+
link: /nl/about
153+
- text: Community
154+
link: /nl/community
155+
- text: Install
156+
link: /nl/install
157+
- text: Learning
158+
link: /nl/learning
159+
- text: Documentation
160+
link: /nl/doc
161+
- text: Array computing
162+
link: /nl/arraycomputing
163+
column2:
164+
title: "Docs"
165+
links:
166+
- text: Getting started
167+
link: /nl/
168+
- text: User guide
169+
link: /nl/
170+
- text: Reference guide
171+
link: /nl/
172+
hi:
173+
title: NumPy
174+
languageName: Hindi
175+
weight: 3
176+
contentDir: content/hi
177+
navbar:
178+
- title: Install
179+
url: /hi/install
180+
- title: Documentation
181+
url: /hi/doc
182+
- title: Array computing
183+
url: /hi/arraycomputing
184+
- title: Learn
185+
url: /hi/learn
186+
- title: Community
187+
url: /hi/community
188+
- title: About Us
189+
url: /hi/aboutus
190+
- title: Contribute
191+
url: /hi/contribute
192+
footerLinks:
193+
quicklinks:
194+
column1:
195+
title: "Pages"
196+
links:
197+
- text: About us
198+
link: /hi/about
199+
- text: Community
200+
link: /hi/community
201+
- text: Install
202+
link: /hi/install
203+
- text: Learning
204+
link: /hi/learning
205+
- text: Documentation
206+
link: /hi/doc
207+
- text: Array computing
208+
link: /hi/arraycomputing
209+
column2:
210+
title: "Docs"
211+
links:
212+
- text: Getting started
213+
link: /hi/
214+
- text: User guide
215+
link: /hi/
216+
- text: Reference guide
217+
link: /hi/

content/about.md renamed to content/en/about.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,15 @@ TODO / to decide: add similar widget gallery as Jupyter and the new Pandas websi
1818

1919
## Teams
2020

21-
The NumPy is growing, we have separate teams for:
22-
_TODO_
21+
The NumPy is growing, we have separate teams for: _TODO_
2322

2423
## Sponsors
2524

26-
NumPy receives direct funding from the following sources:
27-
_TODO: add logos for Sloan and Moore foundations, and Tidelift_
25+
NumPy receives direct funding from the following sources: _TODO: add logos for Sloan and Moore foundations, and Tidelift_
2826

2927
## Institutional Partners
3028

31-
Institutional Partners are organizations that support the project by employing people that contribute to NumPy as part of their job. Current Institutional Partners include:
32-
_TODO: add logos for Berkeley and Quansight_
29+
Institutional Partners are organizations that support the project by employing people that contribute to NumPy as part of their job. Current Institutional Partners include: _TODO: add logos for Berkeley and Quansight_
3330

3431
## Donate
3532

File renamed without changes.
File renamed without changes.

content/contribute.md renamed to content/en/contribute.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
#TO DO - include links and logos
1+
# TO DO - include links and logos
22

33
**CONTRIBUTE**
44

5-
Thanks so much for clicking on “Contribute” button! You are our kind of a Pythonista!
5+
Thanks so much for clicking on “Contribute” button! You are our kind of a Pythonista!
66

77
To thrive the NumPy project needs your expertise and enthusiasm. Not a coder? Not a problem! There are many ways to contribute to NumPy:
88

9-
| Write code | Review and comment on pull requests from other developers | Contribute educational materials (tutorials, presentations, etc.) |
10-
| :------------- | :------------- | :------------- |
11-
| **Investigate bugs and issues on GitHub** | **Improve documentation** | **Translate content into other languages** |
12-
| **Answer questions on Gitter, Stack Overflow, and Reddit** | **Participate in the discussion on the mailing list** | **Serve as a community coordinator**|
13-
| **Reference NumPy in your papers, articles and blogs** | **Maintain and enhance our website** | **Research and help to apply for grants** |
9+
| Write code | Review and comment on pull requests from other developers | Contribute educational materials (tutorials, presentations, etc.) |
10+
|:---------------------------------------------------------- |:--------------------------------------------------------- |:----------------------------------------------------------------- |
11+
| **Investigate bugs and issues on GitHub** | **Improve documentation** | **Translate content into other languages** |
12+
| **Answer questions on Gitter, Stack Overflow, and Reddit** | **Participate in the discussion on the mailing list** | **Serve as a community coordinator** |
13+
| **Reference NumPy in your papers, articles and blogs** | **Maintain and enhance our website** | **Research and help to apply for grants** |
1414

1515
Our community aspires to treat everyone equally, and to value all contributions. For information on best practices in the NumPy community, please review our Code of Conduct. Try to follow this code in spirit as much as in letter, to foster an open and welcoming environment that enriches the entire open source ecosystem.
1616

@@ -19,15 +19,14 @@ Our community aspires to treat everyone equally, and to value all contributions.
1919

2020
If you have found NumPy useful in your work, please consider making a donation. Any amount helps! All donations will be used strictly to fund the development of the NumPy open source software, documentation, and community.
2121

22-
NumPy is a Sponsored Project of NumFOCUS, a 501(c)(3) nonprofit charity in the United States. NumFOCUS provides NumPy with fiscal, legal, and administrative support to help ensure the health and sustainability of the project. Visit numfocus.org for more information.
23-
Donations to NumPy are managed by NumFOCUS. For donors in the United States, your gift is tax-deductible to the extent provided by law. As with any donation, you should consult with your tax adviser about your particular tax situation.
22+
NumPy is a Sponsored Project of NumFOCUS, a 501(c)(3) nonprofit charity in the United States. NumFOCUS provides NumPy with fiscal, legal, and administrative support to help ensure the health and sustainability of the project. Visit numfocus.org for more information. Donations to NumPy are managed by NumFOCUS. For donors in the United States, your gift is tax-deductible to the extent provided by law. As with any donation, you should consult with your tax adviser about your particular tax situation.
2423

2524
The NumPy Steering Council will make decisions on how to best use any funds received. Technical and infrastructure priorities are documented on the NumPy Roadmap.
2625

2726

2827
**INSTITUTIONAL PARTNERS**
2928

30-
Institutional Partners are organizations that support the project by employing NumPy contributors, with contributing to the project as part of their official duties.
29+
Institutional Partners are organizations that support the project by employing NumPy contributors, with contributing to the project as part of their official duties.
3130

3231
Current Institutional Partners include:
3332

@@ -38,7 +37,7 @@ Quansight
3837

3938
**SPONSORS**
4039

41-
NumPy receives direct funding from the following sources:
40+
NumPy receives direct funding from the following sources:
4241

4342
Gordon and Betty Moore Foundation
4443

File renamed without changes.
File renamed without changes.

content/hi/about.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: About Us
3+
sidebar: false
4+
---
5+
6+
_Some information about the NumPy project and community_
7+
8+
NumPy is an open source project aiming to enable numerical computing with Python. It was created in 2005, building on early work of the Numerical and Numarray libraries. NumPy will always be 100% open-source software, free for all to use and released under the liberal terms of the [modified BSD license](https://github.com/numpy/numpy/blob/master/LICENSE.txt).
9+
10+
NumPy is developed in the open on GitHub, through the consensus of the NumPy and wider scientific Python community. For more information on our governance approach, please see our [Governance Document](https://www.numpy.org/devdocs/dev/governance/index.html).
11+
12+
13+
# Steering Council
14+
15+
The role of the NumPy Steering Council is to ensure, through working with and serving the broader NumPy community, the long-term well-being of the project, both technically and as a community. The NumPy Steering Council currently consists of the following members (in alphabetical order):
16+
17+
TODO / to decide: add similar widget gallery as Jupyter and the new Pandas website (under development)? Or a simple list of names?
18+
19+
## Teams
20+
21+
The NumPy is growing, we have separate teams for: _TODO_
22+
23+
## Sponsors
24+
25+
NumPy receives direct funding from the following sources: _TODO: add logos for Sloan and Moore foundations, and Tidelift_
26+
27+
## Institutional Partners
28+
29+
Institutional Partners are organizations that support the project by employing people that contribute to NumPy as part of their job. Current Institutional Partners include: _TODO: add logos for Berkeley and Quansight_
30+
31+
## Donate
32+
33+
If you have found NumPy to be useful in your work, research or company, please consider making a donation to the project commensurate with your resources. Any amount helps! All donations will be used strictly to fund the development of NumPy’s open source software, documentation and community.
34+
35+
NumPy is a Sponsored Project of NumFOCUS, a 501(c)(3) nonprofit charity in the United States. NumFOCUS provides NumPy with fiscal, legal, and administrative support to help ensure the health and sustainability of the project. Visit numfocus.org for more information.
36+
37+
Donations to NumPy are managed by [NumFOCUS](https://numfocus.org). For donors in the United States, your gift is tax-deductible to the extent provided by law. As with any donation, you should consult with your tax adviser about your particular tax situation.
38+
39+
NumPy's Steering Council will make the decisions on how to best use any funds received. Technical and infrastructure priorities are documented on the [NumPy Roadmap](https://www.numpy.org/neps/index.html#roadmap).
40+
41+
TODO: embed NumFOCUS logo and donation button here.

content/hi/arraycomputing.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Array Computing
3+
sidebar: false
4+
---
5+
6+
TODO

content/hi/community.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: Community
3+
sidebar: false
4+
---
5+
6+
NumPy offers a number of communication channels available to individuals interested in using and contributing to the project.
7+
8+
We welcome contributions and contributors of all kinds - whether they come as contributions to code, participation in the community, opening issues and pointing out bugs, or simply sharing your work with others.
9+
10+
### Join the NumPy community
11+
12+
If you’re interested in joining the NumPy community (yay!) we recommend checking out the [NumPy Contributing guide](https://www.numpy.org/devdocs/dev/index.html). This contains information about ways to get involved, the skills that are useful for each project area or activity, how to get started working on code, documentation or the website, and other ways that you can become a part of the NumPy community.
13+
14+
### Participate online
15+
16+
NumPy also has a number of online communication channels to help keep in touch.
17+
18+
As you interact with others in the NumPy community, remember that we have a strong commitment to being an open, inclusive, and positive community. Please read the [NumPy Code of Conduct](https://www.numpy.org/devdocs/dev/conduct/code_of_conduct.html) for guidance on how to interact with others in a way that makes the community thrive.
19+
20+
Below is a short list of communication channels and GitHub repositories where you can get involved. We always welcome participation in the NumPy community.
21+
22+
TODO:
23+
24+
- GitHub org and main repositories
25+
- The numpy-discussion mailing list
26+
- Stack Overflow for usage questions
27+
- Gitter `numpy/numpy`: a real-time chatroom where users and community members help each other out.
28+
- Contributing guide
29+
- Slack for a real-time chatroom to ask questions about contributing to NumPy.
30+
- If you believe you’ve found a security vulnerability in NumPy, please report it using the procedure documented at https://tidelift.com/docs/security

0 commit comments

Comments
 (0)