Skip to content

Update myst and publishing script to get google indexing working - #101

Merged
Jez-Carter merged 1 commit into
mainfrom
88-google-search-for-toolbox-entries-not-working
Sep 14, 2026
Merged

Jez-Carter merged 1 commit into
mainfrom
88-google-search-for-toolbox-entries-not-working

Conversation

@Jez-Carter

Copy link
Copy Markdown
Collaborator

This pull request hopefully partially solves issue: #88

Summary of issue:

Individual method pages and notebooks within the NC-UK Environmental Data Science Toolbox are not appearing in Google search results (e.g. https://nerc-ceh.github.io/data-science-toolbox/jsdmstan-book/). Google Search Console shows subpages as unindexed and returned a "Couldn't fetch" error when attempting to submit sitemap.xml. Inspection of the sitemap source code revealed that every page URL was defaulting to a local development host (http://localhost:3000/...) instead of the production domain, causing Google to reject the sitemap and leave subpages undiscovered.

The following changes are made:

  1. Updated Site Configuration (myst.yml):
    Added url: https://nerc-ceh.github.io/data-science-toolbox under the site: block so the MyST Markdown build tool knows the canonical base domain.
  2. Updated GitHub Actions Deployment Workflow (.github/workflows/deploy.yml):
    Added SITE_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }} to the global env: block so the build process (jupyter-book build --html) outputs absolute production URLs for all notebooks and subpages during deployment.

@Jez-Carter Jez-Carter self-assigned this Sep 14, 2026
@Jez-Carter
Jez-Carter requested a review from a team September 14, 2026 13:48
@Jez-Carter Jez-Carter added the bug Highlighting something isn't working label Sep 14, 2026
@Jez-Carter Jez-Carter linked an issue Sep 14, 2026 that may be closed by this pull request
@Jez-Carter
Jez-Carter merged commit d96e522 into main Sep 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Highlighting something isn't working

Projects

Development

Successfully merging this pull request may close these issues.

Google search for toolbox entries not working

2 participants