Skip to content

Add a landing page and build with Zensical - #5

Draft
GeekOfWires wants to merge 6 commits into
psforever:mainfrom
GeekOfWires:geekofwires/feat/landing-site-zensical
Draft

GeekOfWires wants to merge 6 commits into
psforever:mainfrom
GeekOfWires:geekofwires/feat/landing-site-zensical

Conversation

@GeekOfWires

@GeekOfWires GeekOfWires commented Nov 22, 2026 •

Copy link
Copy Markdown

Summary

Gives new players a front door to the project: a landing page at / that
explains what PSForever is, how to get into the game, and where the community
meets, with the wiki one click away and the Portal (play.psforever.net) in the
header. Every wiki page and image keeps its current URL and its file in
wiki/; the wiki gains a front page at /wiki/. The site now builds with
Zensical (the maintained successor to Material for MkDocs), works on phones as
well as desktops, and can be previewed and checked locally with Docker. The wiki's image folder is cleaned up: 30
unused images now illustrate the pages they belong to, and 2,445 duplicate or
rejected files are removed. Every image added, renamed, or deleted was verified
and approved one by one by the human author. No issues are open in this
repository, so none are linked.

The six commits are independent steps and can be reviewed one at a time. The
first two are content fixes that build with the current MkDocs setup on main.

Screenshots

Landing page (desktop) Wiki page (desktop)
Landing page on desktop: headline, Play the game and Join Discord buttons, the PSForever splash on the right Bolt Driver wiki page: Home, Wiki, and Portal in the header, category sidebar, breadcrumbs, and figures
Landing page (phone) Menu drawer (phone) Patches in version order
Landing page on a phone, with the splash logo in the upper-right corner Phone menu drawer with Home, Wiki, and Portal above the Weapons list Patches sidebar listing 3.2.6, 3.2.7, 3.2.8, 3.2.12, then 3.3.7

Changes

Commit Change
fix(wiki): rename files that can't be checked out on Windows 10 files renamed: 3 outfit pages with " or : in their names, plus 7 files that differed only by letter case (Hart.jpg and its thumbnails, Population_lock.md). Links updated.
fix(wiki): repair broken links and section anchors 92 broken links across 66 pages, mostly MediaWiki-style anchors such as #Spitfire_Turret that never matched the generated IDs.
feat: landing page and Zensical Landing page with rotating hero images, led by PSForever's Discord splash; a wiki front page at /wiki/, with every wiki page left at its current path and AfterShock filed under Terminology; redirects for renamed and moved pages; Home, Wiki, and Portal links; a phone layout; Patches listed in version order; one dark theme; self-hosted fonts; footer disclaimer; zensical.toml; new CI workflow.
build: Docker preview and check, contributor docs Dockerfile, compose.yaml, updated devcontainer, a full README.md, and a new CONTRIBUTING.md.
docs(wiki): add 30 images to the pages they illustrate 19 images on 17 facility pages, the anti-vehicle Phalanx image restored to its page, two backpack images, three soldier images on the Mini-Chaingun, Lancer, and Bolt Driver pages, and five inventory screens in the 2016 Beginner's Guide. Four files get readable names (NerrivikOverheardMap.jpg → NerrivikOverheadMap.jpg, and the three soldier images, which had upload-revision names).
chore(wiki): remove 2,445 unused files from the image folder 2,374 resized thumbnails of images that remain; 48 old upload revisions and orphaned thumbnails that match a remaining image; 21 images rejected in review (community memes, outfit logos, an empire emblem, an outdated launcher screenshot, a superseded Thunderer image); and 2 non-image files. About 50 MB.

Things maintainers should know

Topic Detail
URLs Every wiki page keeps its URL and its source file in wiki/. The landing page replaces the old home page at /, and the wiki gets a new front page at /wiki/ (wiki/wiki.md). Images (/images/…) and the logo, favicon, and figure styles (/res/…) keep their URLs too, so links from other sites still work. The only exceptions are the image files removed in the last commit, and the old leftover images/index.html.
Renamed and moved pages The 4 renamed pages, and AfterShock (moved from the top level into Terminology), get redirects from their old URLs: scripts/redirects.py runs after each build and writes a forwarding page at each one, keeping #anchors.
site_url Now https://www.psforever.net/, matching CNAME. This fixes the 404 page's broken stylesheet and logo paths, and the canonical and sitemap URLs, which pointed at psforever.github.io/wiki/.
GitHub button The header's GitHub button, with its live star and fork counts, now points to psforever/PSF-LoginServer. Each page's edit button still opens its file in psforever/wiki, because edit_uri is a full URL.
Publishing Pushes to main build strictly, then publish to gh-pages with official actions and ghp-import, replacing mhausenblas/mkdocs-deploy-gh-pages@master. The Pages settings don't change. As today, each publish replaces gh-pages with a single commit, and the branch keeps CNAME and .nojekyll.
Pull requests The workflow now also runs on pull requests (build only, no publish), so broken links fail CI instead of shipping.
Zensical Pinned to ~=0.1.3. Material for MkDocs is in maintenance mode, with end of life on May 5, 2027. Three templates in overrides/partials/ (header.html, nav.html, nav-item.html) are copies of Zensical's with small additions, so they need comparing when Zensical is upgraded.
Sidebar height Zensical 0.1.3 doesn't size the sidebars on a full page load, so a long section such as Facilities spilled over the footer on short pages. A few lines of CSS now cap each desktop sidebar at one screen and keep the footer below it; Zensical's own sizing still applies when it runs.
Header and phone layout The header shows the page title, in small type, beside the site name instead of swapping one for the other on scroll, and the GitHub button is narrowed to fit its contents, so the header links stay in the same place on every page. On tablets and desktops, Home, Wiki, and Portal sit in the header; Home and Wiki use root paths (/, /wiki/) so the highlight stays right during instant navigation, and Wiki is highlighted on every page except the landing page. The sidebar lists the wiki front page right after Home. On phones they move to the top of the menu drawer, figures go full width, and each hero image is framed on its subject (focus, flip, and mobile_align settings in zensical.toml).
Patches order The sidebar sorts sections listed in version_sorted_sections (currently Patches) as version numbers, so 3.2.12 comes before 3.15.6. Other sections stay alphabetical.
Page weight navigation.prune renders only the current branch of the sidebar, cutting pages from about 370 KB to 76 KB. Together with the image cleanup, the built site drops from 480 MB to 136 MB.
Images 438 files remain in wiki/images/. The removed files stay in Git history.
Hero images The first is PSForever's own Discord splash; the other five are in-game screenshots inherited from the old wiki. Three are mirrored on wider screens so their subjects sit beside the text. CONTRIBUTING.md asks for screenshots captured on PSForever over time.

Not in this PR

  • Five malformed links that MkDocs flags but Zensical's checker doesn't: three
    :category: links with no .md, one link with its anchor before .md, and
    one #S anchor.
  • 13 images referenced from inside raw HTML blocks (for example on the Merits
    index and in the NeoPhoenixTR guide) that render as literal Markdown text
    instead of images. The files are kept so those pages can be fixed.
  • A CI check for image paths: the strict build validates links but not image
    paths. The path check described below was run by hand.
  • Reporting the sidebar sizing issue to Zensical, so the CSS cap can be removed
    once it's fixed upstream.
  • Merging the two Population Lock pages, which have different content.
  • Reviewing the connection guide's links to copies of the game client.

Verification

Check Command / method Result
Build, commits 1–2 mkdocs build from a clean Linux checkout of each commit, with main's requirements Pass; link warnings drop from 70 to 5
Build, commits 3–6 zensical build --clean --strict from a clean Linux checkout Pass, "No issues found"
Image review Every image added, renamed, or deleted was verified and approved one by one by @GeekOfWires, in a review gallery that showed each duplicate beside the picture it copies and each open question with a recommendation 30 placements approved, 21 images rejected, 3 moved to weapon pages, 2,422 duplicates confirmed
Image paths Resolved every <img> on the built site from its page and checked the file exists 2,492 images, 0 broken (main had 1: the 404 page's logo, fixed by site_url)
Deletion safety Searched every page source for each deleted file name None referenced
URLs Listed every file on the live gh-pages branch and looked each one up in the new build Every page URL is still there (except the leftover images/index.html), as are all /res/ files and the 433 published images that remain
Redirects python scripts/redirects.py; opened an old URL with an anchor in a browser 5 stubs written; lands on the right section of the new page
Header Home → Wiki → Weapons → Home using instant navigation; Portal opens play.psforever.net; GitHub button shows PSF-LoginServer's counts (90 stars, 49 forks) Correct page, highlight, and counts at every step
Phone layout Checked at 320, 375, 430, and 768 px wide: drawer links at every menu depth, full-width figures, each hero image framed on its subject Working
Sidebar Fresh load of a short page (Facilities → Ogma) and a long one at 1400 px Sidebar stays within the screen and above the footer
Patches order Read the rendered sidebar 1.0, 1.0.0, 1.1 … 1.9.2, 1.10.10 … 3.2.12, 3.3.7 … 3.15.54; addenda after their version
Docker docker compose run --rm check and docker compose watch on Docker Desktop for Windows Check passes; an edit appears in the preview in about 2 s
Windows checkout Fresh clone of this branch with Git for Windows Clean checkout of all files; git status shows nothing modified
Tests No test suite in this repository Not applicable
Not run GitHub Actions workflow (runs on this PR), gh-pages publish, devcontainer Not run

AI Transparency

Field Value
AI assistance Yes
Harness Claude Code
Model(s) Claude Opus 5.5 (claude-opus-5-5); a research subagent read the Zensical docs and contributed no code
AI scope Drafted all code, configuration, docs, and link repairs; proposed image placements and duplicate matches; ran the builds and browser checks. Every image change was decided by the human author.
Human author @GeekOfWires

GeekOfWires and others added 2 commits November 22, 2026 03:24
Three outfit pages had a double quote or colon in their file names, and
seven files differed from another only by letter case. Git for Windows
refuses to check out the first and silently keeps one of each pair of the
second, so the repository could not be cloned cleanly on Windows.

- 666th_Spec._Ops_"Devil_Dogs".md -> 666th_Spec._Ops_Devil_Dogs.md
- Fanteria_dello_Spazio_"FDS".md -> Fanteria_dello_Spazio_FDS.md
- What_is_the_Matrix:param01.md -> What_is_the_Matrix_param01.md
- Hart.jpg (and its five thumbnails) -> HART_2.jpg, beside HART.jpg
- Population_lock.md -> Population_Lock_(Capacity).md; its content differs
  from Population_Lock.md, so the two pages are kept apart for now

Links to the renamed files are updated.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Fix the 92 links that point at a missing page or section. Most used
MediaWiki-style anchors such as #Spitfire_Turret, which never matched the
generated section IDs (#spitfire-turret). The rest:

- links to sections that don't exist now point at the page itself
- leftover category: links point at the category's index page
- Assist.md and Revive.md links use the correct relative path
- shorthand anchors into the Adaptive Construction Engine page (#Boomer,
  #Mine, #Spitfire) point at its real sections
- one link to a MediaWiki user page becomes plain text

With these fixed, a strict build reports no link problems.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@GeekOfWires
GeekOfWires marked this pull request as draft November 23, 2026 06:29
@GeekOfWires
GeekOfWires force-pushed the geekofwires/feat/landing-site-zensical branch from 1a69c2a to ec53900 Compare November 24, 2026 01:50
@GeekOfWires GeekOfWires changed the title Add a landing page, move the wiki under /wiki/, and build with Zensical Add a landing page and build with Zensical Nov 24, 2026
GeekOfWires and others added 4 commits November 24, 2026 23:15
Give new players a front door to the project and keep the wiki one click
away.

- Landing page at / (overrides/home.html, wiki/index.md): what PSForever
  is, how to get into the game, the three empires, and the weekly session
  shown in the visitor's time zone. Hero backgrounds rotate from
  extra.hero_images, led by PSForever's Discord splash; ?hero=N previews
  one.
- A wiki front page at /wiki/ (wiki/wiki.md), listed right after Home
  in the sidebar. Every wiki page and image keeps its file in wiki/ and
  its URL. scripts/redirects.py runs after each build and writes a
  forwarding page, keeping #anchors, at the old URL of each page renamed
  in this branch and of AfterShock, which moves into Terminology.
- Home, Wiki, and Portal (play.psforever.net) links in the header
  (overrides/partials/header.html). Home and Wiki use paths from the site
  root so they stay correct during instant navigation, and Wiki is
  highlighted on every page except the landing page. Also breadcrumbs,
  edit links, and a pruned sidebar so each page carries only its own
  branch of the navigation (about 370 KB -> 76 KB per page).
- The header shows the page title in small type beside the site name,
  and its GitHub button links to PSF-LoginServer. Patches are listed in
  version order (version_sorted_sections), and desktop sidebars are
  capped at one screen because Zensical 0.1.x doesn't size them on a full
  page load.
- On phones, the section links move to the top of the menu drawer,
  figures go full width between paragraphs, and each hero image is
  framed on its subject (focus, flip, and mobile_align settings).
- One dark theme with self-hosted OFL fonts (licenses included) and a
  non-affiliation notice in every page footer.
- Build with Zensical (zensical.toml replaces mkdocs.yaml). Material for
  MkDocs is in maintenance mode and Zensical is its maintained successor.
  site_url now matches the published domain, which fixes the 404 page's
  stylesheet paths and the canonical and sitemap URLs.
- CI builds strictly on pull requests and publishes main to gh-pages with
  official actions and ghp-import, replacing a third-party action pinned
  to its master branch. GitHub Pages settings are unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Dockerfile with a base stage (Zensical and the figure extension) and a
  preview stage that includes the site.
- compose.yaml: `docker compose watch` serves a live preview on port 8000,
  syncing edits into the container because Zensical can't see changes
  through a bind mount on Windows or macOS. `docker compose run --rm
  check` runs the same strict build and redirect step as CI, on a copy.
- The devcontainer reuses the base stage instead of a deprecated image.
- README.md becomes a real file describing the repository instead of a
  symlink to the old home page, and CONTRIBUTING.md covers previewing,
  checking, page conventions, hero image and header link options, and
  the landing page's rules for staying clear of the game's IP.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Place images that were in the repository but on no page, after a
one-by-one review:

- 19 images on 17 facility pages (photos and overhead maps; 11 of those
  pages had only a title)
- the anti-vehicle Phalanx image, dropped from its page in 2022
- TR and Command Rank 5 backpacks on the Backpack page
- TR, VS, and NC soldiers on the Mini-Chaingun, Lancer, and Bolt Driver
  pages
- five inventory screens in the 2016 Beginner's Guide, beside its
  loadout instructions

Rename four files to readable names: NerrivikOverheardMap.jpg becomes
NerrivikOverheadMap.jpg, and the three soldier images, which still had
MediaWiki upload-revision names, get descriptive ones.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every removed file was reviewed one by one before deletion:

- 2,374 resized thumbnails of images that remain
- 48 old upload revisions and orphaned thumbnails that match a
  remaining image
- 21 images rejected in review: community memes, outfit logos, an
  empire emblem, an outdated launcher screenshot, and a superseded
  Thunderer image
- 2 non-image files (README, index.html) left in MediaWiki's upload
  folder

No page references any removed file. 438 images remain, and the folder
is about 50 MB smaller. The files stay in Git history.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@GeekOfWires
GeekOfWires force-pushed the geekofwires/feat/landing-site-zensical branch from ec53900 to f082fcf Compare November 25, 2026 04:16
@jgillich

Copy link
Copy Markdown
Member

@greptileai

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5 · The PR appears safe to merge, with non-blocking fixes for cached Docker images and one incorrect section link.RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes reach the public wiki, its build and publishing workflow, and local contributor setup.

The PR appears safe to merge, with non-blocking fixes for cached Docker images and one incorrect section link.

Findings

  1. P2 Preview can restore old files ▶
  2. P2 Checks can use old code ▶
  3. P2 Mine link opens Boomer instructions ▶

Summary

Adds a landing page, a wiki front page, and a Zensical build.

  • Visitors can reach the landing page, wiki, and Portal from a shared site menu.
  • The site builds with Zensical and can be previewed locally with Docker.
  • Wiki links and page paths now match the site’s pages and anchors.
  • More wiki pages now show images that illustrate their subjects.

GeekOfWires explicitly deferred five malformed links, 13 images inside raw HTML blocks, an automated image-path check, reporting the sidebar issue upstream, merging the Population Lock pages, and reviewing game-client download links. These were not reported.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Sources["Wiki pages and theme"] --> Build["Zensical strict build"]
  Build --> Redirects["Write old-page redirects"]
  Redirects --> Publish["Publish gh-pages on main"]
  Sources --> Preview["Docker preview with file watching"]
Loading

Reviews (1) · Last reviewed commit: "chore(wiki): remove 2,445 unused files f..." · Reviewed by Greptile

Comment thread compose.yaml
Comment on lines +18 to +26
- action: sync
path: ./wiki
target: /work/wiki
- action: sync
path: ./overrides
target: /work/overrides
- action: sync+restart
path: ./zensical.toml
target: /work/zensical.toml

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Preview can restore old files

After the documented docker compose down, the next docker compose watch can reuse an image containing older site files. These watch rules only copy later changes, so edits made before restarting may not appear. Rebuild from the current checkout at startup, or copy the current files before serving.

Comment thread compose.yaml
Comment on lines +32 to +36
check:
build:
context: .
target: base
image: psforever-wiki

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Checks can use old code

docker compose run --rm check can reuse old dependencies or an old figure extension after their source changes. Both are installed when the image is built; the command only copies current site files. The automatic rebuild rules belong to serve, not check. Make the documented check rebuild its image so its result matches CI.

- [High Explosive Mine](../weapons/Adaptive_Construction_Engine.md#Remote-Detonated_Charge_.28Boomer.29)
- [Spitfire Turret](../weapons/Adaptive_Construction_Engine.md#spitfire-turret)
- [Boomer](../weapons/Adaptive_Construction_Engine.md#remote-detonated-charge-boomer)
- [High Explosive Mine](../weapons/Adaptive_Construction_Engine.md#remote-detonated-charge-boomer)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Mine link opens Boomer instructions

The repaired High Explosive Mine link still points to the Boomer section. Readers get instructions for a different deployable even though the link passes a broken-link check. Use the existing #high-explosive-mine section instead.

Suggested change
- [High Explosive Mine](../weapons/Adaptive_Construction_Engine.md#remote-detonated-charge-boomer)
- [High Explosive Mine](../weapons/Adaptive_Construction_Engine.md#high-explosive-mine)

This branch has not been deployed

No deployments
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