From abab1a23e32a24cb6ded69bf50d86c55cc1ac7a3 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 11 Dec 2022 15:22:46 -1000 Subject: [PATCH] ;doc: cli, ui, web: fix some links --- hledger-web/hledger-web.m4.md | 10 +++++----- hledger/hledger.m4.md | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hledger-web/hledger-web.m4.md b/hledger-web/hledger-web.m4.md index 0a57e1c50..e06896031 100644 --- a/hledger-web/hledger-web.m4.md +++ b/hledger-web/hledger-web.m4.md @@ -272,17 +272,17 @@ $ curl -s http://127.0.0.1:5000/transactions | python -m json.tool ``` Most of the JSON corresponds to hledger's data types; for details of what the fields mean, see the -[Hledger.Data.Json haddock docs](http://hackage.haskell.org/package/hledger-lib-1.17.1/docs/Hledger-Data-Json.html) +[Hledger.Data.Json haddock docs](https://hackage.haskell.org/package/hledger-lib-1.17.1/docs/Hledger-Data-Json.html) and click on the various data types, eg -[Transaction](http://hackage.haskell.org/package/hledger-lib-1.17.1/docs/Hledger-Data-Types.html#t:Transaction). -And for a higher level understanding, see the [journal manual](hledger.html). +[Transaction](https://hackage.haskell.org/package/hledger-lib-1.17.1/docs/Hledger-Data-Types.html#t:Transaction). +And for a higher level understanding, see the [journal docs](hledger.html#journal). In some cases there is outer JSON corresponding to a "Report" type. To understand that, go to the -[Hledger.Web.Handler.MiscR haddock](http://hackage.haskell.org/package/hledger-web-1.17.1/docs/Hledger-Web-Handler-MiscR.html) +[Hledger.Web.Handler.MiscR haddock](https://hackage.haskell.org/package/hledger-web-1.17.1/docs/Hledger-Web-Handler-MiscR.html) and look at the source for the appropriate handler to see what it returns. Eg for `/accounttransactions` it's -[getAccounttransactionsR](http://hackage.haskell.org/package/hledger-web-1.17.1/docs/src/Hledger.Web.Handler.MiscR.html#getAccounttransactionsR), +[getAccounttransactionsR](https://hackage.haskell.org/package/hledger-web-1.17.1/docs/src/Hledger.Web.Handler.MiscR.html#getAccounttransactionsR), returning a "`accountTransactionsReport ...`". [Looking up](https://hoogle.haskell.org/?hoogle=accountTransactionsReport) the haddock for that we can see that /accounttransactions returns an diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index ff3db9e28..60f4bd934 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -1367,7 +1367,7 @@ With the balance command's [`--budget` report](#budget-report). each periodic transaction rule generates recurring budget goals in specified accounts, and goals and actual performance can be compared. -See also: [Budgeting and Forecasting](budgeting-and-forecasting.html). +See also: [Budgeting and Forecasting](/budgeting-and-forecasting.html). # COST @@ -2136,7 +2136,7 @@ in a simple format readable by both hledger and humans. hledger's journal format is a compatible subset, mostly, of [ledger's journal format](http://ledger-cli.org/3.0/doc/ledger3.html#Journal-Format), -so hledger can work with [compatible](ledger.html#journal-format) +so hledger can work with [compatible](/ledger.html#journal-format) ledger journal files as well. It's safe, and encouraged, to run both hledger and ledger on the same journal file, eg to validate the results you're getting. @@ -2152,7 +2152,7 @@ ledger-mode or hledger-mode for Emacs, vim-ledger for Vim, and hledger-vscode for Visual Studio Code, make this easier, adding colour, formatting, tab completion, and useful commands. -See [Editor configuration](editors.html) at hledger.org for the full list. +See [Editor configuration](/editors.html) at hledger.org for the full list.