A TransforMap DocPad Project
TransforMap aims at cartographing all alternative economies. Read on the blog Why?
- A POSIX complaint Operating System that runs Node.js.
- A terminal (console, command line, REPL) like
bash
which allows you to run commands by hand. If you are on Linux or Mac OS, you're most likely already equipped. git
Get started by opening such terminal and cloning this repository to your machine, i.e. by just copy-and-pasting the following commands.
git clone https://github.com/transformap/transformap.github.io.git ~/Repositories/github.com/transformap/transformap.github.io
All following commands have to be run within the root of the repository. Change there with
cd ~/Repositories/github.com/transformap.github.io
Also make sure to have working node
and npm
executables within your $PATH
.
If which node
and which npm
don't show a thing for you, our best advice is to use nvm
for that.
Also consult packages.json
and the remaining source code for more details.
Now there are two options for you to approach the code.
But before any, you also have to install docpad
and gulp
globally:
npm install -g docpad gulp
If you don't trust the published output in the master
branch, you can alter and recreate it yourself.
npm install --production
will install all required docpad
and gulp
modules.
Then
docpad generate
produces the website output in ./out
.
Use your favourite webserver (i.e. python -m SimpleHTTPServer
, nws
or http-server
) and browser to display the results.
Subsequently running gulp
independently recreates the static assetts in ./out/files/
gulp clean
or rm -rf out
help you to get rid of the already generated, respective outputs.
If you intend to advance further, use the following procedure instead.
You can install all requirements for stylus
, livereload
and gh-pages
by issuing
npm install
followed by (an equivalent to docpad run
)
npm start
Then browse to http://localhost:9778 to see the result. Now try editing some files, it's fun to watch the live reloader!
As of the plugin's documentation, deploying to GitHub Pages is as easy as
docpad deploy-ghpages --env static
You can then access the website under the domain specified in ./src/files/CNAME
.
Note This repository's
source
andmaster
branch layout targets a GitHub Pages deployment for an Organization Pages site. Also see User & Organization Pages.
Please refer to our Contributing Guidelines for information about
- Collaboration via Pull Requests
- Communication Channels and our
- Ideas for the Future
This work is licensed as described in LICENCE.md
within the same repository.