Repository navigation
Add a landing page and build with Zensical - #5
GeekOfWires wants to merge 6 commits into
Conversation
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>
1a69c2a to
ec53900
Compare
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>
ec53900 to
f082fcf
Compare
[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. FindingsSummaryAdds a landing page, a wiki front page, and a Zensical build.
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.
|
| - action: sync | ||
| path: ./wiki | ||
| target: /work/wiki | ||
| - action: sync | ||
| path: ./overrides | ||
| target: /work/overrides | ||
| - action: sync+restart | ||
| path: ./zensical.toml | ||
| target: /work/zensical.toml |
There was a problem hiding this comment.
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.
| check: | ||
| build: | ||
| context: . | ||
| target: base | ||
| image: psforever-wiki |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
| - [High Explosive Mine](../weapons/Adaptive_Construction_Engine.md#remote-detonated-charge-boomer) | |
| - [High Explosive Mine](../weapons/Adaptive_Construction_Engine.md#high-explosive-mine) |
Summary
Gives new players a front door to the project: a landing page at
/thatexplains 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 withZensical (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
Changes
fix(wiki): rename files that can't be checked out on Windows"or:in their names, plus 7 files that differed only by letter case (Hart.jpgand its thumbnails,Population_lock.md). Links updated.fix(wiki): repair broken links and section anchors#Spitfire_Turretthat never matched the generated IDs.feat: landing page and Zensical/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 docsDockerfile,compose.yaml, updated devcontainer, a fullREADME.md, and a newCONTRIBUTING.md.docs(wiki): add 30 images to the pages they illustrateNerrivikOverheardMap.jpg→NerrivikOverheadMap.jpg, and the three soldier images, which had upload-revision names).chore(wiki): remove 2,445 unused files from the image folderThings maintainers should know
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 leftoverimages/index.html.scripts/redirects.pyruns after each build and writes a forwarding page at each one, keeping#anchors.site_urlhttps://www.psforever.net/, matchingCNAME. This fixes the 404 page's broken stylesheet and logo paths, and the canonical and sitemap URLs, which pointed atpsforever.github.io/wiki/.psforever/PSF-LoginServer. Each page's edit button still opens its file inpsforever/wiki, becauseedit_uriis a full URL.mainbuild strictly, then publish togh-pageswith official actions andghp-import, replacingmhausenblas/mkdocs-deploy-gh-pages@master. The Pages settings don't change. As today, each publish replacesgh-pageswith a single commit, and the branch keepsCNAMEand.nojekyll.~=0.1.3. Material for MkDocs is in maintenance mode, with end of life on May 5, 2027. Three templates inoverrides/partials/(header.html,nav.html,nav-item.html) are copies of Zensical's with small additions, so they need comparing when Zensical is upgraded./,/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, andmobile_alignsettings inzensical.toml).version_sorted_sections(currently Patches) as version numbers, so3.2.12comes before3.15.6. Other sections stay alphabetical.navigation.prunerenders 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.wiki/images/. The removed files stay in Git history.CONTRIBUTING.mdasks for screenshots captured on PSForever over time.Not in this PR
:category:links with no.md, one link with its anchor before.md, andone
#Sanchor.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.
paths. The path check described below was run by hand.
once it's fixed upstream.
Verification
mkdocs buildfrom a clean Linux checkout of each commit, withmain's requirementszensical build --clean --strictfrom a clean Linux checkout<img>on the built site from its page and checked the file existsmainhad 1: the 404 page's logo, fixed bysite_url)gh-pagesbranch and looked each one up in the new buildimages/index.html), as are all/res/files and the 433 published images that remainpython scripts/redirects.py; opened an old URL with an anchor in a browserdocker compose run --rm checkanddocker compose watchon Docker Desktop for Windowsgit statusshows nothing modifiedgh-pagespublish, devcontainerAI Transparency
claude-opus-5-5); a research subagent read the Zensical docs and contributed no code