From 5ff0da0a719dd5e151004e41a5c18fbc7efb814a Mon Sep 17 00:00:00 2001
From: p4bl0
git clone git://gitorious.org/fugitive/fugitive.git fugitive
- Then simply go in the newly created directory: cd fugitive
, and
+ Then go in the newly created directory: cd fugitive
, and
run the build script: ./build.sh
.
This will generate an executable file "fugitive".
@@ -35,7 +35,7 @@ fugitive README file
- Simply run fugitive --install-hooks <dir>
.
+ Run fugitive --install-hooks <dir>
.
This will only (re)install fugitive hooks scripts.
If <dir> isn't specified then the current working directory is used.
- There are three item in the "fugitive" section of the git config: + There are three paths in the "fugitive" section of the git config:
NOTE: You must NOT put a trailing '/' at the end of any of those paths.
++ If you want your article to be preprocessed by an external tool (markdown, + textile...) you need to set preproc to a command line that will take + the file path as argument and write to stdout. +
Article you want to publish should be file without the .html extension in the - "articles-dir" directory (see CONFIGURATION). + articles-dir directory (see CONFIGURATION).
The first line of the file will be used as title and the rest of the file as @@ -81,8 +88,8 @@ fugitive README file
/!\ WARNINGS:
- DO NOT CREATE AN ARTICLE FILE NAMED "archives".
- DO NOT CREATE AN ARTICLE FILE NAMED "index".
+ DO NOT CREATE AN ARTICLE FILE NAMED "archives".
+ DO NOT CREATE AN ARTICLE FILE NAMED "index".
*TODO*
diff --git a/install.sh b/install.sh index 8505ef9..a24f3c3 100644 --- a/install.sh +++ b/install.sh @@ -34,10 +34,11 @@ fugitive_install() { echo -n "Creating default directory tree... " mkdir -p _drafts _articles _templates echo "done." - echo -n "Adding default directory paths to git config... " + echo -n "Adding default directory paths and settings to git config... " git config --add --path fugitive.templates-dir "_templates" git config --add --path fugitive.articles-dir "_articles" git config --add --path fugitive.public-dir "." + git config --add --path fugitive.preproc "" echo "done." echo -n "Writing default template files... " fugitive_write_template > _templates/article.html <