I have installed the official Git documentation in Texinfo format on my computer and for Emacs. But when I try to search for something with I
in the info buffer (C-h-i d m git
) it reports no indices. I'm new to Texinfo and is it because the official documentation doesn't include indexing facilities or because I didn't do something right? I need this feature because I find it quite useful. Here's how I build the official doc:
Install
asciidoc
anddocbook2X
.$ sudo dnf install asciidoc docbook2X
Download the Git repository. These instructions assume that you want the latest, bleeding edge. Replace “master” with an appropriate tag like “v2.20.1”.
$ wget https://github.com/git/git/archive/master.tar.gz $ tar xf master.tar.gz $ cd git-master/Documentation
Build the info files.
$ make git.info gitman.info
Error: docbook2x-texi: command not found
SUBDIR ../ make[1]: 'GIT-VERSION-FILE' is up to date. DB2TEXI user-manual.texi /bin/sh: line 1: docbook2x-texi: command not found make: *** [Makefile:413: user-manual.texi] Error 127
This is the docbook to texi converter from the docbook2X package (which has not been updated since 2007). For Red Hat and Fedora, the EPEL package repo provides docbook2X. However, the name of the script is changed because there is a newer docbook package. So, in the git source directory, edit the file "Documentation/Makefile" and change one line:
DOCBOOK2X_TEXI = db2x_docbook2texi
Install the info files into "~/.local/share/info".
$ mv git.info gitman.info ~/.local/share/info $ cd ~/.local/share/info $ install-info git.info dir $ install-info gitman.info dir
Add "~/.local/share/info" to the variable "Info-additional-directory-list" to make the directory acessible to Emacs.
(add-to-list 'Info-additional-directory-list "~/.local/share/info")
Restart Emacs to initialize the info files.