Skip to content

Add project website (GitHub Pages): docs, API reference, search - #387

Merged
blacktrs merged 37 commits into
mainfrom
site
Oct 24, 2026
Merged

blacktrs merged 37 commits into
mainfrom
site

Conversation

@blacktrs

@blacktrs blacktrs commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What

A static website for the compiler, published to GitHub Pages from main.

  • site/index.html — landing page: tagline, install, benchmark excerpt, theme toggle (auto/light/dark).
  • site/build.php — builds docs/*.md and docs/design/*.md into HTML, plus a client-side search index. It is compiled by the pinned bootstrap compiler in CI, so the site dogfoods Manticore; the compiled binary's output is byte-identical to php site/build.php.
  • Syntax highlighting via self-hosted highlight.js (php, bash, json, llvm); docs search over headings and page summaries.
  • API reference (pilot: Manticore\Ds, Async): build.php extracts public classes, functions and members from prelude/*.php with PhpToken and renders one page per class/function (signature with linked types, description, parameters, returns, throws, examples with output, source link). php site/build.php --lint-ref reports undocumented items, missing @param/@return and missing examples.
  • Docblocks of prelude/ds.php, ds_map.php and async.php rewritten as user-facing docs; the previous implementation notes moved verbatim into // comments. Only comments changed (token-identical code). Items not meant for users are marked @internal.
  • 24 doc examples are ordinary AOT cases (tests/aot/cases/doc_*.php + expected/*.out), so the existing suite keeps them honest.
  • Logo, favicon and social preview taken from docs/assets.

CI

  • pages.yml (new): runs on changes to site/**, docs/**, COMPILER_VERSION, BOOTSTRAP_VERSION; its own concurrency group.
  • ci.yml: **.md, docs/** and site/** added to paths-ignore for pull_request (push already ignored docs).
  • ci-docs-only.yml (new): reports the six required check names green for a PR that only touches docs, markdown or site/**, so the required checks do not wait forever on a skipped workflow.

Notes

@blacktrs blacktrs changed the title Add project website (GitHub Pages) with docs, search, and syntax highlighting Add project website (GitHub Pages): docs, API reference, search Oct 23, 2026
…the reference, with 20 more verified examples
…ity, closed resources, include_once, __FUNCTION__, class_exists
…ride, unimplemented abstract methods, weaker visibility
@blacktrs
blacktrs merged commit 4bf9f91 into main Oct 24, 2026
17 of 18 checks passed
@blacktrs
blacktrs deleted the site branch October 24, 2026 08:05
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