doc: add texinfodocs and infodocs targets
Sphinx supports generating Texinfo sources and Info documentation, which can be navigated easily and is convenient to search (via the indexed nodes or anchors, for example). This is basically the same as 1f050e904dd6f2955eecbd22031d912ccb2e7683, which was recently applied to the Linux kernel. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
a17be96b62
commit
7fa4c27a2e
2
Makefile
2
Makefile
@ -2372,7 +2372,7 @@ tcheck:
|
|||||||
# Documentation targets
|
# Documentation targets
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
DOC_TARGETS := xmldocs latexdocs pdfdocs htmldocs epubdocs cleandocs \
|
DOC_TARGETS := xmldocs latexdocs pdfdocs htmldocs epubdocs cleandocs \
|
||||||
linkcheckdocs dochelp refcheckdocs
|
linkcheckdocs dochelp refcheckdocs texinfodocs infodocs
|
||||||
PHONY += $(DOC_TARGETS)
|
PHONY += $(DOC_TARGETS)
|
||||||
$(DOC_TARGETS): scripts_basic FORCE
|
$(DOC_TARGETS): scripts_basic FORCE
|
||||||
$(Q)$(MAKE) $(build)=doc $@
|
$(Q)$(MAKE) $(build)=doc $@
|
||||||
|
10
doc/Makefile
10
doc/Makefile
@ -69,6 +69,14 @@ quiet_cmd_sphinx = SPHINX $@ --> file://$(abspath $(BUILDDIR)/$3/$4)
|
|||||||
htmldocs:
|
htmldocs:
|
||||||
@+$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,html,$(var),,$(var)))
|
@+$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,html,$(var),,$(var)))
|
||||||
|
|
||||||
|
texinfodocs:
|
||||||
|
@+$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,texinfo,$(var),texinfo,$(var)))
|
||||||
|
|
||||||
|
# Note: the 'info' Make target is generated by sphinx itself when
|
||||||
|
# running the texinfodocs target defined above.
|
||||||
|
infodocs: texinfodocs
|
||||||
|
$(MAKE) -C $(BUILDDIR)/texinfo info
|
||||||
|
|
||||||
linkcheckdocs:
|
linkcheckdocs:
|
||||||
@$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,linkcheck,$(var),,$(var)))
|
@$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,linkcheck,$(var),,$(var)))
|
||||||
|
|
||||||
@ -109,6 +117,8 @@ cleandocs:
|
|||||||
dochelp:
|
dochelp:
|
||||||
@echo ' U-Boot documentation in different formats from ReST:'
|
@echo ' U-Boot documentation in different formats from ReST:'
|
||||||
@echo ' htmldocs - HTML'
|
@echo ' htmldocs - HTML'
|
||||||
|
@echo ' texinfodocs - Texinfo'
|
||||||
|
@echo ' infodocs - Info'
|
||||||
@echo ' latexdocs - LaTeX'
|
@echo ' latexdocs - LaTeX'
|
||||||
@echo ' pdfdocs - PDF'
|
@echo ' pdfdocs - PDF'
|
||||||
@echo ' epubdocs - EPUB'
|
@echo ' epubdocs - EPUB'
|
||||||
|
@ -449,7 +449,7 @@ for fn in os.listdir('.'):
|
|||||||
# One entry per manual page. List of tuples
|
# One entry per manual page. List of tuples
|
||||||
# (source start file, name, description, authors, manual section).
|
# (source start file, name, description, authors, manual section).
|
||||||
man_pages = [
|
man_pages = [
|
||||||
(master_doc, 'dasuboot', 'The U-Boot Documentation',
|
(master_doc, 'u-boot', 'The U-Boot Documentation',
|
||||||
[author], 1)
|
[author], 1)
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -463,8 +463,8 @@ man_pages = [
|
|||||||
# (source start file, target name, title, author,
|
# (source start file, target name, title, author,
|
||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
(master_doc, 'DasUBoot', 'The U-Boot Documentation',
|
(master_doc, 'u-boot', 'The U-Boot Documentation',
|
||||||
author, 'DasUBoot', 'One line description of project.',
|
author, 'U-Boot', 'Boot loader for embedded systems',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -22,10 +22,11 @@ $(BUILDDIR)/linker_lists.h.rst: ${API}/linker_lists.h ${PARSER} $(SRC_DIR)/linke
|
|||||||
|
|
||||||
# Media build rules
|
# Media build rules
|
||||||
|
|
||||||
.PHONY: all html epub xml latex
|
.PHONY: all html texinfo epub xml latex
|
||||||
|
|
||||||
all: $(IMGDOT) $(BUILDDIR) ${TARGETS}
|
all: $(IMGDOT) $(BUILDDIR) ${TARGETS}
|
||||||
html: all
|
html: all
|
||||||
|
texinfo: all
|
||||||
epub: all
|
epub: all
|
||||||
xml: all
|
xml: all
|
||||||
latex: $(IMGPDF) all
|
latex: $(IMGPDF) all
|
||||||
|
Loading…
Reference in New Issue
Block a user