📖 Create static websites with Next.js and the Podlite markup language!
It is recommended to install Yarn through the npm package manager, which comes bundled with Node.js when you install it on your system.
Once you have npm installed you can run the following both to install and upgrade Yarn:
npm install --global yarn
and then:
yarn && yarn dev
- open link http://localhost:3000 after
Here is demo page from pub
directory.
You can edit pub/*.pod6 files and see changes after save.
All features like =Mermaid
, =picture
, =toc
for Podlite editor are available for podlite-web as well:
- make
index.pod6
with the following content:
=begin pod
=TITLE Personal blog
🚧 Web site is under construction. 🚧
=end pod
run the command:
docker run -it --rm -v ${PWD}:/app/pub -p 3000:3000 podlite/podlite-web dev
- open link http://localhost:3000
- after edit
index.pod6
web page will reload automatically
docker run --rm -v ${PWD}:/app/pub podlite/podlite-web export-zip > site.zip
- using
https://example.com
as domain name - customize Time Zone
- change default
index.pod6
path to subdirectory
cd examples/01-minimal
docker run --rm -v ${PWD}:/app/pub -p 3000:3000 \
-e 'SITE_URL=https://example.com' \
-e 'TZ=Europe/London' \
podlite/podlite-web export-zip > site.zip
POSTS_PATH='examples/01-minimal' yarn dev
POSTS_PATH='examples/02-pages' yarn dev
This example contains integration with React
components, customize styles and publish notes from Diary document.
POSTS_PATH='examples/03-blog' yarn dev
yarn
yarn dev
will spin up the demosite from pub
directory and watch changes to the files.
yarn export-zip > file.zip
Explore examples
dir for get more Podlite insights.
thank you!
This project is licensed under the terms of the MIT license.