Skip to content

Commit

Permalink
man: point man/conf.py and Makefile to doc/man
Browse files Browse the repository at this point in the history
Fixes: ceph#11320
Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Apr 7, 2015
1 parent 0e07ccc commit c7effab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions man/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ include Makefile-server.am
endif

check-local:
${SPHINX_BUILD} -b man -d doctrees . $(top_builddir)/man
${SPHINX_BUILD} -b man -d doctrees -c . $(top_srcdir)/doc/man $(top_builddir)/man

# prevent `make` from running in parallel, sphinx runs better in batch mode.
.PHONY: sphinx-build.stamp

$(dist_man_MANS): sphinx-build.stamp

sphinx-build.stamp:
${SPHINX_BUILD} -Q -b man -d doctrees -c . . $(top_builddir)/man
${SPHINX_BUILD} -Q -b man -d doctrees -c . $(top_srcdir)/doc/man $(top_builddir)/man

clean-local:
@rm -f *.8
Expand Down
5 changes: 3 additions & 2 deletions man/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
exclude_patterns = ['**/.#*', '**/*~']

def _get_manpages():
import os
man_dir = os.path.dirname(__file__)
src_dir = os.path.dirname(__file__)
top_srcdir = os.path.dirname(src_dir)
man_dir = os.path.join(top_srcdir, 'doc', 'man')
sections = os.listdir(man_dir)
for section in sections:
section_dir = os.path.join(man_dir, section)
Expand Down

0 comments on commit c7effab

Please sign in to comment.