The Public Editable Wiki for pokebedrock.com
  • TypeScript 79.2%
  • MDX 20.8%
Find a file
Smell of curry 3f119b6f8f
All checks were successful
wiki-search / build-and-sync (push) Successful in 17s
wiki-ci / lint (push) Successful in 19s
feat: add the public update log and the Halloween 5.7.2 post
Staff edit posts in this repo. The site renders published files at /blog.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 16:15:09 -04:00
.github ci: check locales, root links, and MDX imports 2026-10-06 16:05:47 +00:00
assets ci: validate nested asset markdown examples 2026-09-24 13:44:33 -04:00
build chore: regenerate search indices after supporter wrap 2026-09-24 13:42:28 -04:00
docs docs: wrap long supporter perk lines for MD013 2026-09-24 13:42:14 -04:00
posts feat: add the public update log and the Halloween 5.7.2 post 2026-10-18 16:15:09 -04:00
schemas feat: add the public update log and the Halloween 5.7.2 post 2026-10-18 16:15:09 -04:00
scripts feat: add the public update log and the Halloween 5.7.2 post 2026-10-18 16:15:09 -04:00
.editorconfig Update installation instructions to use npm ci for consistency and add new CI scripts for auditing and building search indices. Modify documentation to reflect these changes and enhance the CI workflow. 2026-03-06 21:39:32 -05:00
.gitignore Track wiki search artifacts and document drift gate 2026-03-20 23:07:54 +00:00
.markdownlint.json Initial open source release 2026-02-26 19:03:08 -05:00
.markdownlintignore Initial open source release 2026-02-26 19:03:08 -05:00
.nvmrc Update installation instructions to use npm ci for consistency and add new CI scripts for auditing and building search indices. Modify documentation to reflect these changes and enhance the CI workflow. 2026-03-06 21:39:32 -05:00
CODEOWNERS Initial open source release 2026-02-26 19:03:08 -05:00
CONTRIBUTING.md feat: add the public update log and the Halloween 5.7.2 post 2026-10-18 16:15:09 -04:00
DOCUMENTATION.md docs: align inventory with tracked assets and build output 2026-10-06 16:09:05 +00:00
LICENSE Initial open source release 2026-02-26 19:03:08 -05:00
linkinator.config.json Initial open source release 2026-02-26 19:03:08 -05:00
package-lock.json Update search index workflow to sync JSON payload to website backend; enhance documentation and remove unused peer dependency 2026-03-05 21:23:28 -05:00
package.json feat: add the public update log and the Halloween 5.7.2 post 2026-10-18 16:15:09 -04:00
README.md feat: add the public update log and the Halloween 5.7.2 post 2026-10-18 16:15:09 -04:00
SECURITY.md Initial open source release 2026-02-26 19:03:08 -05:00
tsconfig.build.json Initial open source release 2026-02-26 19:03:08 -05:00
tsconfig.json Initial open source release 2026-02-26 19:03:08 -05:00

PokéBedrock Wiki

Central content repository for PokéBedrock documentation. This repo stores Markdown/MDX pages, media assets, lint rules, and CI workflows that keep the docs consistent before syncing to the public website.

Quickstart

  1. Install Node 20+.
  2. Run npm ci from the repository root.
  3. Create/edit docs under docs/en/ or docs/es/.
  4. Run npm run ci locally before opening a PR.

Repository Layout

  • docs/ – localized Markdown/MDX source (docs/en/**, docs/es/**) organized by category with required frontmatter and locale-scoped _meta.json.
  • posts/ – update log rendered at /blog on the site. Staff guide: posts/README.md.
  • assets/ – shared media (webp images, diagrams, videos) and tracked datasets under assets/content/<locale>/{pokemon,moves}/. The search build warns and continues when a locale content directory is missing.
  • docs/<locale>/snippets/ – components used by name (InfoCallout, WarningCallout, ShellBlock, EarlyReturnExample). The website MDX renderer registers those names.
  • docs/<locale>/_partials/ – fragments imported with a relative path, such as ReleaseChecklist.mdx.
  • schemas/ – JSON Schema for validating doc frontmatter.
  • scripts/ – Node utilities for linting, validation, search indexing.
  • .github/ – issue templates, PR template, CI workflows (linting, link checks, search indexing).

Writing Docs

  • Every page must include the schema defined in schemas/frontmatter.schema.json.
  • Use MDX when you need components, tabs, or callouts; plain Markdown is fine for simple prose.
  • Prefer admonitions (:::note) for tips and warnings. Shared callouts are the snippet components InfoCallout and WarningCallout.
  • Images should live inside assets/ and be referenced with relative paths. Always supply descriptive alt text.
  • Keep docs slugs aligned across locales, for example docs/en/getting-started/new-player-guide.md and docs/es/getting-started/new-player-guide.md.

Tooling & Scripts

Command Description
npm run lint:md markdownlint checks + formatting rules
npm run lint:frontmatter Validates doc and update-post metadata using JSON Schema
npm run new-post -- <slug> Creates a draft file under posts/
npm run lint:images Ensures relative assets exist, are webp/svg, include alt text, and relative MDX imports resolve
npm run lint:links Crawls docs, asset Markdown, and root Markdown for broken links
npm run lint Runs markdownlint + frontmatter + image checks
npm run check Authoring checks (lint + link check)
npm run ci CI gate (lint, links, search build, generated-file drift check)
npm run build Default build entrypoint (aliases build:search)
npm run audit:prod Audits production dependency graph
npm run build:search Generates search payloads plus frontend content manifests in build/content/<locale>/
npm run check:generated Builds search/manifests and fails if tracked JSON drifts from the repo copies
npm run content:split Splits legacy monolithic content JSON into per-item files under assets/content/<locale>/

Search fallback artifacts (build/search-index.json, build/search-indices.json, and build/content/<locale>/*-manifest.json) are tracked in git so npm run check:generated can catch drift. Re-run the check after editing docs and commit the updated JSON if required.

CI & Deployment

  • ci.yml runs npm run ci plus npm run audit:prod for every pull request and for pushes to main.
  • search-index.yml builds the search payloads on pushes to main, uploads both the search JSON files and generated frontend content manifests as the workflow artifact, and posts build/search-indices.json to the website backend's protected sync endpoint so the backend can reindex Meilisearch from inside the cluster.
  • The same build writes content manifests used by the frontend for fast wiki content list/detail navigation:
    • build/content/en/pokemon-manifest.json and build/content/es/pokemon-manifest.json
    • build/content/en/moves-manifest.json and build/content/es/moves-manifest.json
    • build/content/en/move-learners-manifest.json and build/content/es/move-learners-manifest.json
  • A webhook notifies the website backend when docs change. The website fetches raw Markdown via the Git API and caches using ETags. See DOCUMENTATION.md.

Contributing

Read CONTRIBUTING.md for branching strategy, review expectations, localization workflow, and content guidelines. Issue templates cover bugs and content requests, while CODEOWNERS ensures the docs team reviews every change.

Release checklist: docs/en/_partials/ReleaseChecklist.mdx