Static website generator
Find a file
2025-08-14 07:29:40 +00:00
bin Add pug and html renderer. Implement hidden flag. 2025-08-14 07:29:40 +00:00
empty Add pug and html renderer. Implement hidden flag. 2025-08-14 07:29:40 +00:00
src Add pug and html renderer. Implement hidden flag. 2025-08-14 07:29:40 +00:00
types Add pug and html renderer. Implement hidden flag. 2025-08-14 07:29:40 +00:00
.gitignore Start project with the old POC 2024-08-15 19:52:42 +02:00
.npmignore Use typescript for the project 2025-02-24 18:46:31 +01:00
.nvim.lua Add pug and html renderer. Implement hidden flag. 2025-08-14 07:29:40 +00:00
package-lock.json Refactoring 2025-06-08 21:57:33 +02:00
package.json Add pug and html renderer. Implement hidden flag. 2025-08-14 07:29:40 +00:00
README.md v0.0.2 2024-10-17 23:51:03 +02:00
tsconfig.json Use typescript for the project 2025-02-24 18:46:31 +01: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
    --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

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

.sajt/config.yaml # default config, you can override values pointing secundary file using --config flag .sajt/media # copy all files as they are .sajt/layouts # pug files that describes the layout the pages

Development

Install local package

npm link sajt