Skip to content
The public website for the ledger command-line accounting tool. http://ledger-cli.org
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
2.6
3.0
Branch-and-bug-policies.markdown
Makefile
Multiple-currencies.markdown
On-reconciling.markdown
Ports.markdown
README.markdown
Roadmap-for-3.0.markdown
Terminology.markdown
Users.markdown
index.markdown
site.tmpl
style.css

README.markdown

About the site

This is the website for ledger, the command-line accounting tool.

Commits to the ledger-website repo are applied immediately to ledger-cli-org (and announced on #ledger). You can get commit access by asking.

The main site is static html pages rendered with pandoc and make. site.tmpl is the pandoc template defining layout for the main site. To preview changes locally before committing, install pandoc, run make, and browse index.html.

Version-specific documentation is pulled from the main ledger repo and has urls like ledger-cli.org/3.0/....

Site config that's not kept in the repo:

Apache vhost:

<VirtualHost *>
  ServerName ledger-cli.org
  ServerAlias www.ledger-cli.org mail.ledger-cli.org
  RewriteEngine on
  RewriteRule ^(.*) /repos/ledger-website$1 [L]
</VirtualHost>

Angel (daemon manager) config:

# listen for github post-receive notifications, pull latest site
[ledger-website-listener]
directory  /repos/ledger-website
stdout     /repos/ledger-website/github-listener.log
stderr     /repos/ledger-website/github-listener.log
exec       github-listener.py 8080 'sudo -u simon git pull && make'
delay      1

Cron rules:

# pull latest ledger docs
*/15 * * * * simon  cd /repos/ledger;         git pull -q && cd doc && make --quiet
*/15 * * * * simon  cd /repos/ledger2.6;      git pull -q && make --quiet
# pull latest site, fallback in case github listener not running
*/15 * * * * simon  cd /repos/ledger-website; git pull -q && make --quiet
Something went wrong with that request. Please try again.