This is the official documentation site for Plexicus Docs, built to provide comprehensive information on our APIs, features, and usage.
To set up and run the project locally, please ensure you have Node.js and npm installed.
Clone the repository:
git clone https://github.com/plexicus/docs.git
cd your-repoInstall dependencies:
npm installThe following npm scripts are available for common development tasks:
-
npm startStarts a local development server and opens the site in your browser. The server features hot-reloading for a fast development loop. -
npm run buildCompiles the Docusaurus site into static HTML, CSS, and JavaScript files, ready for deployment. The output is placed in thebuild/directory. -
npm run build:optSpecifically optimized for large projects, increasing the Node.js memory limit to 20GB to prevent build failures. -
npm run serveServes the production build from thebuild/directory locally. Useful for testing the final, optimized version of the site before deployment. -
npm run clearDeletes the.docusaurus/andbuild/directories to perform a clean start.
-
npm run write-translationsExtracts all translatable strings from your documents and saves them to thei18n/directory, ready for translation. -
npm run write-translations:allRuns a shell script that specifically handles the translation process for all supported languages.
Our API documentation is generated from OpenAPI specifications.
-
npm run gen-api-docsGenerates API documentation based on the.yamlfiles in theapi-swagger/directory. -
npm run clean-api-docsDeletes all generated API documentation files.
-
npm run swizzleCustomize core Docusaurus components by "swizzling" them into your project. -
npm run deployDeploys the built site to your configured hosting provider. -
npm run typecheckRuns the TypeScript compiler to check for type errors. -
npm run write-heading-idsAdds explicit heading IDs to all markdown and MDX files.