Skip to content

fix: serve the website from the enclave.eclipse.dev root - #55

Merged
planger merged 2 commits into
mainfrom
fix/website-root-domain
Aug 24, 2026
Merged

fix: serve the website from the enclave.eclipse.dev root#55
planger merged 2 commits into
mainfrom
fix/website-root-domain

Conversation

@planger

@planger planger commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

What it does

The website is now hosted at https://enclave.eclipse.dev, so it is served from a
domain root rather than the planned eclipse.dev/enclave subpath. Production
builds still injected a /enclave/docs/ base path, which broke the deployed
docs: pages referenced /enclave/docs/assets/... (404 today) while the files
themselves sit at /docs/assets/..., so no CSS or JS loaded.

  • Production DOCS_BASE_URL and the workflow_dispatch default drop the
    /enclave prefix, so the docs build with the default /docs/.
  • docusaurus.config.js sets url: https://enclave.eclipse.dev for correct
    sitemap and canonical URLs.
  • The publish workflow now re-creates the CNAME file on every deploy. This is
    a latent trap unrelated to the base path: actions-gh-pages replaces the
    published tree, so the next deploy would have deleted the file the Pages
    settings UI created and unset the custom domain. Otterdog cannot manage this,
    as its repository resource has no custom-domain property.
  • index.html gains og:url, a canonical link, and an absolute og:image. The
    relative og:image never worked for social crawlers; a stable domain is what
    was missing. These are the only place the production domain is hardcoded.
  • README links the site under the title and in the project resources line.
  • package-lock.json picks up a two-line rename: the lockfile name was still
    website-docs while package.json says eclipse-enclave-docs.

The preview workflow keeps its /enclave-website-previews/pr-previews/pr-N/docs/
base path, which is still correct for that host.

How to test

OUTPUT_DIR=/tmp/enclave-site ./website/build.sh
cd /tmp/enclave-site && python3 -m http.server 8000

Built pages should reference /docs/assets/..., and sitemap.xml should use
https://enclave.eclipse.dev/docs/.... I verified 200s on /, /docs/, all
three doc pages, the docs CSS bundle, and the marketing assets. website/preview.sh
covers the same ground. The only build warnings are the four intentional ../
links from docs back to the marketing home, which is why onBrokenLinks is warn.

To confirm the current breakage before the fix lands:

curl -s https://enclave.eclipse.dev/docs/ | grep -oE 'href=/[^ >]*\.css'
# href=/enclave/docs/assets/css/styles.430d70dc.css  -> 404

Follow-ups

  • The otterdog config in .eclipsefdn sets homepage: https://www.eclipse.dev/enclave
    for all three repos. That URL is now wrong and needs a separate PR there. -> fix: website URL .eclipsefdn#4

Breaking changes

  • This PR introduces breaking changes and has been coordinated with maintainers.

Review checklist

The site moved from a planned eclipse.dev/enclave subpath to its own
subdomain, so production builds no longer need a path prefix. Deployed docs
pages referenced /enclave/docs/assets/..., which 404s at the root domain.

Also re-create the CNAME file on every deploy: actions-gh-pages replaces the
published tree, which would delete the file the Pages settings UI created and
unset the custom domain.
@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-24 09:10 UTC

Updated project name from 'Enclave' to 'Eclipse Enclave' and revised links.
@planger
planger marked this pull request as ready for review August 24, 2026 08:11
@planger
planger requested a review from tortmayr August 24, 2026 08:11

@tortmayr tortmayr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@planger
planger merged commit e86a59d into main Aug 24, 2026
10 checks passed
@planger
planger deleted the fix/website-root-domain branch August 24, 2026 09:10
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