Documentation site for the dStorage SDK, built with VitePress.
npm install
npm run docs:devnpm run docs:build
npm run docs:previewThis site is served at https://dstorage.pro/docs — a subpath of the main dstorage.pro, not GitHub Pages.
npm install
npm run docs:buildOutput lands in .vitepress/dist/. The base: '/docs/' setting in .vitepress/config.ts
means every asset/link in that output is already prefixed with /docs/, so the build only
works correctly when served under that subpath (not at the domain root).
Copy the build output into your hosting project's public/static directory, under whatever
subpath matches the base: '/docs/' config above — typically a docs/ subfolder:
rsync -a --delete .vitepress/dist/ <path-to-your-hosting-repo>/public/docs/(For example, if your hosting repo is checked out as a sibling directory, that path might look
like ../your-hosting-repo/public/docs/.) This only touches the docs/ subfolder; it doesn't
touch the rest of the hosting site's assets.
The landing page (index.md) carries a GA4 tag (gtag.js, measurement ID G-Z4HN3WGRBY)
injected via the transformHead hook in .vitepress/config.ts, scoped to that one page. It's
part of the build output, not something to hand-edit in .vitepress/dist/ or the deployed
public/docs/index.html — those get overwritten on every rebuild/copy.