Skip to content

Instantly share code, notes, and snippets.

@hamstar
Created November 7, 2012 04:20
Show Gist options
  • Select an option

  • Save hamstar/4029545 to your computer and use it in GitHub Desktop.

Select an option

Save hamstar/4029545 to your computer and use it in GitHub Desktop.
Merging braincase documentation from github into braincase

Copying user docs from Github into Braincase

Install Ruby and the tool

apt-get install ruby
wget https://raw.github.com/gist/3606882/ecefcd097bb8ae8bf163c30e643ecdc8f57abd53/md2cre.rb

Pull down the wiki repo

Use this connection string: https://github.com/hamstar/Braincase.wiki.git

Covert them to Creole

Using the ruby tool

cd Braincase.wiki
ruby md2cre.rb pagename.md

This should output a bunch of *.cre files. Copy them out and rename them:

cp *.cre ~/docs4bc

Copy those files to a windows box and run

ren *.cre *.txt

Copy those files into the Dokuwiki data/pages directory.

Then you will need a *.meta file for each of those files. Copy the default one from the repository in var/lib/dokuwiki/data/meta/start.meta and copy it to the names of the files.

E.G. a file called pages/start.txt needs a file in meta/start.meta for it to be accessible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment