/** * app/main.c - Documentation viewer entry point. * * lcui-cli regenerates app/main.h on every build with: * - app_router_init() -- every route from sidebars.json * - app_init() -- lcui_init, resource loaders, widget registrations, * and the initial root_layout mount * - app_run() -- the LCUI main loop * * This main.c only orchestrates the entry point and registers the doc * viewer's semantic text aliases (h1-h6, p) before any page widget is * created. LCUI ships only a "text" prototype; without these aliases, *
/... widgets emitted from MDX would have no text renderer
* and their content would not paint.
*
* The aliases are registered AFTER app_init() (so lcui_init() has set up
* the prototype system) and BEFORE app_run() (so they exist before the
* router instantiates the first page widget). app_init() itself only
* mounts the root layout, which contains no h1/p widgets -- those
* appear only once a page is routed in.
*/
#include "main.h"
#include "components/home-grid.h"
#include "components/list.h"
#include "locale.h"
#include "theme.h"
#include