jj/docs
Bryce Berger f7431650be
Some checks are pending
binaries / Build binary artifacts (push) Waiting to run
website / prerelease-docs-build-deploy (ubuntu-24.04) (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
templates: add cryptographic_signature display to default formats
Cryptographic signature support in templates was added in
c99c97c646 (#4853), but has to be manually
configured. This adds some defaults to the built-in config.

Instead of having separate `builtin_*_with_sig` aliases, this adds to
the aliases that actually format commits. Since signature verification
is slow, this is disabled by default. To enable it, override
`ui.show-cryptographic-signatures`:

    [ui]
    show-cryptographic-signatures = true
    [template-aliases]
    'format_short_cryptographic_signature(signature)' = ...
    'format_detailed_cryptographic_signature(signature)' = ...

Note that the two formatting functions take
`Option<CryptographicSignature>`, not `CryptographicSignature`. This
allows you to display a custom message if a signature is not found, but
will emit an error if you do not check for signature presence.

    [template-aliases]
    'format_detailed_cryptographic_signature(signature)' = '''
      if(signature,
        "message if present",
        "message if missing",
      )
    '''
2025-01-15 23:29:35 +00:00
..
design docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
governance
technical docs: improve and convert library design diagram to SVG 2025-01-07 20:32:56 -06:00
bookmarks.md docs: Use "branch" consistently when talking about Git's branches 2025-01-03 10:54:00 -06:00
cli-reference.md docs: Remove trailing whitespace in markdown files 2024-09-13 13:06:28 +02:00
code-of-conduct.md
community_tools.md docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
config-schema.json docs: Expose config-schema.json in the docs site 2025-01-14 13:45:36 +00:00
config.md templates: add cryptographic_signature display to default formats 2025-01-15 23:29:35 +00:00
config.toml
conflicts.md docs: explain long conflict markers 2024-12-25 20:34:40 -06:00
contributing.md contributing: recommend bacon over cargo-watch 2025-01-09 19:39:54 +00:00
design_doc_blueprint.md docs: Remove trailing whitespace in markdown files 2024-09-13 13:06:28 +02:00
design_docs.md docs: Remove trailing whitespace in markdown files 2024-09-13 13:06:28 +02:00
FAQ.md docs: Explain what elided revisions are 2025-01-11 01:18:45 +00:00
filesets.md
git-comparison.md docs: fix typo in in command 2025-01-10 21:21:08 +00:00
git-compatibility.md docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
github.md docs: Git does not use bookmarks 2024-12-19 20:59:45 -08:00
glossary.md docs: try to clarify that changes are not a first-class concept 2024-11-16 14:20:37 -08:00
index.md docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
install-and-setup.md docs: fix the mkdocs admonition I recently added 2025-01-10 23:09:01 +00:00
operation-log.md
related-work.md
revsets.md docs: fix typo in builtin_immutable_heads() description 2024-12-31 19:24:36 -06:00
roadmap.md docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
sapling-comparison.md
templates.md docs templates: document the Email type methods in more detail 2025-01-15 05:07:53 +00:00
testimonials.md docs: Remove trailing whitespace in markdown files 2024-09-13 13:06:28 +02:00
tutorial.md tutorial: fix conflict formatting issue 2024-11-25 16:47:59 -06:00
windows.md ui: switch builtin pager to streampager 2025-01-14 01:13:13 +00:00
working-copy.md docs: fix incorrect XDG env variable 2025-01-15 18:06:02 +00:00