Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add sitemap.xml to interactors site. #305

Merged
merged 1 commit into from
Sep 20, 2024
Merged

✨ Add sitemap.xml to interactors site. #305

merged 1 commit into from
Sep 20, 2024

Conversation

cowboyd
Copy link
Member

@cowboyd cowboyd commented Sep 19, 2024

🚚 Heads up!
This PR also migrates the interactors to host at Deno Deploy: It turns out that it is very good at it, it's hella cheaper than Netlify, and much, much, much more flexible in how we can extend it. This must be merged first thefrontside/frontside.com#400 which points frontside.com to this new site.

Motivation

We're going to use sitemaps as a standards based mechanism to compose our websites; thereby decoupling us from any single website content framework.

Approach

This adds a sitemap for the interactors website so that it can be "mounted" on frontside.com by enabling the docusaurus "sitemap" plugin.

Docusaurus does a bunch of dynamic chicanery with React, Webpack and code-splitting to render a static webpage because reasons, so we add a synthetic entries to the sitemap to serve as indexes for all dynamically loaded resources (those resources that are fetched via JavaScript as follow-on requests). That way, the static site capture process can know to download all those resources ahead of time even though they are not referenced directly in any page.

Screenshots

image

Copy link

netlify bot commented Sep 19, 2024

Deploy Preview for interactors failed.

Name Link
🔨 Latest commit b730c41
🔍 Latest deploy log https://app.netlify.com/sites/interactors/deploys/66ed8829733adf0008d9d325

Copy link
Contributor

github-actions bot commented Sep 19, 2024

@cowboyd cowboyd force-pushed the www branch 2 times, most recently from e3ce1f0 to a113c15 Compare September 20, 2024 03:27
@cowboyd cowboyd marked this pull request as ready for review September 20, 2024 13:32
We're going to use sitemaps as a standards based mechanism to compose
our static websites.

This adds a sitemap for the interactors website so that it can be
"mounted" on frontside.com by enabling the docusaurus "sitemap"
plugin.

Docusaurus does a bunch of dynamic chicanery with React,
Webpack and code-splitting to render a static webpage because
reasons, so we add a synthetic entry to the sitemap that serves as an
index for all dynamic JavaScript resources. That way, the static site generator
knows to download all those resources ahead of time even though they
are not referenced in any page.
Copy link
Member

@taras taras left a comment

Choose a reason for hiding this comment

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

👍

@taras taras merged commit 12baf37 into main Sep 20, 2024
5 of 9 checks passed
@taras taras deleted the www branch September 20, 2024 23:27
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