Documentation site for Lacuna Software products, built with Docusaurus 3.
- Node.js >= 20.0
npm installThis installs all dependencies including
@easyops-cn/docusaurus-search-local, which powers the offline full-text search.
npm run startStarts the dev server at http://localhost:3000/. Most content changes hot-reload without restarting.
Note: The search index is not available in dev mode. To test search, do a full build and serve it locally (see below).
npm run buildGenerates the static site into the build/ directory. The search index is built during this step, so this is required to test search functionality.
To preview the built site locally:
npm run serveServes the production build at http://localhost:3000/.
Routing mirrors the classic DocFX site (docs.lacunasoftware.com):
| Content | Route |
|---|---|
Portuguese articles (docs/) |
/articles/<path> (also aliased at /pt-br/articles/<path>) |
English articles (docs-en/) |
/en-us/articles/<path> |
| .NET API reference | /api/<path> and /en-us/api/<path> |
With trailingSlash: false, each page is emitted as a flat <path>.html file, so
classic links ending in .html keep working. Articles that were reorganized into
new folders (e.g. signer/on-premises/configuracao/) carry a slug: in their
front matter pinning them to their classic URL. There is no automatic language
detection or redirect — language switching is manual via the navbar.
The production site is published via GitHub Pages / GitHub Actions (see
.github/workflows/deploy.yml). The site is built for https://docs.lacunasoftware.com
(baseUrl /) — under a different host prefix (e.g. github.io/docs-v2/) asset
paths will not resolve.
Consult the github actions for more information.
| Command | Description |
|---|---|
npm run clear |
Clear Docusaurus cache |
npm run typecheck |
Run TypeScript type checking |
npm run write-translations |
Extract i18n translation strings |