Skip to content

Commit

Permalink
doc: automake: Add support for sphinx 4.0.
Browse files Browse the repository at this point in the history
File layout for man pages in sphinx 4 by default changed [1] from:

  Documentation/_ref/man/page.section

To:

  Documentation/_ref/man/section/page.section

Ajusting our build scripts so they will be able to locate files
in new places.  This fixes our CI build.

[1] sphinx-doc/sphinx#7996

Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
  • Loading branch information
igsilya committed May 10, 2021
1 parent 1b45591 commit 1413955
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Documentation/automake.mk
Expand Up @@ -216,8 +216,13 @@ install-man-rst: docs-check
$(extract_stem_and_section); \
echo " $(MKDIR_P) '$(DESTDIR)'\"$$mandir\""; \
$(MKDIR_P) '$(DESTDIR)'"$$mandir"; \
echo " $(INSTALL_DATA) $(SPHINXBUILDDIR)/man/$$stem.$$section '$(DESTDIR)'\"$$mandir/$$stem.$$section\""; \
$(INSTALL_DATA) $(SPHINXBUILDDIR)/man/$$stem.$$section '$(DESTDIR)'"$$mandir/$$stem.$$section"; \
if -f $(SPHINXBUILDDIR)/man/$$stem.$$section; then
filepath=$(SPHINXBUILDDIR)/man/$$stem.$$section
else
filepath=$(SPHINXBUILDDIR)/man/$$section/$$stem.$$section
fi
echo " $(INSTALL_DATA) $(filepath) '$(DESTDIR)'\"$$mandir/$$stem.$$section\""; \
$(INSTALL_DATA) $(filepath) '$(DESTDIR)'"$$mandir/$$stem.$$section"; \
done
else
install-man-rst:
Expand Down

0 comments on commit 1413955

Please sign in to comment.