Skip to content

Commit 2f76300

Browse files
authored
Merge pull request #65 from afh/clean-up
Clean up
2 parents 2b46354 + 77aec59 commit 2f76300

File tree

11 files changed

+49
-227
lines changed

11 files changed

+49
-227
lines changed

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

flake.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
src = ledger;
5959

6060
nativeBuildInputs = with pkgs; [
61-
cmake groff texinfo tex
61+
cmake groff ghostscript texinfo tex
6262
];
6363

6464
enableParallelBuilding = false;
@@ -68,6 +68,14 @@
6868
cmakeFlags = [ "-DBUILD_WEB_DOCS:BOOL=ON" "-Wno-dev" ];
6969

7070
buildFlags = "doc";
71+
72+
postBuild = ''
73+
pdfroff -man -dpaper=letter -P-pletter $src/doc/ledger.1 > ledger.1.pdf
74+
'';
75+
76+
postInstall = ''
77+
cp ledger.1.pdf $out/share/doc/ledger
78+
'';
7179
};
7280

7381
doc-ledger-mode = pkgs.stdenvNoCC.mkDerivation rec {

source/about.html.md

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -5,55 +5,19 @@ title: About the site - Ledger
55
# About the site
66

77
The ledger-cli.org site is kept in the
8-
[ledger.github.io](https://github.com/ledger/ledger.github.io) repo ([changes](https://github.com/ledger/ledger.github.io/commits/master)).
8+
[ledger.github.io](https://git.ledger-cli.org/ledger.github.io) repo ([changes](https://git.ledger-cli.org/ledger.github.io/commits/master)).
99
It is static html generated from markdown by [middleman](https://middlemanapp.com).
1010
Commits will normally appear on ledger-cli.org immediately, otherwise on the hour.
1111

1212
Documentation comes from the
13-
[ledger docs in the `master`](https://github.com/ledger/ledger/tree/master/doc)
13+
[ledger docs in the `master`](https://git.ledger-cli.org/ledger/tree/master/doc)
1414
branch.
1515

1616
There is also a wiki, that of the ledger repo on GitHub, with a convenient
1717
url alias: [wiki.ledger-cli.org](https://wiki.ledger-cli.org).
1818

19-
The site is built using [GitHub Actions](https://github.com/ledger/ledger.github.io/actions) and
19+
The site is built using [GitHub Actions](https://git.ledger-cli.org/ledger.github.io/actions) and
2020
deploys to [GitHub Pages](https://pages.github.com).
2121

22-
We use this small [Lambda@Edge](https://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html) function to serve redirects and to redirect bare domain to `www`:
23-
24-
'use strict';
25-
26-
exports.handler = (event, context, callback) => {
27-
const request = event.Records[0].cf.request;
28-
const host = request.headers.host[0].value;
29-
30-
if (host == "www.ledger-cli.org") {
31-
callback(null, request);
32-
} else {
33-
var redirectTarget = 'https://www.ledger-cli.org';
34-
35-
if (host == "git.ledger-cli.org") {
36-
redirectTarget = "https://github.com/ledger/ledger";
37-
} else if (host == "list.ledger-cli.org") {
38-
redirectTarget = "https://groups.google.com/group/ledger-cli";
39-
} else if (host == "wiki.ledger-cli.org") {
40-
redirectTarget = "https://github.com/ledger/ledger/wiki";
41-
}
42-
43-
var response = {
44-
status: '302',
45-
statusDescription: 'Found',
46-
headers: {
47-
location: [{
48-
key: 'Location',
49-
value: redirectTarget,
50-
}],
51-
},
52-
};
53-
54-
callback(null, response);
55-
}
56-
};
57-
58-
59-
<!-- The current webmaster is <a href="mailto:[email protected]">Pete Keen</a>. All help is welcome. -->
22+
[Cloudflare Redirect Rules](https://developers.cloudflare.com/rules/url-forwarding/single-redirects/examples/)
23+
are used to serve `git`, `wiki`, and `list` subdomain redirects and to redirect the apex domain to `www`.

source/contribute.html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Searching the list archive is another good way to find answers.
1919
Please report bugs at the [GitHub issue page](https://github.com/ledger/ledger/issues).
2020

2121
**Code**
22-
The [ledger source code](https://git.ledger-cli.org/) is available on GitHub, contributions welcome!
22+
The [ledger source code](https://git.ledger-cli.org/ledger) is available on GitHub, contributions welcome!
2323

2424
**Website**
2525
[About ledger-cli.org](about.html) documents this site so you can help improve it.

source/docs.html.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ title: Documentation - Ledger
88
.dim, .dim a:link, .dim a:visited { color:#ccc; }
99
</style>
1010

11-
* <b><a href="doc/ledger3.html">Ledger 3 manual</a></b> and <a href="doc/ledger3.pdf">pdf</a> <span class="dim">(<a href="https://github.com/ledger/ledger/commits/master/doc/ledger3.texi">changes</a>)
12-
* <a href="doc/ledger.1.html">Ledger 3 man page</a> <span class="dim">(<a href="https://github.com/ledger/ledger/commits/master/doc/ledger.1">changes</a>)
13-
* <a href="doc/ledger-mode.html">ledger-mode manual</a> and <a href="doc/ledger-mode.pdf">pdf</a> <span class="dim">(<a href="https://github.com/ledger/ledger-mode/commits/master/doc/ledger-mode.texi">changes</a>)
11+
* <b><a href="doc/ledger3.html">Ledger 3 manual</a></b> and <a href="doc/ledger3.pdf">pdf</a> <span class="dim">(<a href="https://git.ledger-cli.org/ledger/commits/master/doc/ledger3.texi">changes</a>)
12+
* <a href="doc/ledger.1.html">Ledger 3 man page</a> and <a href="doc/ledger.1.pdf">pdf</a> <span class="dim">(<a href="https://git.ledger-cli.org/ledger/commits/master/doc/ledger.1">changes</a>)
13+
* <a href="doc/ledger-mode.html">ledger-mode manual</a> and <a href="doc/ledger-mode.pdf">pdf</a> <span class="dim">(<a href="https://git.ledger-cli.org/ledger-mode/commits/master/doc/ledger-mode.texi">changes</a>)
1414

1515
## External links
1616

1717
* The [ledger wiki](https://wiki.ledger-cli.org)
18-
<span class=dim> ([changes](https://github.com/ledger/ledger/wiki/_history)) </span>
18+
<span class=dim> ([changes](https://wiki.ledger-cli.org/_history)) </span>
1919
* [ledger on Wikipedia](https://en.wikipedia.org/wiki/Ledger_%28software%29)
2020
<span class=dim> ([changes](https://en.wikipedia.org/w/index.php?title=Ledger_%28software%29&action=history)) </span>
2121
* John gave a nice audio introduction to Ledger in the [2011/01/26 FLOSS Weekly show](https://twit.tv/floss150)

source/download.html.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ title: Download - Ledger
44

55
# Getting ledger
66

7-
The [ledger source code](https://git.ledger-cli.org/) is available on GitHub.
8-
[![Build Status master](https://img.shields.io/github/actions/workflow/status/ledger/ledger/cmake.yml?branch=master&label=master&style=flat)](https://github.com/ledger/ledger/actions/workflows/cmake.yml)
9-
[![Status](https://img.shields.io/badge/status-active-brightgreen.svg?style=flat)](https://github.com/ledger/ledger/pulse/monthly)
7+
The [ledger source code](https://git.ledger-cli.org/ledger) is available on GitHub.
8+
[![Build Status master](https://img.shields.io/github/actions/workflow/status/ledger/ledger/cmake.yml?branch=master&label=master&style=flat)](https://git.ledger-cli.org/ledger/actions/workflows/cmake.yml)
9+
[![Status](https://img.shields.io/badge/status-active-brightgreen.svg?style=flat)](https://git.ledger-cli.org/ledger/pulse/monthly)
1010
[![License](https://img.shields.io/badge/license-BSD-blue.svg?style=flat)](https://opensource.org/licenses/BSD-3-Clause)
11-
[![GitHub release](https://img.shields.io/github/release/ledger/ledger.svg?style=flat)](https://github.com/ledger/ledger/releases)
11+
[![GitHub release](https://img.shields.io/github/release/ledger/ledger.svg?style=flat)](https://git.ledger-cli.orgr/ledger/releases)
1212

1313
Several people in the Open Source community have spent time creating
1414
Ledger binaries for specific platforms. If you discover others or would

source/features.html.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ title: Features - Ledger
66

77
Ledger is a powerful, double-entry accounting system that is accessed
88
from the UNIX command-line. This may put off some users, as there is no
9-
flashy UI, but for those who want unparalleled reporting access to their
10-
data, there really is no alternative.
9+
flashy user-interface (UI), but for those who want unparalleled
10+
reporting access to their data, there really is no alternative.
1111

12-
Here are some of the features of Ledger which set it apart from other
13-
accounting systems:
12+
Some of the features of Ledger which set it apart from other
13+
accounting systems include:
1414

15-
- Ledger never creates or modifies your data. Your entries are kept in
16-
a text file that **you maintain**, and you can rest assured, no
17-
automated tool will ever change that data.
15+
- Ledger never creates or modifies your data. Your entries are kept in
16+
a text file that **you maintain**, and you can rest assured, no
17+
automated tool will ever change that data.
1818

1919
- The amount of data required by Ledger is minimal. It figures out from
2020
looking at your data what you mean by it and how you want it reported
@@ -28,19 +28,19 @@ accounting systems:
2828
accuracies of your entries at every run; you won’t ever run into
2929
problems with “unaccounted” sums in an account.
3030

31-
- Ledger is 100% currency-agnostic. You can store multiple currencies
32-
in any account, convert between them, or even pay in one currency
33-
and receive change in another.
31+
- Ledger is 100% currency-agnostic. You can store multiple currencies
32+
in any account, convert between them, or even pay in one currency
33+
and receive change in another.
3434

35-
- Ledger is international. UTF8 is accepted anywhere in data files,
36-
Ledger uses ISO format dates, attaches no meaning to the naming of
37-
accounts, and can accept data in either US or European decimal
38-
formats. It will report currencies back to you following the manner
39-
of your own entries.
35+
- Ledger is international. UTF8 is accepted anywhere in data files,
36+
Ledger uses ISO format dates, attaches no meaning to the naming of
37+
accounts, and can accept data in either US or European decimal
38+
formats. It will report currencies back to you following the manner
39+
of your own entries.
4040

41-
- Ledger uses a simple set of base commands which can be extended in
42-
countless ways. You can create monthly reports, average reports,
43-
check account balances, reconcile accounts, keep track of capital
44-
gains on stocks, etc.
41+
- Ledger uses a simple set of base commands which can be extended in
42+
countless ways. You can create monthly reports, average reports,
43+
check account balances, reconcile accounts, keep track of capital
44+
gains on stocks, etc.
4545

4646
Read the [docs](docs.html) to learn more.

source/index.html.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: ledger, a powerful command-line accounting system
77
Ledger is a powerful, double-entry accounting system that is accessed from
88
the UNIX command-line. Ledger, begun in 2003, is written by John Wiegley
99
and released under the BSD license. It has also inspired several
10-
[ports](https://github.com/ledger/ledger/wiki/Ports) to other languages.
10+
[ports](https://wiki.ledger-cli.org/Ports) to other languages.
1111

1212
To get started with Ledger, add transactions to a text file in Ledger’s
1313
own textual format. Here’s what a single transaction might look like:
@@ -18,10 +18,10 @@ own textual format. Here’s what a single transaction might look like:
1818
Liabilities:MasterCard $-10.00
1919
```
2020

21-
You use the `ledger` command line program to see the balance of your accounts:
21+
You use the `ledger` command-line program to see the balance of your accounts:
2222

2323
```
24-
$ ledger -f your-file.dat balance
24+
$ ledger -f example.dat balance
2525
$10.00 Expenses:Auto:Gas
2626
$-10.00 Liabilities:MasterCard
2727
--------------------
@@ -31,7 +31,7 @@ $ ledger -f your-file.dat balance
3131
or the history of a particular account:
3232

3333
```
34-
$ ledger -f your-file.dat register Expenses
34+
$ ledger -f example.dat register Expenses
3535
15-Oct-12 Exxon Expenses:Auto:Gas $10.00 $10.00
3636
```
3737

source/layouts/layout.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</head>
88
<body>
99
<div id="content">
10-
<a href="https://git.ledger-cli.org" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><title>Fork me on GitHub</title><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
10+
<a href="https://git.ledger-cli.org/ledger" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><title>Fork me on GitHub</title><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
1111
<div id="header">
1212
<div id="logo">
1313
<a href="/" style="color:black;">ledger</a>

source/style.css

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)