RepoCloner Plugin for DocPad
Clone or update repositories into your DocPad website before generation
docpad install repocloner
Add the following inside your DocPad configuration file, changing the repo
values to what you desire:
plugins:
repocloner:
repos: [
name: 'Plugin Wiki'
path: 'src/documents/wiki'
branch: 'master'
url: 'https://github.com/docpad/docpad-plugin-repocloner.wiki.git'
]
This will update the repository on each initial generation.
If you would like to have repocloner update the repository during subsequent generations, you can do this via the DocPad API:
docpadInstance.action('generate', {populate:true, reload:true})
# populate will cause this plugin to fire, as it emits the populateCollections events
# reload will scan the file system for new files
You can discover the history inside the History.md
file
You can discover the contributing instructions inside the Contributing.md
file
Licensed under the incredibly permissive MIT License
Copyright © 2013+ Bevry Pty Ltd [email protected]