Documentation for various IOXIO projects. Hosted at https://docs.ioxio.dev
You will need
- Node 18.x or 20.x
- PNPM 8.x
pre-commit installpnpm run devMake sure you test build as well, as not all things work in SvelteKit static generator.
pnpm run buildAnd you can test it e.g. with
cd build
python -m http.serverTo add a new guide, please follow these steps:
- Create a page in src/routes/guides
- Add information about this route into ./src/routes/guides/urls.ts
- If you need images, put them into
./static/guides/<guide_name>, and after adding an image make sure to run:The command above will modify images.json. Make sure to use variables for imagespnpm make-guide-images
srcattribute, not write it by hand. Also you need to enteraltvalues in the JSON file after it's updated.
There are several points to take into consideration when writing guides.
- Wrap entire guide content into
TableOfContentscomponent. EachSectionTitlewill become a section in page's Table of Contents. - Refer to other guides via
GUIDESobject imported from ./src/routes/guides/urls.ts. It prevents from accidental typos and synchronizes namings. - Use
GuideImagecomponent for images in a guide. After importing images.json you can find all the images associated with your guide, it prevents from typos and wrong URLs.