Skip to content

Commit

Permalink
manual: Use Org macros
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Nov 7, 2021
1 parent 2bd1d82 commit 7d154b1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Documentation/Makefile
Expand Up @@ -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)"
Expand Down
15 changes: 7 additions & 8 deletions Documentation/magit-section.org
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
15 changes: 7 additions & 8 deletions Documentation/magit.org
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion default.mk
Expand Up @@ -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

Expand Down

0 comments on commit 7d154b1

Please sign in to comment.