Skip to content

Commit 5efe380

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 95b24db + bb6c7ab commit 5efe380

Some content is hidden

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

53 files changed

+1117
-714
lines changed

.scripts/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
# Refer: https://github.com/numpy/numpy.org/pull/58/files#r336767432
66

77
git submodule update --init
8-
hugo
8+
sudo hugo
99

.scripts/deploy.sh

+7-8
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,26 @@
33
# Should be moved to build.sh
44
# NOTE: Running build.sh and then deploy.sh is not finding the public
55
# folder which is generated after the build command (hugo).
6-
git submodule update --init
7-
hugo
6+
# git submodule update --init
7+
# hugo
88

99
# deploy in surge
1010
npm install -g surge
1111

12-
if [ "$PR_NUMBER" != "false" ]
12+
if [ "$TRAVIS_PULL_REQUEST" != "false" ]
1313
then
14-
echo "PR_NUMBER value is ${PR_NUMBER}"
14+
echo "PR_NUMBER value is ${TRAVIS_PULL_REQUEST}"
1515
else
16-
echo "PR_NUMBER value is ${PR_NUMBER}."
16+
echo "PR_NUMBER value is ${TRAVIS_PULL_REQUEST}."
1717
exit 3
1818
fi
1919

2020
PROJECT_BUILD="./public"
21-
DOMAIN="http://numpy-${PR_NUMBER}.surge.sh"
22-
echo "PR_NUMBER: $PR_NUMBER"
21+
DOMAIN="http://numpy-${TRAVIS_PULL_REQUEST}.surge.sh"
2322
echo "SURGE_LOGIN: $SURGE_LOGIN"
2423
echo "SURGE_TOKEN: $SURGE_TOKEN"
2524
ls "./public"
2625

2726
surge --project $PROJECT_BUILD --domain $DOMAIN;
2827

29-
echo ::set-output name=deployed-domain::"numpy-${PR_NUMBER}.surge.sh"
28+
echo "numpy-${TRAVIS_PULL_REQUEST}.surge.sh"

.scripts/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tar -xzf $tarball
1212

1313
chmod +x hugo
1414

15-
mv hugo /usr/local/bin/
15+
sudo mv hugo /usr/local/bin/
1616

1717
location="$(which hugo)"
1818
echo "Hugo binary location: $location"

.travis.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
language: python
1+
sudo: required
2+
dist: trusty
3+
language: node_js
24

35
os:
46
- linux
57

6-
services:
7-
- docker
8-
98
before_install:
10-
- docker build -t deploy_surge .
11-
- docker images
9+
- chmod +x .scripts/install.sh
10+
- chmod +x .scripts/build.sh
11+
- chmod +x .scripts/deploy.sh
12+
13+
before_script:
14+
- ls
15+
- .scripts/install.sh
1216

1317
script:
14-
- docker run -e SURGE_LOGIN=${SURGE_LOGIN} -e SURGE_TOKEN=${SURGE_TOKEN} -e PR_NUMBER=${TRAVIS_PULL_REQUEST} deploy_surge
18+
- bash .scripts/build.sh
19+
20+
after_script:
21+
- bash .scripts/deploy.sh

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Not using it.
2+
# Refer: https://github.com/numpy/numpy.org/pull/146
3+
14
FROM node:10-alpine
25
ADD . ./app
36
WORKDIR /app

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,39 @@ hugo server -D
2929
to run the hugo server with draft enabled.
3030

3131
after which the site should be served at http://localhost:1313.
32+
33+
## Using docker:
34+
35+
* Build the docker image:
36+
37+
```
38+
39+
$ docker build -t deploy_surge .
40+
$ docker images
41+
42+
```
43+
44+
Run the image:
45+
46+
```
47+
$ docker run -e SURGE_LOGIN=${SURGE_LOGIN} -e SURGE_TOKEN=${SURGE_TOKEN} -e PR_NUMBER=${TRAVIS_PULL_REQUEST} deploy_surge
48+
```
49+
50+
Note: `SURGE_LOGIN` and `SURGE_TOKEN` is needed only when you want to push the
51+
build in surge server. The URL will look like: numpy-${PR_NUMBER}.surge.sh
52+
53+
So you can use some random number instead of `TRAVIS_PULL_REQUEST` variable.
54+
55+
You also can run the docker image in daemon mode and then interact with the container and run the hugo server.
56+
57+
## User Experience (UX)
58+
59+
### NumPy Color Palette
60+
61+
#FFC553 Mustard
62+
#4DABCF Maximum Blue
63+
#4D77CF Han Blue
64+
#FFFFFF White
65+
#EEEEEE Isabelline
66+
#6C7A89 Aurometalsaurus
67+
#013243 Warm Black

config.yaml

+33-90
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@ languageCode: en-us
33
title: NumPy
44
theme: hugo-fresh
55
disableKinds: ["taxonomyTerm"]
6+
googleAnalytics: UA-162151853-1
67
DefaultContentLanguage: en
8+
markup:
9+
goldmark:
10+
renderer:
11+
unsafe: true
712

813
params:
914
navColor: blue
1015
navbarlogo:
1116
image: logos/numpy.svg
1217
link: /
1318
font:
14-
name: "Ubuntu"
15-
sizes: [400,600]
19+
name: "Lato"
20+
sizes: [400,900]
1621
hero:
1722
# Main hero title
1823
title: NumPy
@@ -21,7 +26,7 @@ params:
2126
# Button text
2227
buttontext: Get started
2328
# Where the main hero button links to
24-
buttonlink: "#"
29+
buttonlink: "/learn"
2530
# Hero image (from static/images/___)
2631
image: logos/numpy.svg
2732
# Customizable navbar. For a dropdown, add a "sublinks" list.
@@ -32,27 +37,33 @@ params:
3237
- title: First Image of a Black Hole
3338
text: How NumPy, together with libraries like SciPy and Matplotlib that depend on NumPy, enabled the Event Horizon Telescope to produce the first ever image of a black hole
3439
img: images/content_images/case_studies/blackhole.png
40+
alttext: First image of a black hole. It is an orange circle in a black background.
3541
url: /case-studies/blackhole-image
3642
- title: Detection of Gravitational Waves
3743
text: One hundred years after they were predicted by Albert Einstein, NumPy was instrumental in the first observation of gravitational waves by LIGO in 2016.
3844
img: images/content_images/case_studies/gravitional.png
45+
alttext: Two orbs orbiting each other. They are displacing gravity around them.
3946
url: /case-studies/gw-discov
4047
- title: Sports Analytics
4148
text: TODO!
4249
img: images/content_images/case_studies/sports.jpg
50+
alttext: Cricket ball on green field.
4351
url: /
4452
section2:
4553
title: KEY FEATURES
4654
features:
4755
- title: Powerful N-dimensional arrays
48-
subtitle: Fast, versatile and easy to use
49-
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.
5057
- title: Numerical computing tools
51-
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.
5259
- title: Interoperable
53-
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.
5465
- title: Open source
55-
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).
5667
tabs:
5768
title: ECOSYSTEM
5869
section5: false
@@ -67,7 +78,7 @@ languages:
6778
- title: Install
6879
url: /install
6980
- title: Documentation
70-
url: /doc
81+
url: https://numpy.org/doc/
7182
- title: Learn
7283
url: /learn
7384
- title: Array computing
@@ -93,33 +104,29 @@ languages:
93104
- text: Install
94105
link: /install
95106
- text: Documentation
96-
link: /docs
107+
link: https://numpy.org/doc/
97108
- text: Learn
98109
link: /learn
99110
- text: Roadmap
100111
link: https://numpy.org/neps/roadmap.html
101112
column2:
102-
title: ""
103113
links:
104114
- text: About us
105115
link: /about
106116
- text: Community
107117
link: /community
108-
- text: Code of conduct
109-
link: /code-of-conduct
110-
- text: Get help
111-
link: /help
112118
- text: Contribute
113119
link: /contribute
120+
- text: Code of conduct
121+
link: /code-of-conduct
114122
column3:
115-
title: ""
116123
links:
124+
- text: Get help
125+
link: /gethelp
117126
- text: Terms of use
118127
link: /terms
119128
- text: Privacy
120129
link: /privacy
121-
- text: Trademarks
122-
link: /trademarks
123130
- text: Press kit
124131
link: /press-kit
125132
nl:
@@ -131,7 +138,7 @@ languages:
131138
- title: Install
132139
url: /nl/install
133140
- title: Documentation
134-
url: /nl/doc
141+
url: https://numpy.org/doc/
135142
- title: Array computing
136143
url: /nl/arraycomputing
137144
- title: Case Studies
@@ -159,7 +166,7 @@ languages:
159166
- text: Install
160167
link: /nl/install
161168
- text: Documentation
162-
link: /nl/docs
169+
link: https://numpy.org/doc/
163170
- text: Release notes
164171
link: /nl/release-notes
165172
- text: Roadmap
@@ -169,84 +176,20 @@ languages:
169176
links:
170177
- text: About us
171178
link: /nl/about
172-
- text: Code of conduct
173-
link: /nl/code-of-conduct
174-
- text: Get help
175-
link: /nl/help
179+
- text: Community
180+
link: /community
176181
- text: Contribute
177182
link: /nl/contribute
183+
- text: Code of conduct
184+
link: /nl/code-of-conduct
178185
column3:
179186
title: ""
180187
links:
188+
- text: Get help
189+
link: /nl/gethelp
181190
- text: Terms of use
182191
link: /nl/terms
183192
- text: Privacy
184193
link: /nl/privacy
185-
- text: Trademarks
186-
link: /nl/trademarks
187194
- text: Press kit
188195
link: /nl/press-kit
189-
hi:
190-
title: NumPy
191-
languageName: हिंदी
192-
weight: 3
193-
contentDir: content/hi
194-
navbar:
195-
- title: Install
196-
url: /hi/install
197-
- title: Documentation
198-
url: /hi/doc
199-
- title: Array computing
200-
url: /hi/arraycomputing
201-
- title: Case Studies
202-
url: /hi/case-studies/blackhole-image
203-
- title: Learn
204-
url: /hi/learn
205-
- title: Community
206-
url: /hi/community
207-
- title: About Us
208-
url: /hi/about
209-
- title: Contribute
210-
url: /hi/contribute
211-
footer:
212-
logo: numpy.svg
213-
socialmediatitle: ""
214-
socialmedia:
215-
- link: https://github.com/numpy/numpy
216-
icon: github
217-
- link: https://twitter.com/numpy_team
218-
icon: twitter
219-
quicklinks:
220-
column1:
221-
title: ""
222-
links:
223-
- text: Install
224-
link: /hi/install
225-
- text: Documentation
226-
link: /hi/docs
227-
- text: Release notes
228-
link: /hi/release-notes
229-
- text: Roadmap
230-
link: /hi/roadmap
231-
column2:
232-
title: ""
233-
links:
234-
- text: About us
235-
link: /hi/about
236-
- text: Code of conduct
237-
link: /hi/code-of-conduct
238-
- text: Get help
239-
link: /hi/help
240-
- text: Contribute
241-
link: /hi/contribute
242-
column3:
243-
title: ""
244-
links:
245-
- text: Terms of use
246-
link: /hi/terms
247-
- text: Privacy
248-
link: /hi/privacy
249-
- text: Trademarks
250-
link: /hi/trademarks
251-
- text: Press kit
252-
link: /hi/press-kit

content/en/about.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The NumPy project is growing, we have separate teams for:
4343
- Funding & grants
4444
- Admin
4545

46-
See the [Team](/team) page for individual team members.
46+
See the [Team](/team) page for the individual team members.
4747

4848

4949
## Sponsors
@@ -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/arraycomputing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pack newer algorithms and features geared towards machine learning and artificia
2929
title="Array Computing Landscape">
3030

3131
**Array computing** is based on **arrays** data structures. *Arrays* are used
32-
to organize vast amounts of data such that related set of values can be easily
32+
to organize vast amounts of data such that a related set of values can be easily
3333
sorted, searched, mathematically manipulated and transformed easily and quickly.
3434

3535
Array computing is *unique* as it involves operating on the data array *at

0 commit comments

Comments
 (0)