diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2021-11-08 00:46:01 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2021-11-08 00:55:33 +0100 |
| commit | 7d154b1f29214a6d6f2ebfb1af050d737c43e8b0 (patch) | |
| tree | 6f186ccf47c2310afd7f2e25c0823d569501d887 | |
| parent | 2bd1d823ddebb0cfef31a3338916aaef9ae01660 (diff) | |
manual: Use Org macros
| -rw-r--r-- | Documentation/Makefile | 4 | ||||
| -rw-r--r-- | Documentation/magit-section.org | 15 | ||||
| -rw-r--r-- | Documentation/magit.org | 15 | ||||
| -rw-r--r-- | default.mk | 1 |
4 files changed, 16 insertions, 19 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index 85aa887..7034cb4 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -83,8 +83,8 @@ clean: ## Release management ################################################ -ORG_ARGS = --batch -Q $(ORG_LOAD_PATH) -l magit-utils.el -l ox-texinfo+.el -ORG_ARGS += --eval "(or (require 'org-man nil t) (require 'ol-man))" +ORG_ARGS = --batch -Q $(ORG_LOAD_PATH) -l ox-texinfo+ +ORG_ARGS += -l magit-utils -l ol-man ORG_EVAL = --eval "(setq org-texinfo+-dissolve-noexport-headlines t)" ORG_EVAL += --eval "(setq indent-tabs-mode nil)" ORG_EVAL += --eval "(setq org-src-preserve-indentation nil)" diff --git a/Documentation/magit-section.org b/Documentation/magit-section.org index 33dec3f..ac42a68 100644 --- a/Documentation/magit-section.org +++ b/Documentation/magit-section.org @@ -2,19 +2,19 @@ :PREAMBLE: #+AUTHOR: Jonas Bernoulli #+EMAIL: jonas@bernoul.li -#+DATE: 2015-2021 +#+DATE: 2015-{{{year}}} #+LANGUAGE: en #+TEXINFO_DIR_CATEGORY: Emacs #+TEXINFO_DIR_TITLE: Magit-Section: (magit-section). #+TEXINFO_DIR_DESC: Use Magit sections in your own packages. -#+SUBTITLE: for version 3.3.0 +#+SUBTITLE: for version {{{version}}} #+TEXINFO_DEFFN: t #+OPTIONS: H:4 num:3 toc:2 #+PROPERTY: header-args :eval never -#+BIND: ox-texinfo+-before-export-hook ox-texinfo+-update-copyright-years -#+BIND: ox-texinfo+-before-export-hook ox-texinfo+-update-version-strings +#+MACRO: version (eval (ox-texinfo+-get-version 'mixed)) +#+MACRO: year (eval (format-time-string "%Y")) This package implements the main user interface of Magit — the collapsible sections that make up its buffers. This package used @@ -26,10 +26,10 @@ user options see [[info:magit#Sections]]. This manual documents how you can use sections in your own packages. #+TEXINFO: @noindent -This manual is for Magit-Section version 3.3.0. +This manual is for Magit-Section version {{{version}}}. #+BEGIN_QUOTE -Copyright (C) 2015-2021 Jonas Bernoulli <jonas@bernoul.li> +Copyright (C) 2015-{{{year}}} Jonas Bernoulli <jonas@bernoul.li> You can redistribute this document and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -255,7 +255,7 @@ source for suitable examples before asking me for help. Thanks! :END: #+BEGIN_QUOTE -Copyright (C) 2015-2021 Jonas Bernoulli <jonas@bernoul.li> +Copyright (C) 2015-{{{year}}} Jonas Bernoulli <jonas@bernoul.li> You can redistribute this document and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -276,7 +276,6 @@ General Public License for more details. # IMPORTANT: Also update ORG_ARGS and ORG_EVAL in the Makefile. # Local Variables: # eval: (require 'magit-utils nil t) -# eval: (require 'org-man nil t) # eval: (require 'ol-man nil t) # eval: (require 'ox-texinfo+ nil t) # org-texinfo+-dissolve-noexport-headlines: t diff --git a/Documentation/magit.org b/Documentation/magit.org index b40ecb7..d411ac3 100644 --- a/Documentation/magit.org +++ b/Documentation/magit.org @@ -2,19 +2,19 @@ :PREAMBLE: #+AUTHOR: Jonas Bernoulli #+EMAIL: jonas@bernoul.li -#+DATE: 2015-2021 +#+DATE: 2015-{{{year}}} #+LANGUAGE: en #+TEXINFO_DIR_CATEGORY: Emacs #+TEXINFO_DIR_TITLE: Magit: (magit). #+TEXINFO_DIR_DESC: Using Git from Emacs with Magit. -#+SUBTITLE: for version 3.3.0 +#+SUBTITLE: for version {{{version}}} #+TEXINFO_DEFFN: t #+OPTIONS: H:4 num:3 toc:2 #+PROPERTY: header-args :eval never -#+BIND: ox-texinfo+-before-export-hook ox-texinfo+-update-copyright-years -#+BIND: ox-texinfo+-before-export-hook ox-texinfo+-update-version-strings +#+MACRO: version (eval (ox-texinfo+-get-version 'mixed)) +#+MACRO: year (eval (format-time-string "%Y")) Magit is an interface to the version control system Git, implemented as an Emacs package. Magit aspires to be a complete Git porcelain. @@ -25,10 +25,10 @@ directly from within Emacs. While many fine Git clients exist, only Magit and Git itself deserve to be called porcelains. #+TEXINFO: @noindent -This manual is for Magit version 3.3.0. +This manual is for Magit version {{{version}}}. #+BEGIN_QUOTE -Copyright (C) 2015-2021 Jonas Bernoulli <jonas@bernoul.li> +Copyright (C) 2015-{{{year}}} Jonas Bernoulli <jonas@bernoul.li> You can redistribute this document and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -8999,7 +8999,7 @@ Please also see the [[*FAQ]]. :END: #+BEGIN_QUOTE -Copyright (C) 2015-2021 Jonas Bernoulli <jonas@bernoul.li> +Copyright (C) 2015-{{{year}}} Jonas Bernoulli <jonas@bernoul.li> You can redistribute this document and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -9035,7 +9035,6 @@ General Public License for more details. # IMPORTANT: Also update ORG_ARGS and ORG_EVAL in the Makefile. # Local Variables: # eval: (require 'magit-utils nil t) -# eval: (require 'org-man nil t) # eval: (require 'ol-man nil t) # eval: (require 'ox-texinfo+ nil t) # org-texinfo+-dissolve-noexport-headlines: t @@ -216,7 +216,6 @@ endif # ifndef LOAD_PATH ifndef ORG_LOAD_PATH ORG_LOAD_PATH = $(LOAD_PATH) ORG_LOAD_PATH += -L ../../org/lisp -ORG_LOAD_PATH += -L ../../org-contrib/lisp ORG_LOAD_PATH += -L ../../ox-texinfo+ endif |
