From 5ff0da0a719dd5e151004e41a5c18fbc7efb814a Mon Sep 17 00:00:00 2001
From: p4bl0
Date: Sat, 24 Jul 2010 13:22:39 +0200
Subject: added preprocessing possibilities for article (to enable use of
Markdown, textile or whatever)
---
README | 39 +++++++++++++++++++++++----------------
1 file changed, 23 insertions(+), 16 deletions(-)
(limited to 'README')
diff --git a/README b/README
index b8a514f..f18a888 100644
--- a/README
+++ b/README
@@ -14,7 +14,7 @@ fugitive README file
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
Update
- 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.
@@ -43,37 +43,44 @@ fugitive README file
Configuration
- There are three item in the "fugitive" section of the git config:
+ There are three paths in the "fugitive" section of the git config:
-
- "public-dir" is the path to the directory that will contain the generated
- html files. Defautlt value is ".", the root of the git repository. You
- could set it to "blog" for instance if you already have a static website
- under your git repos.
+ public-dir is the path to the directory that will contain the
+ generated html files. Defautlt value is ".", the root of the git
+ repository. You could set it to "blog" for instance if you
+ already have a static website under your git repos.
-
- "articles-dir" is the path where fugitive will look for published articles.
- Default value is "_articles". This path is relative to the root of the git
- repository, must be in it and must not start with ".".
+ articles-dir is the path where fugitive will look for published
+ articles. Default value is "_articles". This path is relative to
+ the root of the git repository, must be in it and must not start with
+ ".".
-
- "templates-dir" is the path where fugitive will look for templates files.
- Default value is "_templates". This path is relative to the root of the git
- repository, must be in it and must not start with ".".
+ templates-dire is the path where fugitive will look for templates
+ files. Default value is "_templates". This path is relative to
+ the root of the git repository, must be in it and must not start with
+ ".".
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.
+
Usage
General use
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".
Template system
*TODO*
--
cgit v1.2.3