sajt/README.md

48 lines
1.3 KiB
Markdown
Raw Normal View History

2024-10-11 11:11:40 +02:00
# Sajt
It is project that is runring your notes in Mardown format into website
Layout might be created in pug or html
Publishing throught SSH (ftp and dav is planned)
### Initialize project in current directory with default theme
sajt init
sajt init "Project name"
### start server
sajt build
--clean # remove local files that are not revelant to the project anymore
2024-10-17 23:51:03 +02:00
--publish or --serve -p 3000 --watch # Publish or serve with options -p PORT, --watch observe changes and rebuild the page if thare are any
--config config.yaml or -c config.yaml
--private # include private resources as well
2024-10-11 11:11:40 +02:00
sajt publish
--override # default is skip, if file exists, do not change it
--clean # remove remote files that not longer exists in the build folder
### Project structure
2024-10-17 23:51:03 +02:00
.sajt/config.yaml # default config, you can override values pointing secundary file using `--config` flag
2024-10-11 11:11:40 +02:00
.sajt/media # copy all files as they are
.sajt/layouts # pug files that describes the layout the pages
2025-08-14 10:09:25 +02:00
### Support
If you think the project is or might be usefull and wish me to work on it: https://buymeacoffee.com/artur.gurgul
2024-10-11 11:11:40 +02:00
### Development
Install local package
2025-08-14 10:09:25 +02:00
npm link sajt
----
This is my website which is generated by `sajt`: [https://artur.gurgul.pro](https://artur.gurgul.pro)