You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@copilot in PR preview build, all page banners should link to chapter 1, which contains changes, and chapter 1 banner should include link to tracked-changes docx file
@copilot in PR preview build, all page banners should link to chapter 1, which contains changes, and chapter 1 banner should include link to tracked-changes docx file
create-docx-tracked-changes.py: For new pages where no base DOCX exists in gh-pages, the script now copies the new DOCX as the tracked-changes version instead of skipping it. This ensures chapter 1's tracked-changes DOCX is created even on the first PR.
detect-changed-chapters.py: Changed glob("*.html") to rglob("*.html") so chapters in subdirectories (like chapters/chapter1.html) are properly detected as changed. Also fixed the base path construction to use relative paths instead of the old hardcoded docs/ prefix.
With these fixes, add-home-banner.py will find chapter1-tracked-changes.docx and:
Show a "Changes in this PR" banner on all pages linking to chapter 1 (with the tracked-changes DOCX link)
Show an "Other Formats" banner on chapter 1 with the tracked-changes DOCX link
remove the document generation metadata altogether; doesn't work well for websites, since it causes every page to register as changed due to new commit SHA
remove toc from docx version, since the TOC would always register as changed
remove docx links from yellow banners; keep the ones in blue banners
remove the document generation metadata altogether; doesn't work well for websites, since it causes every page to register as changed due to new commit SHA
remove toc from docx version, since the TOC would always register as changed
remove docx links from yellow banners; keep the ones in blue banners
remove the document generation metadata altogether; doesn't work well for websites, since it causes every page to register as changed due to new commit SHA
...
Removed {{< include appendix-document-metadata.qmd >}} from index.qmd, chapters/chapter1.qmd, and chapters/chapter2.qmd
Removed toc: true and toc-depth: 3 from the docx format in _quarto-website.yml
Simplified the yellow banner in add-home-banner.py to link only to changed pages (no tracked-changes DOCX links); the blue "Other Formats" banner retains the tracked-changes DOCX link
CopilotAI
changed the title
Test add content
Fix PR preview banners and change detection for Quarto website
Apr 7, 2026
@copilot remove last-modified info from all pages except home page
Done in commit 4bc81cb. Removed date: last-modified and date-format from the global html format in _quarto-website.yml and added them to index.qmd's front matter, so only the home page displays the last-modified date.
CopilotAI
changed the title
Fix PR preview banners and change detection for Quarto website
Show last-modified date only on home page
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
date: last-modifiedsetting was applied globally across all pages, causing modification dates to appear on every chapter page unnecessarily.Changes
_quarto-website.yml: Removeddate: last-modifiedanddate-formatfrom the globalhtmlformatindex.qmd: Addeddate: last-modifiedanddate-formatto front matter so only the home page displays it