Docpad main configuration file is written in Coffee Script. Docpad lets you set collections that can be listed so you can build multi-blog site using Docpad.
Since Docpad is written in Node.js and is a NPM module that can be installed as a global package on your system. It’s really easy to install Docpad on Raspberry Pi.
Let’s get started.
- Installing Node.js on our Raspberry Pi here, if you already have Node.js installed on your system you can skip this step.
- Installing Docpadnpm install docpad -g
Once you have successfully installed Docpad you can go ahead and run
docpad run will list the skeletons available for creating a website.
You can choose no skeleton if you want to build your Docpad project from scratch.
Plugins can be installed by running
docpad install # example `docpad install marked`
Now your Raspberry Pi has been turned into a static website generator. If you have any questions feel free to leave a comment below.