Getting started
Install
npm install @staticbolt/core @staticbolt/docs @staticview/ui@staticview/ui provides sv-accordion, used by the sidebar, the mobile table of contents, and collapsible callouts.
Project layout
docs/ .staticbolt.ts tsconfig.json pages/ markdown content, becomes the site sources/ layouts/document.layout.html styles/docs.css styles/theme.css parts/social-icons/ assets/favicon.svgtsconfig.json declares the aliases the layout and config use:
{ "compilerOptions": { "baseUrl": ".", "paths": { "~/*": ["./pages/*"], "@/*": ["./*"], "@assets/*": ["./sources/assets/*"], "@styles/*": ["./sources/styles/*"], "@layouts/*": ["./sources/layouts/*"], "@parts/*": ["./sources/parts/*"] } }}Steps
- Copy the config from Configuration into
.staticbolt.ts. - Copy the layout from Layout into
sources/layouts/document.layout.html. - Create the two stylesheets from Styles.
- Add
sources/parts/social-icons/social-icons.part.htmlwith your links, or remove the twoslot="icons"parts from the layout. - Put a
favicon.svginsources/assets. - Write
pages/index.md.
npx staticbolt servenpx staticbolt buildThe dev server runs on port 3000 and rebuilds on change.