Skip to content

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.

:::note, :::tip, :::caution, :::danger — work in .md and .mdx, no import needed:

Plain code blocks get the GitHub-style copy button automatically (expressive-code, incl. “Copied!” feedback):

-- ShiftHelper: minimal lifecycle
function on_init()
greg.ui.log_info("ShiftHelper ready")
end

For labeled snippets in .mdx, use <CodeSnippet>:

main.lualua
function on_init()
  greg.ui.log_info("ShiftHelper ready")
end

<Figure> renders image + caption in soft-neumorphism style. Until final screenshots land: Placehold.co placeholders in terminal look:

Placeholder: F1 Mod Hub screenshot
Placeholder — final screenshot: F1 Mod Hub with ShiftHelper entry.

Plain Markdown images (![alt](url)) automatically get rounded corners + shadow via the theme, but no caption.

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.

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.