Skip to content

feat: auto-deploy index browser + simpler README#5

Merged
Sunrisepeak merged 1 commit intomainfrom
feat/site-and-readme
May 9, 2026
Merged

feat: auto-deploy index browser + simpler README#5
Sunrisepeak merged 1 commit intomainfrom
feat/site-and-readme

Conversation

@Sunrisepeak
Copy link
Copy Markdown
Member

Summary

Two related improvements to the index repo's hygiene:

  1. Auto-deployed static browser.github/workflows/deploy-site.yml runs xpkgindex generate (same tool as d2learn/xim-pkgindex) on every push to main and publishes the result to GitHub Pages. .xpkgindex.json holds mcpp-specific branding: title, links, and an install command template that emits mcpp add {name}@{version} on each package page.
  2. Simpler README — drop the upstream-comparison table and the layout block; keep the one-line description, the one-line quickstart, and a three-line "adding a package" pointer.

Test plan

  • xpkgindex generate . --output site runs cleanly locally; index.html shows the right title and mcpp add lua@5.4.7 as the install snippet on the package page
  • Validate workflow stays green
  • After merge: enable GitHub Pages in repo settings → site goes live at https://mcpp-community.github.io/mcpp-index/

Notes

  • Pages must be enabled in repo settings (Settings → Pages → Source: GitHub Actions) for deploy-site to actually publish. The workflow itself doesn't fail without it.

Adds a `deploy-site` workflow that runs the upstream `xpkgindex` tool
(same as d2learn/xim-pkgindex) on every push to main and publishes
the rendered HTML to GitHub Pages. `.xpkgindex.json` carries the
mcpp-specific branding (title, links, install command template
`mcpp add {name}@{version}`, install snippet pointing at the
mcpp release-asset install.sh).

The README is trimmed to the parts a contributor actually needs:
- One-line description + browse link.
- One-line quickstart (`mcpp add ...` + `mcpp build`).
- Three-line "adding a package" pointer to existing files as
  templates and the mcpp ext doc.
- License footer.

The comparison table with xim-pkgindex / mcpplibs-index moved out;
that's a meta-question that belongs in mcpp's docs, not in the
index repo's front door.

Once GitHub Pages is enabled in the repo settings, the workflow
will keep https://mcpp-community.github.io/mcpp-index/ in sync
with main automatically.
@Sunrisepeak Sunrisepeak merged commit aa4a1a1 into main May 9, 2026
@Sunrisepeak Sunrisepeak deleted the feat/site-and-readme branch May 9, 2026 18:49
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.

1 participant