From cde60b19e810d586d55d5e6899f6d5dd699f6df1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 11 Jun 2018 09:54:48 +0530 Subject: [PATCH] Automatically build docs when running linux-pacakge Fixes #622 --- docs/build.rst | 8 ++++++-- setup.py | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/build.rst b/docs/build.rst index 2cd799e38..33ae16473 100644 --- a/docs/build.rst +++ b/docs/build.rst @@ -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, without needing to install all of kitty. -You also need :file:`tic` to compile the terminfo files, it is usually found in -the development package of :file:`ncurses`. +.. note:: + 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 + `_. This applies to creating packages for kitty for macOS package managers such as brew or MacPorts as well. diff --git a/setup.py b/setup.py index 83867d052..eefa1d54a 100755 --- a/setup.py +++ b/setup.py @@ -788,6 +788,7 @@ def main(): ) elif args.action == 'linux-package': build(args, native_optimizations=False) + run_tool(['make', 'docs']) package(args) elif args.action == 'osx-bundle': build(args, native_optimizations=False)