Skip to content

fix(docs): use main.html override so Algolia meta tag reaches deployed site#3666

Open
jodeleeuw wants to merge 1 commit intomainfrom
claude/review-pr-3664-d0O2x
Open

fix(docs): use main.html override so Algolia meta tag reaches deployed site#3666
jodeleeuw wants to merge 1 commit intomainfrom
claude/review-pr-3664-d0O2x

Conversation

@jodeleeuw
Copy link
Copy Markdown
Member

Summary

Follow-up to #3664. After that PR was merged and Publish Docs was run, the Algolia verification meta tag was not present on the deployed site.

Root cause: Material for MkDocs renders normal documentation pages through main.html (which extends base.html). The override added in #3664 was named overrides/index.html and {% extends "index.html" %}, but Material's index.html template is only used for pages that explicitly opt in via template: index.html in YAML front matter. None of the jsPsych docs pages do this, so the override was never instantiated and extrahead was never injected.

Fix: Rename the override to overrides/main.html and extend base.html, per the Material customization recipe (https://squidfunk.github.io/mkdocs-material/customization/#extending-the-theme). Also collapsed the stray double space between attributes in the <meta> tag.

mkdocs.yml already has the correct theme.custom_dir: 'overrides' from #3664 and is unchanged here.

Test plan

  • Re-run the Publish Docs GitHub Action against this branch (or after merge to main).
  • View source on https://www.jspsych.org/ and confirm <meta name="algolia-site-verification" content="4B994F893596449E" /> is present in <head>.
  • Spot-check a deeper page (e.g. a plugin reference page) to confirm the tag is site-wide, not just on the homepage.
  • Trigger Algolia DocSearch verification from the dashboard.

https://claude.ai/code/session_01V5YbstVEoGn4g1nZhgJ9Fy


Generated by Claude Code

…very page

Material for MkDocs renders normal documentation pages through main.html
extending base.html. The previous overrides/index.html was only consulted
for pages that opt in via `template: index.html` in YAML front matter — none
of jspsych's docs do that, so the verification tag never reached the
deployed site.

https://claude.ai/code/session_01V5YbstVEoGn4g1nZhgJ9Fy
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 5, 2026

⚠️ No Changeset found

Latest commit: c876604

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

📦 Preview build ready

Built from PR head c876604 and published at fe4342f on branch preview/pr-3666.
URLs below are pinned to an immutable commit SHA, so they are safe to share and are cached permanently by jsDelivr.

Changed packages: none detected

Quick-start HTML:

<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/jspsych/dist/index.browser.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/jspsych/css/jspsych.css">
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-html-keyboard-response/dist/index.browser.min.js"></script>
All package URLs
  • @jspsych/extension-mouse-trackinghttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/extension-mouse-tracking/dist/index.browser.min.js
  • @jspsych/extension-record-videohttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/extension-record-video/dist/index.browser.min.js
  • @jspsych/extension-webgazerhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/extension-webgazer/dist/index.browser.min.js
  • jspsychhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/jspsych/dist/index.browser.min.js
  • @jspsych/plugin-animationhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-animation/dist/index.browser.min.js
  • @jspsych/plugin-audio-button-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-audio-button-response/dist/index.browser.min.js
  • @jspsych/plugin-audio-keyboard-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-audio-keyboard-response/dist/index.browser.min.js
  • @jspsych/plugin-audio-slider-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-audio-slider-response/dist/index.browser.min.js
  • @jspsych/plugin-browser-checkhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-browser-check/dist/index.browser.min.js
  • @jspsych/plugin-call-functionhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-call-function/dist/index.browser.min.js
  • @jspsych/plugin-canvas-button-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-canvas-button-response/dist/index.browser.min.js
  • @jspsych/plugin-canvas-keyboard-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-canvas-keyboard-response/dist/index.browser.min.js
  • @jspsych/plugin-canvas-slider-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-canvas-slider-response/dist/index.browser.min.js
  • @jspsych/plugin-categorize-animationhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-categorize-animation/dist/index.browser.min.js
  • @jspsych/plugin-categorize-htmlhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-categorize-html/dist/index.browser.min.js
  • @jspsych/plugin-categorize-imagehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-categorize-image/dist/index.browser.min.js
  • @jspsych/plugin-clozehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-cloze/dist/index.browser.min.js
  • @jspsych/plugin-external-htmlhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-external-html/dist/index.browser.min.js
  • @jspsych/plugin-free-sorthttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-free-sort/dist/index.browser.min.js
  • @jspsych/plugin-fullscreenhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-fullscreen/dist/index.browser.min.js
  • @jspsych/plugin-html-audio-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-html-audio-response/dist/index.browser.min.js
  • @jspsych/plugin-html-button-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-html-button-response/dist/index.browser.min.js
  • @jspsych/plugin-html-keyboard-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-html-keyboard-response/dist/index.browser.min.js
  • @jspsych/plugin-html-slider-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-html-slider-response/dist/index.browser.min.js
  • @jspsych/plugin-html-video-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-html-video-response/dist/index.browser.min.js
  • @jspsych/plugin-iat-htmlhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-iat-html/dist/index.browser.min.js
  • @jspsych/plugin-iat-imagehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-iat-image/dist/index.browser.min.js
  • @jspsych/plugin-image-button-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-image-button-response/dist/index.browser.min.js
  • @jspsych/plugin-image-keyboard-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-image-keyboard-response/dist/index.browser.min.js
  • @jspsych/plugin-image-slider-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-image-slider-response/dist/index.browser.min.js
  • @jspsych/plugin-initialize-camerahttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-initialize-camera/dist/index.browser.min.js
  • @jspsych/plugin-initialize-microphonehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-initialize-microphone/dist/index.browser.min.js
  • @jspsych/plugin-instructionshttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-instructions/dist/index.browser.min.js
  • @jspsych/plugin-maxdiffhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-maxdiff/dist/index.browser.min.js
  • @jspsych/plugin-mirror-camerahttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-mirror-camera/dist/index.browser.min.js
  • @jspsych/plugin-preloadhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-preload/dist/index.browser.min.js
  • @jspsych/plugin-reconstructionhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-reconstruction/dist/index.browser.min.js
  • @jspsych/plugin-resizehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-resize/dist/index.browser.min.js
  • @jspsych/plugin-same-different-htmlhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-same-different-html/dist/index.browser.min.js
  • @jspsych/plugin-same-different-imagehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-same-different-image/dist/index.browser.min.js
  • @jspsych/plugin-serial-reaction-time-mousehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-serial-reaction-time-mouse/dist/index.browser.min.js
  • @jspsych/plugin-serial-reaction-timehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-serial-reaction-time/dist/index.browser.min.js
  • @jspsych/plugin-sketchpadhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-sketchpad/dist/index.browser.min.js
  • @jspsych/plugin-survey-html-formhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-survey-html-form/dist/index.browser.min.js
  • @jspsych/plugin-survey-likerthttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-survey-likert/dist/index.browser.min.js
  • @jspsych/plugin-survey-multi-choicehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-survey-multi-choice/dist/index.browser.min.js
  • @jspsych/plugin-survey-multi-selecthttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-survey-multi-select/dist/index.browser.min.js
  • @jspsych/plugin-survey-texthttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-survey-text/dist/index.browser.min.js
  • @jspsych/plugin-surveyhttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-survey/dist/index.browser.min.js
  • @jspsych/plugin-video-button-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-video-button-response/dist/index.browser.min.js
  • @jspsych/plugin-video-keyboard-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-video-keyboard-response/dist/index.browser.min.js
  • @jspsych/plugin-video-slider-responsehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-video-slider-response/dist/index.browser.min.js
  • @jspsych/plugin-virtual-chinresthttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-virtual-chinrest/dist/index.browser.min.js
  • @jspsych/plugin-visual-search-circlehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-visual-search-circle/dist/index.browser.min.js
  • @jspsych/plugin-webgazer-calibratehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-webgazer-calibrate/dist/index.browser.min.js
  • @jspsych/plugin-webgazer-init-camerahttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-webgazer-init-camera/dist/index.browser.min.js
  • @jspsych/plugin-webgazer-validatehttps://cdn.jsdelivr.net/gh/jspsych/jsPsych@fe4342fc673dfe42a40b7b8c13e366116690bcd6/packages/plugin-webgazer-validate/dist/index.browser.min.js

Last updated 2026-05-05 01:21 UTC for PR head c876604.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants