Static website generator
Find a file
Artur Gurgul d086c1d493 WIP
2024-10-11 11:11:40 +02:00
bin WIP 2024-10-11 11:11:40 +02:00
empty WIP 2024-10-11 11:11:40 +02:00
.gitignore Start project with the old POC 2024-08-15 19:52:42 +02:00
.npmignore Start project with the old POC 2024-08-15 19:52:42 +02:00
index.js WIP 2024-10-11 11:11:40 +02:00
markdown.js WIP 2024-10-11 11:11:40 +02:00
package-lock.json WIP 2024-10-11 11:11:40 +02:00
package.json WIP 2024-10-11 11:11:40 +02:00
project.js WIP 2024-10-11 11:11:40 +02:00
README.md WIP 2024-10-11 11:11:40 +02:00
serve.js WIP 2024-10-11 11:11:40 +02:00
site WIP 2024-10-11 11:11:40 +02:00
ssh.js WIP 2024-10-11 11:11:40 +02:00
utils.js WIP 2024-10-11 11:11:40 +02:00
watch.js WIP 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
    --publish or --serve -p 3000 --watch # Publish or serve with options -p PORT, --watch observe changes and rebuild the page if thare are any  

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 .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