Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

The NumPy home page

License

NotificationsYou must be signed in to change notification settings

numpy/numpy.org

Getting Started

To contribute to the website, you'll first need to install theextendedversion of Hugo.

The Hugoinstall page hasinstructions for different platforms and installers; make sure you end up withthe extended version.

On Linux it may be easiest to pick up a tarball of the latest extended versionfrom therelease page andinstall it perhttps://gohugo.io/getting-started/installing/#install-hugo-from-tarball.

Next, clone this repository, and install the theme:

git submodule update --init --recursive

The development web server is started with:

make serve

If you don't havemake available (e.g., on Windows), use this instead:

python gen_config.pyhugo server

after which the site should be served athttp://localhost:1313.

You'll see

error: failed to transform resource: TOCSS: failed to transform"style.sass"

if you don't have the Hugo extended version.

User Experience (UX)

NumPy Color Palette

#013243 Warm BlackRGB 1/50/67 | HEX #013243 | NumPy Warm Black

#4D77CF Han BlueRGB 77/119/207 | HEX #4D77CF | NumPy Deep Blue

#4DABCF Maximum BlueRGB 77/171/207 | HEX #4DABCF | NumPy Ndarray Blue

#6C7A89 AurometalsaurusRGB 108/122/137 | HEX #6C7A89 | NumPy Slate Gray

#EEEEEE IsabellineRGB 238/238/238 | HEX #EEEEEE | NumPy Cloud Gray

#FFC553 MustardRGB 255/197/83 | HEX #FFC553 | NumPy Yellow

#FFFFFF WhiteRGB 255/255/255 | HEX #FFFFFF | White

Deployment

Submit pull requests first, those get run onNetlify and you can see a build preview by clicking on thedetails link at the bottom.

Build previews

Team lists

To update the teams gallery in numpy.org site, you need to runmake teams Makefile target. It uses theteam_query.py tool provided byscientific-python-hugo-theme. The following pre-requisites need to be met in numpy.org build environment:

  • Theteam_query.py tool requires python requests package. Make sure it is installed in your numpy.org build environment before invokingmake teams Makefile target.

  • GitHub token withread:org permissions is required for requesting numpy.org team data from GitHub. The token has to be exported asGH_TOKEN.

export GH_TOKEN=xxxxxxxxxxmake teams

Upgrade Hugo

Change the version innetlify.toml.

Analytics

A self-hosted version ofPlausible.io is used to gather simpleand privacy-friendly analytics for the site. The dashboard can be accessedhere.


[8]ページ先頭

©2009-2025 Movatter.jp