Skip to content

fix(config): point editUrl at cncf/endusers, not castrojo - #245

Open
mrbobbytables wants to merge 1 commit into
mainfrom
fix/site-url-cncf-org
Open

mrbobbytables wants to merge 1 commit into
mainfrom
fix/site-url-cncf-org

Conversation

@mrbobbytables

Copy link
Copy Markdown
Member

Summary

Fixes part of #232. After the repo transfer from castrojo/endusers to cncf/endusers, several hard-coded URLs still pointed at the old castrojo org:

  • docusaurus.config.js: both editUrl values ("Edit this page" links) for docs and blog now point at https://github.com/cncf/endusers/tree/main (and .../main/), instead of the stale castrojo org.
  • Updated the inline example comment for SITE_URL/BASE_URL overrides to reference the correct org too.

Known remaining gap — needs a maintainer with workflow scope

.github/workflows/deploy-gh-pages.yml still builds the site with:

SITE_URL: https://castrojo.github.io
BASE_URL: /endusers/

https://castrojo.github.io/endusers/ now 404s since the org transfer; the live site is actually served at https://cncf.github.io/endusers/. Because SITE_URL is stale, every absolute URL Docusaurus emits (sitemap.xml <loc>, og:url, og:image, twitter:image, hreflang alternates, canonical links) points at the broken origin — this is the core problem reported in #232.

This PR does not include that fix. The automated token used to push this branch lacks the workflow OAuth scope, and GitHub rejects any push that touches files under .github/workflows/ without it:

! [remote rejected] ... (refusing to allow an OAuth App to create or update workflow `.github/workflows/deploy-gh-pages.yml` without `workflow` scope)

A maintainer (or a token with workflow scope) needs to apply this one-line change separately:

       - name: Build website
         env:
-          SITE_URL: https://castrojo.github.io
+          SITE_URL: https://cncf.github.io
           BASE_URL: /endusers/

(Note: PR #167 also contains this SITE_URL fix but is currently CONFLICTING and bundles it with unrelated ADR/README rewrites, per the issue notes.)

Verification

  • grep -rn castrojo docusaurus.config.js → no matches after this change.
  • Confirmed live: https://castrojo.github.io/endusers/ → 404, https://cncf.github.io/endusers/ → 200.

— hive: backend=copilot

🐝 Hive Agent: contributor | SHA: eb3efc3

The repo was transferred from castrojo/endusers to cncf/endusers.
Update docusaurus.config.js's docs and blog editUrl values (and the
inline SITE_URL example comment) to point at the cncf org instead of
the stale castrojo org.

Note: .github/workflows/deploy-gh-pages.yml's SITE_URL env var also
still points at https://castrojo.github.io (which now 404s after the
org transfer, breaking sitemap.xml, canonical, and og/twitter URLs on
the live site) and needs the same fix, but this automated change
cannot push to files under .github/workflows/ (requires the
'workflow' OAuth scope, which this token lacks). A maintainer with
that scope should change SITE_URL to https://cncf.github.io.

Signed-off-by: mrbobbytables <mrbobbytables@users.noreply.github.com>
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.

1 participant