Article Kit for Authors
This is how the wiki stays readable as content grows: short paths (/docs/lua/…),
one component per purpose, placeholders until final screenshots land.
Callouts
Section titled “Callouts”:::note, :::tip, :::caution, :::danger — work in .md and .mdx,
no import needed:
Code with copy button
Section titled “Code with copy button”Plain code blocks get the GitHub-style copy button automatically (expressive-code, incl. “Copied!” feedback):
-- ShiftHelper: minimal lifecyclefunction on_init() greg.ui.log_info("ShiftHelper ready")endFor labeled snippets in .mdx, use <CodeSnippet>:
function on_init()
greg.ui.log_info("ShiftHelper ready")
endCopied!Images and containers
Section titled “Images and containers”<Figure> renders image + caption in soft-neumorphism style. Until final
screenshots land: Placehold.co placeholders in terminal look:
Plain Markdown images () automatically get rounded corners +
shadow via the theme, but no caption.
Language-specific sections
Section titled “Language-specific sections”The CodingLang filter (global: cards, sidebar, articles) hides
<div data-langs="…"> containers. Languages: lua, csharp, js,
rust, modelling. Example:
Lua only: greg.on("greg.Group.Method", callback) subscribes to events —
does not apply to C#.
C# only: Harmony patches run through gregCore.Patches — does not
apply to Lua.
Rule: always write data-langs containers so the page still makes sense
with the filter on (no dangling references). Code blocks are deliberately
not auto-filtered.
Search
Section titled “Search”The help search queries — when configured via PUBLIC_VECTOR_SEARCH_URL —
the vector graph DB first (with processing/enrichment, incl. lang and
audience context), otherwise Pagefind directly. Contract:
POST { query, lang, audience } → { results: [{ title, url, snippet }] }.
Details: src/lib/vector-search.ts.