Skip to content

Commit

Permalink
config docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 19, 2012
1 parent fb5b846 commit 2d2a1d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Readme.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@
- /usr/local/share/mad - /usr/local/share/mad
- /usr/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 ## Screenshots


Jade manual: Jade manual:
Expand Down
3 changes: 2 additions & 1 deletion bin/mad
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ VERSION="0.3.0"
REMOTE=git@github.com:visionmedia/mad-pages.git REMOTE=git@github.com:visionmedia/mad-pages.git
REMOTE_MAD=git@github.com:visionmedia/mad.git REMOTE_MAD=git@github.com:visionmedia/mad.git
CONFIG=$(dirname $0)/../etc/mad.conf CONFIG=$(dirname $0)/../etc/mad.conf
MAD_CONFIG=${MAD_CONFIG:-$CONFIG}


# #
# Display <page> with lookup via MAD_PATH. # Display <page> with lookup via MAD_PATH.
Expand Down Expand Up @@ -34,7 +35,7 @@ display() {
# #


get() { get() {
cat $CONFIG | grep $1 | awk '{ print $2 }' cat $MAD_CONFIG | grep $1 | awk '{ print $2 }'
} }


# #
Expand Down

0 comments on commit 2d2a1d5

Please sign in to comment.