Skip to content

Commit 0060e56

Browse files
cwickhamcderv
andauthored
Redirect blog to Posit Open Source site (#2036)
* Archive blog sources under docs/blog/_archive/ Moves docs/blog/posts/, docs/blog/index.qmd, and docs/blog/quarto-blog-v2.png into docs/blog/_archive/ so Quarto no longer renders them. The Quarto blog has migrated to https://opensource.posit.co/blog/q/quarto/; sources are preserved here for reference. * Redirect blog URLs to opensource.posit.co Adds 42 per-post 301 redirects, plus redirects for the blog listing and RSS feed, so existing links to quarto.org/docs/blog/* land on the corresponding posts on the Posit Open Source site. Also updates the navbar Blog link (with an external-link icon) and the footer/navbar RSS hrefs to point at the new site. Drops the resource entry for the now-archived beautiful-tables-in-typst demo. * Remove orphaned _freeze cache for archived blog posts The blog post sources moved to docs/blog/_archive/ and are no longer rendered, so their _freeze cache under _freeze/docs/blog/posts/ is dead weight. Drop it. * Keep the blog-moved announcement post live on quarto.org Moves docs/blog/_archive/posts/2026-05-07-new-blog-home/ back to docs/blog/posts/ so the announcement explaining the move stays reachable at its original URL. _metadata.yml moves with it so the post still inherits Giscus comments and title-block-banner settings. * Remove giscus config from blog posts metadata The Quarto blog now lives on opensource.posit.co; the announcement post that remains on quarto.org doesn't need a comments section. Existing threads in the quarto-dev/quarto-cli Discussions "Blog" category are untouched. * Remove draft-check workflow and detect-drafts action * Finish removing draft-check: drop detect-drafts usage from preview.yml Commit 24dacc2 deleted the detect-drafts composite action and draft-check.yml but left preview.yml still calling the action via 'uses: ./.github/workflows/actions/detect-drafts', breaking the build-deploy-preview job. Remove the step, its outputs, and the related draft-tagging/callout logic from the PR comment, plus the stale README entries. * Match blog index.html and sub-page URLs in redirects The production sitemap.xml lists blog posts in /index.html form (43 of 50 entries), so search engines indexed those URLs — but the exact-path redirect rules only matched the trailing-slash form, leaving /index.html (and examples/ sub-pages) to 404 after the migration. Append a /* splat to each per-post rule so the trailing-slash form, index.html, and any sub-pages all 301 to the post's new home on opensource.posit.co. --------- Co-authored-by: christophe dervieux <christophe.dervieux@gmail.com>
1 parent 5f584e3 commit 0060e56

286 files changed

Lines changed: 56 additions & 341 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/README.md‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ Note that technically, <prerelease.quarto.org> is also a deploy preview on Netli
3030
- For `prerelease` branch, we use `git cherry-pick` the commit from main following previous above step.
3131
- Then we trigger the `publish.yml` workflow with `workflow_call` event trigger for each of the branch.
3232

33-
- `draft-check.yml` - A lightweight workflow that detects `draft: true` pages among changed `.qmd` files. Runs on all PRs to `main` and `prerelease` with no `paths-ignore`, so it always creates a status check.
34-
- Uses the reusable composite action at `.github/workflows/actions/detect-drafts/`.
35-
- Configured as a required status check on `main` (`check-drafts` job), blocking merge until `draft: true` is removed.
36-
- Admin override is available for intentional draft merges.
37-
3833
- `port-to-prerelease.yml` - This workflow is used to sync changes made to main for quarto.org to prerelease branch for prerelease.quarto.org.
3934
- It is triggered when a PR is merged in to `main`. It can also be triggered manually by adding a comment `/sync-prerelease` on a merged PR.
4035
- This workflow uses [`korthout/backport-action`](https://github.com/korthout/backport-action) to create a PR with the changes merged into `main` branch to be synced to `prerelease` branch.
@@ -45,7 +40,6 @@ Note that technically, <prerelease.quarto.org> is also a deploy preview on Netli
4540

4641
Local composite actions live in `.github/workflows/actions/`:
4742

48-
- `detect-drafts/` - Scans changed `.qmd` files for `draft: true` in YAML frontmatter. Outputs `found` (true/false) and `files` (newline-separated paths). Used by both `preview.yml` (to tag drafts in the PR comment) and `draft-check.yml` (to fail the required check).
4943
- `release-info/` - Retrieves release information from the quarto-cli repository.
5044

5145
## Netlify Configurations

‎.github/workflows/actions/detect-drafts/action.yml‎

Lines changed: 0 additions & 36 deletions
This file was deleted.

‎.github/workflows/draft-check.yml‎

Lines changed: 0 additions & 44 deletions
This file was deleted.

‎.github/workflows/preview.yml‎

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -182,29 +182,19 @@ jobs:
182182
fi
183183
shell: bash
184184

185-
- name: Detect draft pages
186-
id: detect-drafts
187-
uses: ./.github/workflows/actions/detect-drafts
188-
with:
189-
changed-files: ${{ steps.changed-files.outputs.all_changed_files }}
190-
191185
- name: Create custom PR comment
192186
if: github.event.pull_request || github.event.issue.pull_request
193187
uses: actions/github-script@v8
194188
env:
195189
DEPLOY_URL: ${{ steps.netlify-deploy.outputs.deploy-url }}
196190
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
197191
IMAGE_PAGES: ${{ steps.image-pages.outputs.pages }}
198-
DRAFT_FILES: ${{ steps.detect-drafts.outputs.files }}
199-
HAS_DRAFTS: ${{ steps.detect-drafts.outputs.found }}
200192
with:
201193
github-token: ${{ secrets.GITHUB_TOKEN }}
202194
script: |
203195
const prNumber = context.payload.pull_request?.number || context.payload.issue.number;
204196
const deployUrl = process.env.DEPLOY_URL;
205197
const changedFiles = JSON.parse(process.env.CHANGED_FILES || '[]');
206-
const draftFilesList = (process.env.DRAFT_FILES || '').trim().split('\n').filter(Boolean);
207-
const draftSet = new Set(draftFilesList);
208198
209199
let commentBody = `## 📝 Preview Deployment\n\n`;
210200
commentBody += `🔍 Full site preview: [${deployUrl}](${deployUrl})\n\n`;
@@ -261,16 +251,14 @@ jobs:
261251
commentBody += `### 🔄 Modified Documents\n\n`;
262252
for (const [page, files] of pageToFiles) {
263253
const fileUrl = `${deployUrl}/${page}`;
264-
const isDraft = files.some(f => draftSet.has(f));
265-
const draftTag = isDraft ? ' — ⚠️ `draft`' : '';
266254
if (files.length === 1) {
267-
commentBody += `- [${page}](${fileUrl})${draftTag}\n`;
255+
commentBody += `- [${page}](${fileUrl})\n`;
268256
} else {
269257
// Multiple source files map to one page - show page with file summary
270258
const basenames = files.map(f => f.split('/').pop());
271259
const shown = basenames.slice(0, 3).join(', ');
272260
const rest = basenames.length > 3 ? `, +${basenames.length - 3} more` : '';
273-
commentBody += `- [${page}](${fileUrl}) (${shown}${rest})${draftTag}\n`;
261+
commentBody += `- [${page}](${fileUrl}) (${shown}${rest})\n`;
274262
}
275263
}
276264
}
@@ -289,13 +277,6 @@ jobs:
289277
}
290278
}
291279
292-
// Add draft warning callout (no file list — already tagged inline above)
293-
const hasDrafts = process.env.HAS_DRAFTS === 'true';
294-
if (hasDrafts) {
295-
commentBody += `\n> [!WARNING]\n`;
296-
commentBody += `> This PR contains pages with \`draft: true\`. Remove the draft status before merging if the content is ready to publish.\n`;
297-
}
298-
299280
await github.rest.issues.createComment({
300281
issue_number: prNumber,
301282
owner: context.repo.owner,

‎_freeze/docs/blog/posts/2022-02-17-advanced-layout/index/execute-results/html.json‎

Lines changed: 0 additions & 17 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)