- Place
deploy.sh
in{docpad folder}/bin/
- Create (or edit) a
.env
file in your docpad folder with the following values:
#!/bin/bash
DEPLOY_SOURCE_DIR="out/"
DEPLOY_DEST_DIR="~/public_html/"
DEPLOY_SERVER=deploy-server-name
for file in *; | |
do | |
mv "$file" "${file#*.}" | |
done |
'use strict'; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
docpad: { | |
files: [ "./src/**/*.*" ], | |
out: ["out"] | |
}, | |
watch: { |
/* | |
* angular-markdown-directive v0.1.0 | |
* (c) 2013 J. Harshbarger | |
* License: MIT | |
*/ | |
/* | |
Provider usage: | |
app.config(['markdownProvider', function(markdownProvider) { |
/* | |
* angular-marked-directive v0.0.1 | |
* (c) 2013 J. Harshbarger | |
* License: MIT | |
*/ | |
/* | |
Config: | |
app.config(['marked', function(marked) { |
/* Author: J. Harshbarger | |
Simple mechanism to link citation references with citation notes. This code will do two things: | |
1) Highlight a citation note (actually just add the `highlight` class to the parent) when a citation reference or note is clicked. | |
2) Citation note text (the anchors parent) is added to each citation reference as a popover. | |
Citation notes and references are linked using standard HTML has linking using the anchor tag. For both the citation note and citation reference the parent of the link is important. For example: | |
```js |
.ng-pageslide { | |
z-index: 1000; | |
position: fixed; | |
width: 0; | |
height: 0; | |
-moz-transition-property: width, height; /* Firefox 4 */ | |
-webkit-transition-property: width, height; /* Safari and Chrome */ | |
-o-transition-property: width, height; /* Opera */ | |
transition-property: width, height; | |
-webkit-transition-duration: 0.5s; /* Safari */ |
node_modules/ |
node_modules/ |