Package to transform Svelte docs to JSON fromat, friendly for API server.
Install in your project directory with command: npm install -D https://github.com/sveltejs-translations/transform-docs
.
Module exports the transform
method, which requre two arguments:
files
- path to directory where documentation folders are storedproject
- docs namespace
Code example:
const {transform} = require("transform-docs");
const json = await transform('content/docs', 'svelte');
- Run
npm run build
to fetch latest sources fromsveltejs/action-deploy-docs
repo and buildtransform-docs
module. - Run
npm version patch
and push commit to update package in the repo