The Cli
npm -g install @publishkit/cli
// or
yarn -g add @publishkit/cli
# single file
kit export index.md
# multiple files
kit export kitrc.md blog/myarticle.md
Serve your kit folder locally in the browser. In your kit folder run:
kit serve -p 1337
The serve command is an alias of the node http-server module, but can automatically open up the browser. To specify a port run kit serve -p 1337
The ls
command is pretty handy and let you list all the files that match the include
& exclude
settings in your kitrc. Make sure you are in your vault
folder (the folder containing your markdown files) and run:
kit ls