Commit Graph

4256 Commits

Author SHA1 Message Date
Simon Michael
443b870481 site: fix man page TOCs, add combined man page 2016-04-07 08:55:21 -07:00
Simon Michael
bba7909165 doc: m4-based man pages pt 2, missing files 2016-04-06 09:03:01 -07:00
Simon Michael
1aa1a92f96 doc: m4manpages should also depend on m4 includes 2016-04-06 08:51:14 -07:00
Simon Michael
f3a2690f7c doc: experimental m4-based man page build process
The new m4manpages, m4webmanpages targets generate nroff and markdown
man pages via an alternate, excitingly complicated process, involving
shake, hakyll, pandoc *and* m4. Currently just the hledger man page is
processed this way, and the output (hledger/doc/m4-hledger.1,
site/m4-hledger.1.md) is equivalent to that of the non-m4 process.

Pro: selecting and massaging web/man content may be smoother with m4
than with pandoc filters. File inclusion allows documentation to be
broken up into chunks, which may be easier to edit, reorganize and
reuse. Macros could reduce boilerplate and enable more featureful and
attractive docs.

Con: the non-m4 process was simpler, easier to for contributors to
understand and working well enough. YAGNI.
2016-04-06 08:44:59 -07:00
Simon Michael
f3fb1a89f2 doc: exclude web content from nroffs 2016-04-06 08:20:27 -07:00
Simon Michael
24c2e7d471 doc: move man page source and nroff to PKG/doc/ 2016-04-06 08:16:38 -07:00
Simon Michael
74a29f70bf site: docs: cleanup 2016-04-05 16:39:58 -07:00
Simon Michael
750c4f0f31 tools: use main stackage snapshot for hakyll too 2016-04-05 16:21:45 -07:00
Simon Michael
a5d5b05b66 tools: shake cleanup, webmanual target fixup 2016-04-05 16:17:08 -07:00
Simon Michael
a0e62a1d89 tools: shake cleanup, webmanual target fixup 2016-04-05 16:17:08 -07:00
Simon Michael
2089168e7d doc: update hledger_journal.5 man page 2016-04-05 16:17:08 -07:00
Simon Michael
eab6b110bc tools: simplify doc filtering class names 2016-04-05 16:17:08 -07:00
Simon Michael
7163a730fd tools: shake cleanup, webmanual target fixup 2016-04-05 16:17:08 -07:00
Simon Michael
9b492325da tools: rename pandoc filters 2016-04-05 16:17:08 -07:00
Simon Michael
7e517a4cda tools: shake cleanup, webmanual target 2016-04-05 16:17:08 -07:00
Simon Michael
099870e96a tools: shake file requires pandoc, filters use current snapshot 2016-04-05 16:17:08 -07:00
Simon Michael
9439d1a611 require stackage nightly, for newer pandoc/swagger
Move to a newer stackage snapshot. This helps ensure a new-enough pandoc
will more be available for doc building without needing extra
compilation. Also we get to use the latest swagger and servant-swagger
for hledger-api, but we have to go to stackage nightly. With luck there
will be a lts 6 before next hledger release.
2016-04-05 16:17:08 -07:00
Simon Michael
df3cb6d334 tools: use latest pandoc, avoiding SoftBreak error
Require a recent snapshot with the latest pandoc-types for the pandoc
filters (may be different from the snapshot used to build hledger).
2016-04-05 16:17:08 -07:00
Simon Michael
01c0f40d00 site: devguide: fix github haskell star ranking 2016-04-05 13:35:31 -07:00
Simon Michael
508fc68c9e site: devguide: link github haskell star ranking 2016-04-05 13:17:57 -07:00
Simon Michael
bded4b9221 tools: expand shake file, show help by default 2016-04-05 06:59:52 -07:00
Simon Michael
f331ebec16 ui, api: switch to the quicker-building microlens
This may not make much difference since dependencies brick and
servant-swagger still depend on lens, but that might change.
2016-04-04 17:50:58 -07:00
Sergei Trofimovich
6f65aa20f8 hledger-ui.cabal: allow brick-0.5
Signed-off-by: Sergei Trofimovich <siarheit@google.com>
2016-04-04 17:20:22 -07:00
Simon Michael
31a754544a journal: parse account directives
We now parse account directives, like Ledger's. We don't do anything
with them yet. The default parent account feature must now be spelled
"apply account"/"end apply account".
2016-04-04 11:35:39 -07:00
Simon Michael
25cd65442a cli: fix opts parsing regressions from feb
Since commit 7aab544, "-f -" before the command broke command
detection, causing spurious "no such option" errors (and breaking
about 70 functional tests which neither I nor travis noticed).
2016-04-04 11:35:39 -07:00
Simon Michael
c6f1371251 home: fix twitter widget id, exclude #TheJoker 2016-04-04 07:39:57 -07:00
Simon Michael
664d5923e4 update windows download links to UPX-compressed EXEs 2016-03-21 08:45:02 -07:00
Simon Michael
a93f478792 devguide: update twitter links 2016-03-21 08:44:20 -07:00
Simon Michael
b1af0daf95 twitter widget: add #plaintextaccounting, #hledger 2016-03-21 08:20:58 -07:00
Simon Michael
19fe724b56 docs: link to new how-to (#331) 2016-03-09 07:17:02 -08:00
Simon Michael
8b2ddbc38b docs: clarify dotted account name example (#331) 2016-03-09 07:16:04 -08:00
Simon Michael
99444388af site: download: fix gentoo command 2016-03-02 18:07:13 -08:00
Simon Michael
6c02515bb1 site: download: better gentoo command 2016-03-02 17:41:32 -08:00
Simon Michael
a13910f70f fix compilation 2016-03-02 17:05:56 -08:00
Simon Michael
238545e5df site: devguide: clean up status "shields"
Eg drop the flaky github ones, and reduce layout popping by moving them
to the end of lines/sections and specifying image dimensions (requires
pandoc 1.16). The image widths can change, hopefully I've specified the
max width in each case.
2016-02-22 09:12:25 -08:00
Simon Michael
35b58d31b0 site: devguide: whitespace 2016-02-22 09:12:12 -08:00
Simon Michael
c700a5524f tools: require pandoc 1.16 for the site
For the {width=100 height=20} image attribute syntax.
Also give it a stack.yaml of its own for now, since hledger
is stuck at lts 4.2 for hledger-api.
2016-02-22 09:09:02 -08:00
Simon Michael
0912d5ebbe tools: git ignore 2016-02-21 12:43:53 -08:00
Simon Michael
671ade5062 site: simplify, clean up, refresh
- Docs are now collected on a single page
- Lots of copy updates
- The front page is less cluttered
- More whitespace at the sides
- The (still WIP) man pages are now linked
- Describe and link to plaintextaccounting.org
2016-02-21 12:39:32 -08:00
Simon Michael
848309c3f9 site: home: normal font size, remove screencast 2016-02-21 07:11:41 -08:00
Simon Michael
9354687f4f doc: commit a missing nroff file 2016-02-21 02:42:11 -08:00
Simon Michael
a1340b6515 doc: fixup for web manual 2016-02-21 02:38:58 -08:00
Simon Michael
931a1d5b9e hlint 2016-02-21 02:37:59 -08:00
Simon Michael
5acb82e627 notes 2016-02-21 02:37:03 -08:00
Simon Michael
8fe2cd7ece whitespace 2016-02-21 02:34:36 -08:00
Simon Michael
2dbe07a666 doc: mark up man pages for man/web rendering
And commit the latest nroff output. It'll need retesting.
2016-02-21 02:32:40 -08:00
Simon Michael
e1c9e51775 tools: new build system for man/web docs
Goal:

Generate man pages and web docs from one source.

Current plan:

The master docs for each package are now the pandoc-style
manpage-markdown files in the package directories -
hledger/hledger.1.md, hledger-lib/hledger_journal.5.md, etc.

Parts of these will be marked as web-only, and parts as man-only, using
divs recognisable by custom pandoc filters.

When generating man pages we strip the web-only parts, and all html
blocks, inline html and hyperlinks.

When generating web docs we strip the man-only parts and apply any other
tweaks needed for easy presentation, perhaps combining them into a
single web page similar to the old user manual.

Shake:

This was hard to do with GNU Make, and so I've introduced Shake, which
is working very well. Both coexist for now but it's probably time to
switch.
2016-02-21 02:21:41 -08:00
Simon Michael
ed0ec6d849 Revert "doc: try making hledger-ui web manual from man page"
This wasn't right, leave the UI doc in the manual as it was for now.
2016-02-20 23:58:07 -08:00
Simon Michael
6259701842 prettify/hlint 2016-02-20 20:12:02 -08:00
Simon Michael
494c74f81b tools: hide package.yaml files to fix travis
The latest stack runs a buggy hpack that generates invalid
cabal files. Rename them to future-package.yaml for now.
2016-02-20 19:07:49 -08:00