doc: read notmuch-tree.rsti for rst_epilog

This is needed so that docstrings from notmuch-tree.el (in particular
notmuch-tree-toggle-order) can be used in the emacs documentation.
This commit is contained in:
David Bremner 2021-08-21 20:51:08 -07:00
parent 8c4f38092a
commit d9072d9eb3

View file

@ -45,7 +45,7 @@ if tags.has('WITH_EMACS'):
# Hacky reimplementation of include to workaround limitations of # Hacky reimplementation of include to workaround limitations of
# sphinx-doc # sphinx-doc
lines = ['.. include:: /../emacs/rstdoc.rsti\n\n'] # in the source tree lines = ['.. include:: /../emacs/rstdoc.rsti\n\n'] # in the source tree
for file in ('notmuch.rsti', 'notmuch-lib.rsti', 'notmuch-show.rsti', 'notmuch-tag.rsti'): for file in ('notmuch.rsti', 'notmuch-lib.rsti', 'notmuch-show.rsti', 'notmuch-tag.rsti', 'notmuch-tree.rsti'):
lines.extend(open(rsti_dir+'/'+file)) lines.extend(open(rsti_dir+'/'+file))
rst_epilog = ''.join(lines) rst_epilog = ''.join(lines)
del lines del lines