Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FODS documentation #2269

Merged
merged 4 commits into from
Oct 20, 2024
Merged

Conversation

thielema
Copy link
Contributor

some extensions to documentation regarding FODS export

How can I regenerate hledger.txt? just only lists targets for Haddock generation.
Why is it checked into the Repo, since it seems to be generated?

@simonmichael
Copy link
Owner

Most of the heavy doc building is in Shake.hs.

  1. ./Shake.hs to compile that
  2. ./Shake to see targets
  3. ./Shake cmddocs to update the .txt files, which are used in hledger's --help output
  4. ./Shake manuals to update the other manual formats, which are embedded as hledger help / hledger-ui --help / hledger-web --help

@simonmichael
Copy link
Owner

I guess they're checked in because

  • They are needed to build hledger. Generating them automatically as part of the build sounds a bit difficult and likely to be fragile.
  • It's useful to be able to review the changes with git, for troubleshooting and awareness.

@simonmichael
Copy link
Owner

  • they (or at least the man and info manuals) are artifacts needed by packagers.

@thielema
Copy link
Contributor Author

I have run those Shake commands. It is difficult to prevent stack from downloading its own versions of GHC. I have installed them already globally. I use the --system-ghc option of stack, but stack seems to be called in other scripts, too.
Now I get many changes to many doc files. I better omit those in my commits. Maybe it is easier you run the documentation update scripts?

@simonmichael
Copy link
Owner

simonmichael commented Oct 19, 2024 via email

@simonmichael simonmichael added docs Documentation-related. fods The FODS output format. labels Oct 19, 2024
@simonmichael simonmichael merged commit 6773bf0 into simonmichael:master Oct 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation-related. fods The FODS output format.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants