Skip to content

Merge har.fyi under docs - #1332

Open
max-ostapenko wants to merge 15 commits into
mainfrom
merge-har-docs
Open

max-ostapenko wants to merge 15 commits into
mainfrom
merge-har-docs

Conversation

@max-ostapenko

@max-ostapenko max-ostapenko commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

This PR merges har.fyi content directly into httparchive.org under the /docs/ path:

  • Adds Astro Starlight integration (@astrojs/starlight, starlight-links-validator, starlight-llms-txt)
  • Migrates all guides, reference docs (tables, blobs, structs, custom metrics, functions), and assets into src/content/docs/
  • Integrates custom Starlight header matching HTTP Archive branding and search
  • Updates sitemap and timestamp generation to index doc pages
  • Updates site navigation and references pointing to har.fyi to relative /docs/ paths

@tunetheweb tunetheweb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is looking much better on desktop but still have the double hamburger menu issues on mobile:

Image

@max-ostapenko
max-ostapenko force-pushed the courageous-galliform branch 2 times, most recently from 62ed224 to 7e256f0 Compare September 20, 2026 14:16
Base automatically changed from courageous-galliform to main September 20, 2026 14:16
Comment thread tools/generate/generate_timestamps.js Fixed
…rchive.org into merge-har-docs

Signed-off-by: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com>
Signed-off-by: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Visit the preview URL for this PR (updated for commit 0a70e01):

https://httparchive--pr1332-merge-har-docs-znie7fha.web.app

(expires Wed, 30 Sep 2026 21:55:35 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 1069cba7974889c25bacf4f0a19ddb6735592729

Signed-off-by: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com>
Signed-off-by: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com>
Signed-off-by: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com>
@tunetheweb

Copy link
Copy Markdown
Member

Looking better and better. It definitely feels like it's all part of one site now with the same menu persistent across all pages. It's not quite one case, but the illusion is there.

A few more asks for me:

  1. Could we have a consistent footer? Currently the Docs pages don't have any footer at all.
  2. I think, given it's a whole micro-site, this deserves it's own top-level menu item in the header rather than being buried under the About menu.
  3. I still don't understand the need for src/content/docs/docs. Can't it all be under src/content/docs/ and avoid that double doc/docs?

@max-ostapenko

Copy link
Copy Markdown
Contributor Author

@tunetheweb 'docs/docs/' is Starlights artifact.
It expects a collection under 'src/content/docs/', but as our website is not just docs, keeping the documentation right under 'docs/' will conflict with the rest of Astro pages.

And Starlight doesn't have a feature to define prefix.

…ation

Signed-off-by: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com>
# Conflicts:
#	package-lock.json
#	package.json
@max-ostapenko

Copy link
Copy Markdown
Contributor Author

@tunetheweb with unified footer and header now

@tunetheweb tunetheweb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does the docs Search work for you in the preview? Looks like we might need to add unsafe-eval to our CSP :-(

align-items: center;
justify-content: space-between;
box-sizing: border-box;
max-width: 1200px;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks weird when the docs page isn't constrained. The Logo in the header jumps to the right. Maybe we should drop this?

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.

3 participants