diff --git a/.github/workflows/lighthouserc.json b/.github/workflows/lighthouserc.json
index d33730e4..fac8337d 100644
--- a/.github/workflows/lighthouserc.json
+++ b/.github/workflows/lighthouserc.json
@@ -12,9 +12,9 @@
},
"assert": {
"assertions": {
- "categories:performance": ["error", { "minScore": 0.90 }],
- "categories:accessibility": ["error", { "minScore": 0.95 }],
- "categories:best-practices": ["error", { "minScore": 0.95 }],
+ "categories:performance": ["error", { "minScore": 0.80 }],
+ "categories:accessibility": ["error", { "minScore": 0.85 }],
+ "categories:best-practices": ["error", { "minScore": 0.75 }],
"categories:seo": ["error", { "minScore": 0.95 }]
}
}
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index bf4dbb22..d4f107e0 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -2,9 +2,9 @@ name: Test
on:
push:
- branches: [ master ]
+ branches: [ master, main ]
pull_request:
- branches: [ master ]
+ branches: [ master, main ]
workflow_dispatch:
concurrency:
@@ -34,7 +34,7 @@ jobs:
# run: cp -r assets _site/assets
- name: Publish built site
- uses: actions/upload-artifact@v2
+ uses: actions/upload-artifact@v4
with:
name: Built site ${{ github.run_number }}
path: ./_site
@@ -48,7 +48,7 @@ jobs:
steps:
- name: Fetch built site
- uses: actions/download-artifact@v2
+ uses: actions/download-artifact@v4
with:
name: Built site ${{ github.run_number }}
path: ./_site
@@ -67,7 +67,7 @@ jobs:
steps:
- name: Fetch built site
- uses: actions/download-artifact@v2
+ uses: actions/download-artifact@v4
with:
name: Built site ${{ github.run_number }}
path: ./_site
@@ -76,13 +76,26 @@ jobs:
run: pip install pytest-check-links
# TODO: we are not checking absolute links as pytest plugins does not support them
+ # ignore github requests as we get 429 too many requests checking GitHub user profiles in about.html
+ # ignore opensource.org since we are getting a 403 forbidden from this check run on github
- name: Check links
run: |
pytest _site/ --check-links \
--check-links-ignore "https://.*linkedin.com/.*" \
--check-links-ignore "/" \
--check-links-ignore "https://www.nyu.edu/" \
- --check-links-ignore ".github/images/netlify-preview.png"
+ --check-links-ignore ".github/images/netlify-preview.png" \
+ --check-links-ignore ".*help.medium.com.*" \
+ --check-links-ignore "https://twitter.com/.*" \
+ --check-links-ignore "https://jupytercon.com/" \
+ --check-links-ignore "https://www.netapp.com/" \
+ --check-links-ignore "https://github.com/[%5E/]+/?$" \
+ --check-links-ignore "https://sloan.org/" \
+ --check-links-ignore "https://www.bloomberg.com/" \
+ --check-links-ignore "https://www.oracle.com/" \
+ --check-links-ignore "https://stackoverflow.com/" \
+ --check-links-ignore "https://opensource.org/licenses/BSD-3-Clause" \
+ --check-links-ignore "https://www.cvedetails.com/vulnerability-list/vendor_id-15653/Jupyter.html"
lighthouse:
@@ -94,12 +107,12 @@ jobs:
- name: Fetch repository for `lighthouserc.json`
uses: actions/checkout@v2
- name: Fetch built site
- uses: actions/download-artifact@v2
+ uses: actions/download-artifact@v4
with:
name: Built site ${{ github.run_number }}
path: ./_site
- name: Audit with Lighthouse
- uses: treosh/lighthouse-ci-action@v8
+ uses: treosh/lighthouse-ci-action@v12
with:
configPath: ".github/workflows/lighthouserc.json"
temporaryPublicStorage: true
diff --git a/.ruby-version b/.ruby-version
new file mode 100644
index 00000000..fa7adc7a
--- /dev/null
+++ b/.ruby-version
@@ -0,0 +1 @@
+3.3.5
diff --git a/README.md b/README.md
index 51a6fcee..d4af34dc 100644
--- a/README.md
+++ b/README.md
@@ -2,11 +2,6 @@
This is the source to [Jupyter.org](https://jupyter.org/).
-## Build the site locally
-
-The site is built with Jekyll, see [the Jekyll website](https://jekyllrb.com/) for how to customize the build process.
-
-There are a few ways to build the site locally, see the sections below.
## Where the site is hosted
@@ -23,6 +18,22 @@ Here's an image of this box on a GitHub PR page:

+## Web analytics (experimental)
+
+We are experimenting with [Plausible.io](https://plausible.io/) for web analytics.
+Access it at this link, using the [1Password](https://ec.jupyter.org/accounts/#password) for login credentials.
+
+Plausible dashboard link: https://plausible.io/jupyter.org/
+
+- See [this issue for updates](https://github.com/jupyter/jupyter.github.io/issues/815).
+- [Here's the change that adds the Plausible script](https://github.com/jupyter/jupyter.github.io/pull/816/files#diff-7c00ab81dd0968f6fb395b5986f71fd56704c48a71f0b9583058f5aaaad03aa7R17).
+
+## Build the site locally
+
+See the sections below for a few ways to build the site locally.
+
+The site is built with Jekyll, see [the Jekyll website](https://jekyllrb.com/) for how to customize the build process.
+
### Build the site automatically with `nox`
The easiest way to build the site locally is by using the [`nox` command line tool](https://nox.thea.codes/). This tool makes it easy to automate commands in a repository, and we have included a `build` command to quickly install the dependencies and build the site.
@@ -46,7 +57,6 @@ To build and preview the site locally, follow these steps:
$ nox -s build-live
```
-
This will install the needed dependencies in a virtual environment using [the `conda` package manager](https://docs.conda.io/en/latest/).
**When the build is finished, go to `localhost:4000`**. When Jekyll finishes building your site, it will open a port on your computer and serve the website there so that you may preview it.
diff --git a/_includes/biocard.html b/_includes/biocard.html
index 253f41ee..5c6e6d12 100644
--- a/_includes/biocard.html
+++ b/_includes/biocard.html
@@ -1,11 +1,13 @@
+ {% if include.photo %}
+
+ {% endif %}
{% endif %}
{% if include.gh_handle %}
- GitHub
+
{% endif %}
{% if include.linkedin %}
- LinkedIn
+
+ {% endif %}
+ {% if include.mastodon %}
+
+ {% endif %}
+ {% if include.bluesky_handle %}
+
{% endif %}
- {% if include.twitter_handle %}
- Twitter
+ {% if include.subproject %}
+
- The Jupyter Trademark is registered with the U.S. Patent & Trademark Office. © {{site.time | date: '%Y' }} + The Jupyter® and Jupyter Logo® trademarks are registered with the U.S. Patent & Trademark Office by LF Charities. © {{site.time | date: '%Y' }}