Internal technical knowledgebase for Enfinity: https://enfinity-solutions.pages.internal.enfinity.com.hk/internal/technical-kb/
You'll need Node.js 18+ and npm
installed. If not, the recommended installation method is via nvm
.
Navigate to the project root, then run the following command to install project dependencies:
npm install
Build the documentation with the following command:
npm run build
Now serve the docs locally for a quick preview with the following command:
npm run serve
Please use the project forking workflow for submitting contributions and refrain from committing directly to the main
branch.
Submit a merge request when ready.
The following code formatting and quality checks are enforced on every commit via both a pre-commit hook (automatically installed by Husky whenever you run npm install
) and in CI/CD:
To avoid surprises during and after git commit
, we recommend running the following commands and addressing the reported issues prior to staging and committing your changes:
npx prettier . --write
npx markdownlint-cli2 --fix "docs/**/*.md"