diff --git a/.github/workflows/lighthouserc.json b/.github/workflows/lighthouserc.json index 058fb0c3..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.90 }], + "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 363d114d..d4f107e0 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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,6 +76,8 @@ 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 \ @@ -87,7 +89,13 @@ jobs: --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/]+/?$" # 429 too many requests checking GitHub user profiles in about.html + --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: @@ -99,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@v10 + uses: treosh/lighthouse-ci-action@v12 with: configPath: ".github/workflows/lighthouserc.json" temporaryPublicStorage: true diff --git a/.ruby-version b/.ruby-version index a0891f56..fa7adc7a 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.4 +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: ![Netlify Preview Button](.github/images/netlify-preview.png) +## 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 e95160b5..5c6e6d12 100644 --- a/_includes/biocard.html +++ b/_includes/biocard.html @@ -26,8 +26,8 @@ {% if include.mastodon %} Mastodon {% endif %} - {% if include.twitter_handle %} - Twitter + {% if include.bluesky_handle %} + Bluesky {% endif %} {% if include.subproject %}
{{ include.subproject }}
diff --git a/_layouts/default.html b/_layouts/default.html index 76201f68..b5293d8c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -4,7 +4,7 @@ url: /try - title: Install url: /install - - title: Get Involved + - title: Community url: /community - title: Documentation url: https://docs.jupyter.org/ @@ -23,6 +23,8 @@ projects: - title: Binder url: /binder + - title: Jupyter Book + url: https://jupyterbook.org/ - title: JupyterHub url: /hub - title: JupyterLab @@ -41,8 +43,8 @@ url: https://github.com/jupyter/ - title: Mastodon url: https://hachyderm.io/@ProjectJupyter - - title: X - url: https://x.com/ProjectJupyter + - title: BlueSky + url: https://bsky.app/profile/jupyter.org - title: YouTube url: https://www.youtube.com/@projectjupyter legal: @@ -73,6 +75,12 @@ + + +