Skip to content

Commit

Permalink
No longer track generated forge.texi
Browse files Browse the repository at this point in the history
That also means that we can use the (updated) {{{version}}} macro again.
  • Loading branch information
tarsius committed Aug 17, 2024
1 parent f526919 commit c176bbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1,974 deletions.
2 changes: 1 addition & 1 deletion docs/.orgconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

#+macro: kbd (eval (let ((case-fold-search nil) (regexp (regexp-opt '("SPC" "RET" "LFD" "TAB" "BS" "ESC" "DELETE" "SHIFT" "Ctrl" "Meta" "Alt" "Cmd" "Super" "UP" "LEFT" "RIGHT" "DOWN") 'words))) (format "@@texinfo:@kbd{@@%s@@texinfo:}@@" (replace-regexp-in-string regexp "@@texinfo:@key{@@\\&@@texinfo:}@@" $1 t))))
#+macro: year (eval (format-time-string "%Y"))
#+macro: version (eval (or (getenv "PACKAGE_REVDESC") (getenv "PACKAGE_VERSION") (ignore-errors (car (process-lines "git" "describe" "--exact"))) (ignore-errors (concat (car (process-lines "git" "describe" (if (getenv "AMEND") "HEAD~" "HEAD"))) "+1"))))
#+macro: version (eval (if-let ((tag (ignore-errors (car (process-lines "git" "describe" "--exact-match"))))) (concat "version " (substring tag 1)) (or (ignore-errors (car (process-lines "git" "describe"))) "version (unknown)")))

#+language: en
4 changes: 2 additions & 2 deletions docs/forge.org
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
#+texinfo_dir_category: Emacs
#+texinfo_dir_title: Forge: (forge).
#+texinfo_dir_desc: Access Git Forges from Magit
#+subtitle: for version 0.4.1
#+subtitle: for {{{version}}}

#+setupfile: .orgconfig

Forge allows you to work with Git forges, currently Github and Gitlab,
from the comfort of Magit and Emacs.

#+texinfo: @noindent
This manual is for Forge version 0.4.1.
This manual is for Forge {{{version}}}.

#+texinfo: @insertcopying
:END:
Expand Down
Loading

0 comments on commit c176bbc

Please sign in to comment.