Automatically build docs when running linux-pacakge

Fixes #622
This commit is contained in:
Kovid Goyal 2018-06-11 09:54:48 +05:30
parent 59430c1c14
commit cde60b19e8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 7 additions and 2 deletions

View File

@ -79,8 +79,12 @@ installs the terminfo file and :file:`kitty` that installs the main program.
This allows users to install the terminfo file on servers into which they ssh, This allows users to install the terminfo file on servers into which they ssh,
without needing to install all of kitty. without needing to install all of kitty.
You also need :file:`tic` to compile the terminfo files, it is usually found in .. note::
the development package of :file:`ncurses`. You need a couple of extra dependencies to build linux-package.
:file:`tic` to compile terminfo files, usually found in the
development package of :file:`ncurses`. Also, :file:`sphinx-build`
from the `Sphinx documentation generator
<http://www.sphinx-doc.org/>`_.
This applies to creating packages for kitty for macOS package managers such as This applies to creating packages for kitty for macOS package managers such as
brew or MacPorts as well. brew or MacPorts as well.

View File

@ -788,6 +788,7 @@ def main():
) )
elif args.action == 'linux-package': elif args.action == 'linux-package':
build(args, native_optimizations=False) build(args, native_optimizations=False)
run_tool(['make', 'docs'])
package(args) package(args)
elif args.action == 'osx-bundle': elif args.action == 'osx-bundle':
build(args, native_optimizations=False) build(args, native_optimizations=False)