mirror of
https://github.com/zadam/trilium.git
synced 2026-02-28 09:33:38 +01:00
This enhances the `build-docs` utility to allow running it via pnpm and packaging it as a Nix application. Changes include: - Added `build` and `cli` scripts to `apps/build-docs/package.json`. - Implemented a standalone CLI wrapper for documentation generation. - Added a `trilium-build-docs` package to the Nix flake for use in other projects. - Integrated `apps/build-docs` into the Nix workspace and build pipeline. These changes make the documentation build process more portable and easier to integrate into CI/CD pipelines outside of the main repository.
32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
/**
|
|
* The front script API is accessible to code notes with the "JS (frontend)" language.
|
|
*
|
|
* The entire API is exposed as a single global: {@link api}
|
|
*
|
|
* @module Frontend Script API
|
|
*/
|
|
|
|
/**
|
|
* This file creates the entrypoint for TypeDoc that simulates the context from within a
|
|
* script note.
|
|
*
|
|
* Make sure to keep in line with frontend's `script_context.ts`.
|
|
*/
|
|
|
|
export type { default as FAttachment } from "../../client/src/entities/fattachment.js";
|
|
export type { default as FAttribute } from "../../client/src/entities/fattribute.js";
|
|
export type { default as FBranch } from "../../client/src/entities/fbranch.js";
|
|
export type { default as FNote } from "../../client/src/entities/fnote.js";
|
|
export type { Api } from "../../client/src/services/frontend_script_api.js";
|
|
export type { default as BasicWidget } from "../../client/src/widgets/basic_widget.js";
|
|
export type {
|
|
default as NoteContextAwareWidget
|
|
} from "../../client/src/widgets/note_context_aware_widget.js";
|
|
export type { default as RightPanelWidget } from "../../client/src/widgets/right_panel_widget.js";
|
|
|
|
import FrontendScriptApi, { type Api } from "../../client/src/services/frontend_script_api.js";
|
|
|
|
|
|
// @ts-expect-error - FrontendScriptApi is not directly exportable as Api without this simulation.
|
|
export const api: Api = new FrontendScriptApi();
|