Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

config docs

  • Loading branch information...
commit 2d2a1d5c5e077ca8770faeec8e33e1cca1308b74 1 parent fb5b846
@tj authored
Showing with 14 additions and 1 deletion.
  1. +12 −0 Readme.md
  2. +2 −1  bin/mad
View
12 Readme.md
@@ -61,6 +61,18 @@
- /usr/local/share/mad
- /usr/share/mad
+## Configuration
+
+ By default `mad(1)` installs and sources `/usr/local/etc/mad.conf` for its formatting. You may edit this file directly, or if you're scared of overwriting it
+ when updating `mad(1)` you can copy this file to something like `~/mad.conf` and `export MAD_CONFIG=~/mad.conf`.
+
+```
+heading: 1m
+code: 90m
+strong: 1m
+em: 4m
+```
+
## Screenshots
Jade manual:
View
3  bin/mad
@@ -4,6 +4,7 @@ VERSION="0.3.0"
REMOTE=git@github.com:visionmedia/mad-pages.git
REMOTE_MAD=git@github.com:visionmedia/mad.git
CONFIG=$(dirname $0)/../etc/mad.conf
+MAD_CONFIG=${MAD_CONFIG:-$CONFIG}
#
# Display <page> with lookup via MAD_PATH.
@@ -34,7 +35,7 @@ display() {
#
get() {
- cat $CONFIG | grep $1 | awk '{ print $2 }'
+ cat $MAD_CONFIG | grep $1 | awk '{ print $2 }'
}
#
Please sign in to comment.
Something went wrong with that request. Please try again.