Skip to content

Commit 881718e

Browse files
committed
Merge branch 'master' of https://github.com/numpy/numpy.org into sfork-issu-164
2 parents 09e9de9 + cab6b31 commit 881718e

File tree

11 files changed

+83
-46
lines changed

11 files changed

+83
-46
lines changed

config.yaml

+23-24
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ params:
2525
# Button text
2626
buttontext: Get started
2727
# Where the main hero button links to
28-
buttonlink: "#"
28+
buttonlink: "/learn"
2929
# Hero image (from static/images/___)
3030
image: logos/numpy.svg
3131
# Customizable navbar. For a dropdown, add a "sublinks" list.
@@ -53,14 +53,17 @@ params:
5353
title: KEY FEATURES
5454
features:
5555
- title: Powerful N-dimensional arrays
56-
subtitle: Fast, versatile and easy to use
57-
text: Fast, versatile and easy to use, the NumPy vectorization, indexing and broadcasting concepts are the de-facto standards of array computing today.
56+
text: Fast and versatile, the NumPy vectorization, indexing and broadcasting concepts are the de-facto standards of array computing today.
5857
- title: Numerical computing tools
59-
text: Fundamental package for scientific computing, NumPy offers comprehensive mathematical functions, random number generators, linear algebra routines, Fourier transforms and more.
58+
text: NumPy offers comprehensive mathematical functions, random number generators, linear algebra routines, Fourier transforms and more.
6059
- title: Interoperable
61-
text: Works on your choice of computing platform, whether your code fits in memory and runs on a CPU or requires a GPU. NumPy supports a wide range of computing platforms and works well with all major distributed arrays and sparse arrays libraries.
60+
text: NumPy supports a wide range of hardware and computing platforms, and plays well with distributed, GPU and sparse array libraries.
61+
- title: Performant
62+
text: The core of NumPy is well-optimized C code. Enjoy the flexibility of Python with the speed of compiled code.
63+
- title: Easy to use
64+
text: NumPy's high level syntax makes it accessible to and productive for programmers from any background or experience level.
6265
- title: Open source
63-
text: Distributed under a liberal [BSD license](https://github.com/numpy/numpy/blob/master/LICENSE.txt), NumPy is developed and maintained publicly on GitHub by a vibrant, responsive and diverse community.
66+
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).
6467
tabs:
6568
title: ECOSYSTEM
6669
section5: false
@@ -75,7 +78,7 @@ languages:
7578
- title: Install
7679
url: /install
7780
- title: Documentation
78-
url: /doc
81+
url: https://numpy.org/doc/
7982
- title: Learn
8083
url: /learn
8184
- title: Array computing
@@ -101,33 +104,29 @@ languages:
101104
- text: Install
102105
link: /install
103106
- text: Documentation
104-
link: /docs
107+
link: https://numpy.org/doc/
105108
- text: Learn
106109
link: /learn
107110
- text: Roadmap
108111
link: https://numpy.org/neps/roadmap.html
109112
column2:
110-
title: ""
111113
links:
112114
- text: About us
113115
link: /about
114116
- text: Community
115117
link: /community
116-
- text: Code of conduct
117-
link: /code-of-conduct
118-
- text: Get help
119-
link: /gethelp
120118
- text: Contribute
121119
link: /contribute
120+
- text: Code of conduct
121+
link: /code-of-conduct
122122
column3:
123-
title: ""
124123
links:
124+
- text: Get help
125+
link: /gethelp
125126
- text: Terms of use
126127
link: /terms
127128
- text: Privacy
128129
link: /privacy
129-
- text: Trademarks
130-
link: /trademarks
131130
- text: Press kit
132131
link: /press-kit
133132
nl:
@@ -139,7 +138,7 @@ languages:
139138
- title: Install
140139
url: /nl/install
141140
- title: Documentation
142-
url: /nl/doc
141+
url: https://numpy.org/doc/
143142
- title: Array computing
144143
url: /nl/arraycomputing
145144
- title: Case Studies
@@ -167,7 +166,7 @@ languages:
167166
- text: Install
168167
link: /nl/install
169168
- text: Documentation
170-
link: /nl/docs
169+
link: https://numpy.org/doc/
171170
- text: Release notes
172171
link: /nl/release-notes
173172
- text: Roadmap
@@ -177,20 +176,20 @@ languages:
177176
links:
178177
- text: About us
179178
link: /nl/about
180-
- text: Code of conduct
181-
link: /nl/code-of-conduct
182-
- text: Get help
183-
link: /nl/gethelp
179+
- text: Community
180+
link: /community
184181
- text: Contribute
185182
link: /nl/contribute
183+
- text: Code of conduct
184+
link: /nl/code-of-conduct
186185
column3:
187186
title: ""
188187
links:
188+
- text: Get help
189+
link: /nl/gethelp
189190
- text: Terms of use
190191
link: /nl/terms
191192
- text: Privacy
192193
link: /nl/privacy
193-
- text: Trademarks
194-
link: /nl/trademarks
195194
- text: Press kit
196195
link: /nl/press-kit

content/en/about.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ Institutional Partners are organizations that support the project by employing p
6262

6363
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.
6464

65-
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.
65+
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](https://numfocus.org) for more information.
6666

6767
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.
6868

6969
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).
70-
{{< numfocus >}}
70+
{{< numfocus >}}

content/en/community.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Announcements about NumPy, such as for releases, developer meetings, sprints or
2222
conference talks are also made on this list.
2323

2424
On this list please use bottom posting, reply to the list (rather than to
25-
another sender), and don't reply to digests. A searchable archive of this lists
25+
another sender), and don't reply to digests. A searchable archive of this list
2626
is available [here](http://numpy-discussion.10968.n7.nabble.com/).
2727

2828
***
@@ -41,7 +41,7 @@ _Please note that GitHub is not the right place to report a security vulnerabili
4141

4242
A real-time chat room to ask questions about _contributing_ to NumPy.
4343
This is a private space, specifically meant for people who are hesitant to
44-
bring up their questions or ideas on a large public mailing list or on GitHub.
44+
bring up their questions or ideas on a large public mailing list or GitHub.
4545
Please see
4646
[here](https://numpy.org/devdocs/dev/index.html#contributing-to-numpy) for more
4747
details and how to get an invite.
@@ -51,7 +51,7 @@ details and how to get an invite.
5151

5252
If you would like to find a local meetup or study group to learn more about NumPy and the wider ecosystem of Python packages for data science and scientific computing, we recommend exploring the [PyData meetups](https://www.meetup.com/pro/pydata/) (150+ meetups, 100,000+ members).
5353

54-
NumPy also organizes in-person sprints for its team and interested contributors occasionally. These are typically planned several months in advance, and will be announced on the [mailing list](https://mail.python.org/mailman/listinfo/numpy-discussion) and on [Twitter](https://twitter.com/numpy_team).
54+
NumPy also organizes in-person sprints for its team and interested contributors occasionally. These are typically planned several months in advance and will be announced on the [mailing list](https://mail.python.org/mailman/listinfo/numpy-discussion) and [Twitter](https://twitter.com/numpy_team).
5555

5656

5757
## Conferences
@@ -65,7 +65,7 @@ The NumPy project doesn't organize its own conferences. The conferences that hav
6565
- [SciPy Japan](https://conference.scipy.org)
6666
- [PyData conferences](https://pydata.org/event-schedule/) (15-20 events a year spread over many countries)
6767

68-
Many of these conferences include tutorial days that cover NumPy and/or sprints where you can learn to contribute to NumPy or related open source projects.
68+
Many of these conferences include tutorial days that cover NumPy and/or sprints where you can learn how to contribute to NumPy or related open source projects.
6969

7070

7171
## Join the NumPy community

content/en/press-kit.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ sidebar: false
66
We would like to make it easy for you to include the NumPy brand identity in your next academic paper, course materials or presentation.
77

88
You will find a high resolution logo of NumPy [here](https://github.com/numpy/numpy/tree/master/branding/icons).
9-
Note that by using the numpy.org resources, you accept the [NumPy Code of Conduct](https://numpy.org/code-of-conduct).
9+
Note that by using the numpy.org resources, you accept the [NumPy Code of Conduct](/code-of-conduct).

layouts/partials/footer.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<div class="link-column">
1313
<div class="footer-column">
1414
<div class="footer-header">
15-
<h3>{{ .title }}</h3>
1615
</div>
1716
<ul class="link-list">
1817
{{- range .links }}
@@ -27,11 +26,11 @@ <h3>{{ .title }}</h3>
2726
</div>
2827
{{- end }}
2928
<div class="footer-actions">
30-
<p>Sign up for the latest NumPy news, resources, and more!</p>
29+
<p>Sign up for the latest NumPy news, resources, <br> and more</p>
3130
<!-- Begin Mailchimp -->
3231
<form action="https://numpy.us4.list-manage.com/subscribe/post?u=5ddd0d1d6e807900a8212481a&amp;id=287fa4253c" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate sign-up-container" target="_blank" novalidate>
3332
<i class="fal fa-envelope sign-up-image"></i>
34-
<input type="email" value="" name="EMAIL" class="required email sign-up-input" id="mce-EMAIL" aria-label="Input for email" onkeypress="if (event.which === 13 || event.keyCode === 13 || event.key === 'Enter') sendThankYou()" />
33+
<input type="email" value="" name="EMAIL" class="required email sign-up-input" id="mce-EMAIL" aria-label="Input for email, press enter to submit" onkeypress="if (event.which === 13 || event.keyCode === 13 || event.key === 'Enter') sendThankYou()" />
3534
<div class="submission-instructions">Press Enter</div>
3635
<button class="signup-button" onclick="sendThankYou()" aria-label="Submit">
3736
<i class="fal fa-paper-plane"></i>
@@ -50,7 +49,7 @@ <h3>{{ .title }}</h3>
5049
<nav class="level is-mobile">
5150
<div class="social-media-icons">
5251
{{- range $socialMedia }}
53-
<a class="level-item" href="{{ .link }}">
52+
<a class="level-item" href="{{ .link }}" aria-label="{{ .link }}">
5453
<span class="icon"><i class="fa fa-{{ .icon }}"></i></span>
5554
</a>
5655
{{- end }}

layouts/partials/hero-body.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</div>
1919
{{ end }}
2020
<div class="hero-cta">
21-
<button class="cta-button">{{ $buttonText }}</button>
21+
<a href="{{ $buttonLink }}"><button class="cta-button">{{ $buttonText }}</button></a>
2222
</div>
2323
</div>
2424
</div>
@@ -43,4 +43,4 @@
4343
</div>
4444
</div>
4545
</div>
46-
</div>
46+
</div>

layouts/partials/shell-content.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
</div>
1010

1111
<div class="shell-lesson shell-content" style="display: none;">
12-
Here we should include a lesson about numpy!
13-
</div>
12+
{{partial "shell-lesson.html" | print | markdownify}}
13+
</div>

layouts/partials/shell-lesson.html

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
The standard way to import NumPy:
3+
4+
```python
5+
>>> import numpy as np
6+
```
7+
8+
Create a 2-D array, set every second element in some rows, and find max per
9+
row:
10+
11+
```python
12+
>>> x = np.arange(15, dtype=np.int64).reshape(3, 5)
13+
>>> x[1:, ::2] = -99
14+
>>> x
15+
array([[ 0, 1, 2, 3, 4],
16+
[-99, 6, -99, 8, -99],
17+
[-99, 11, -99, 13, -99]])
18+
>>> x.max(axis=1)
19+
array([ 4, 8, 13])
20+
```
21+
22+
Generate some random numbers with an exponential distribution:
23+
```python
24+
>>> rng = np.random.default_rng()
25+
>>> samples = rng.exponential(size=2500)
26+
```

static/css/section2.css

+7-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ transform: translateX(4px);
7070
}
7171

7272
.section2-box-content {
73-
height: 250px;
73+
height: 175px;
7474
min-width: 275px;
75-
width: 300px;
75+
width: 325px;
7676
margin: 30px 30px 30px 0;
7777
border-radius: 3px;
7878
}
@@ -83,6 +83,10 @@ transform: translateX(4px);
8383
text-transform: uppercase;
8484
}
8585

86+
.section2-box-text > a {
87+
color: #0E73D8;
88+
}
89+
8690
.section2-box-text {
8791
margin: 30px 15px;
8892
font-size: 14px;
@@ -157,4 +161,4 @@ transform: translateX(4px);
157161

158162
.section2-underline:hover:before, .section2-underline:focus:before, .section2-underline:active:before {
159163
right: 0;
160-
}
164+
}

static/css/shell.css

+12-4
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,18 @@
8484

8585
.shell-lesson {
8686
display: none;
87-
align-items: center;
88-
justify-content: center;
89-
height: 30%;
90-
width: 100%;
87+
text-align: left;
88+
padding: 15px;
89+
height: 100%;
90+
width: 60%;
91+
}
92+
93+
.shell-lesson > p {
94+
margin: 2px 0 2px 0;
95+
}
96+
97+
.highlight:not(:last-child) {
98+
margin-bottom: 1px !important;
9199
}
92100

93101
.demo-caret {

static/css/tabs.css

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
text-transform: uppercase;
3737
letter-spacing: 1.5px;
3838
font-weight: 500;
39+
color: #757575;
3940
}
4041

4142
#tabs-content > li {

0 commit comments

Comments
 (0)