-
Notifications
You must be signed in to change notification settings - Fork 373
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
FR: Compile the docs into the jj
binary
#1294
Comments
I'd definitely start with making Maybe could have some kind of |
Patches for that would be appreciated. I don't notice it much myself.
There actually used to be a command for that. I decided that it was less maintenance work to keep it in separate markdown files. There's probably a way of generating something that's readable in terminal from the markdown files. I think I looked into that a little bit a year or so. |
I am a little apprehensive about touching
At least at first, I was thinking of just sending them to the pager. There are also plenty of tools that try to render markdown more nicely in the terminal, we could later try finding a library that can be used from rust. Some notes on that:
|
I think it would be nice for
jj
to be self-documenting. A relatively simple approach would be to create ajj doc
command so thatjj doc tutorial
printsdocs/tutorial.md
via a pager, using theinclude_str!
macro.jj doc
orjj doc list
would list the available topics. I'm hoping thatclap
will provide tab completion (though this is optional, especially for the first version).For example, I expect
jj doc revsets
to be useful.Alternatively, this could be part of the
jj help
command, but I couldn't figure out an easy way to do that withclap
. Also, the output ofjj help
is already quite long.This will also match the version of the documentation people see with the version of
jj
they use.The text was updated successfully, but these errors were encountered: