feat(website): a News section, with the Longshot 4.0 announcement #3306

Merged
HumanBean merged 1 commit from HumanBean/Longshot:website/news into main 2026-12-06 03:21:31 +00:00
Owner

Summary

The website had nowhere to post news. This adds a News section and its first post, the Longshot 4.0 announcement:

  • A News tab in the header and a News group in the sidebar. /news/ lists every dated post, newest first, with its
    date and summary (src/components/NewsList.astro).
  • A post is a page in src/content/docs/news/ with a date in its front matter (the docs schema gains an optional
    date, src/content.config.ts). The date shows under the post's title (src/components/PageTitle.astro, an override
    of Starlight's).
  • /news.json lists the posts (title, date, description, page) for Longshot Launcher's News panel
    (src/pages/news.json.ts), made at build time. The launcher's side is a pull request of its own in LongshotLauncher.
  • The first post, news/longshot-4-0-0.mdx: what 4.0 brings, the new launcher and builder, performance and graphics
    (ray tracing among them), the Rust core and Longshot Mods, the menu as a system mod, the Steam Deck, controls and
    fixes. Its numbers come from the v3.2.0 against nightly benchmark of 2026-12-05.

Also, from reading the pages on a phone and a wide screen:

  • More room either side of the line before "On this page", the line and the text a little to the right
    (src/styles/theme.css).
  • The phone menu loses its Home and Download launcher links (the logo goes home; Get started has the download):
    src/components/Sidebar.astro is removed.
  • The install page no longer runs off a phone's screen: a code block's long line widened its cards
    (src/styles/content.css).

The README's new News section says how to add a post.

Testing

Tested: Linux, Firefox. npm run build and npm run check pass (97 tests). On astro dev: /news/, the post and
/news.json at 1400, 1970 and 2460 px wide and at 390 px (a phone), the install page at 390 px. mise run test: see
below.

Still to test:

  • The preview deploy: /news/, the post and /news.json serve as they do locally (by hand).

Measurements

Nothing to measure: the website only, no game code.

Risks

Website only. A docs page with both sidebars is laid out a little differently (the "On this page" column narrower, more
room around its line). A revert is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary The website had nowhere to post news. This adds a **News** section and its first post, the Longshot 4.0 announcement: - A **News** tab in the header and a News group in the sidebar. `/news/` lists every dated post, newest first, with its date and summary (`src/components/NewsList.astro`). - A post is a page in `src/content/docs/news/` with a `date` in its front matter (the docs schema gains an optional `date`, `src/content.config.ts`). The date shows under the post's title (`src/components/PageTitle.astro`, an override of Starlight's). - `/news.json` lists the posts (title, date, description, page) for Longshot Launcher's News panel (`src/pages/news.json.ts`), made at build time. The launcher's side is a pull request of its own in LongshotLauncher. - The first post, `news/longshot-4-0-0.mdx`: what 4.0 brings, the new launcher and builder, performance and graphics (ray tracing among them), the Rust core and Longshot Mods, the menu as a system mod, the Steam Deck, controls and fixes. Its numbers come from the v3.2.0 against nightly benchmark of 2026-12-05. Also, from reading the pages on a phone and a wide screen: - More room either side of the line before "On this page", the line and the text a little to the right (`src/styles/theme.css`). - The phone menu loses its Home and Download launcher links (the logo goes home; Get started has the download): `src/components/Sidebar.astro` is removed. - The install page no longer runs off a phone's screen: a code block's long line widened its cards (`src/styles/content.css`). The README's new News section says how to add a post. ## Testing **Tested:** Linux, Firefox. `npm run build` and `npm run check` pass (97 tests). On `astro dev`: `/news/`, the post and `/news.json` at 1400, 1970 and 2460 px wide and at 390 px (a phone), the install page at 390 px. `mise run test`: see below. **Still to test:** - The preview deploy: `/news/`, the post and `/news.json` serve as they do locally (by hand). ## Measurements Nothing to measure: the website only, no game code. ## Risks Website only. A docs page with both sidebars is laid out a little differently (the "On this page" column narrower, more room around its line). A revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(website): a News section, with the Longshot 4.0 announcement
Some checks are pending
CI / What the change needs (pull_request) Waiting to run
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Waiting to run
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Waiting to run
6bc34856d5
/news/ lists dated posts newest first, linked from the header and the
sidebar; a post shows its date under its title, and /news.json lists the
posts for the launcher's News panel. The first post announces 4.0.

Also: more room either side of the line before "On this page", the
phone menu without its Home and Download launcher links, and the install
page no longer wider than a phone's screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member

Possibly related, for context:

  • issue #635 Idea: Summary of changes for release/nightly on website (discord user idea) — Open request for release/news summaries on the website; this adds dated news posts.
Possibly related, for context: - issue #635 Idea: Summary of changes for release/nightly on website (discord user idea) — Open request for release/news summaries on the website; this adds dated news posts.
HumanBean changed title from WIP: feat(website): a News section, with the Longshot 4.0 announcement to feat(website): a News section, with the Longshot 4.0 announcement 2026-12-06 03:21:26 +00:00
HumanBean deleted branch website/news 2026-12-06 03:21:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!3306
No description provided.