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 install
pnpm run dev
Make sure you test build
as well, as not all things work in SvelteKit static generator.
pnpm run build
And you can test it e.g. with
cd build
python -m http.server
To 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
src
attribute, not write it by hand. Also you need to enteralt
values in the JSON file after it's updated.
There are several points to take into consideration when writing guides.
- Wrap entire guide content into
TableOfContents
component. EachSectionTitle
will become a section in page's Table of Contents. - Refer to other guides via
GUIDES
object imported from ./src/routes/guides/urls.ts. It prevents from accidental typos and synchronizes namings. - Use
GuideImage
component 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.