Skip to content

Commit

Permalink
No longer track generated ghub.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 2ed0a37 commit 9629f6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1,089 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/ghub.org
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
#+texinfo_dir_category: Emacs
#+texinfo_dir_title: Ghub: (ghub).
#+texinfo_dir_desc: Client library for the Github API.
#+subtitle: for version 4.0.0
#+subtitle: for {{{version}}}

#+setupfile: .orgconfig

Ghub is an Emacs library that is used by various packages to access
the APIs of various instances of various Git forge implementations.

#+texinfo: @noindent
This manual is for Ghub version 4.0.0.
This manual is for Ghub {{{version}}}.

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

0 comments on commit 9629f6a

Please sign in to comment.