mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 10:12:17 +02:00
Dont run make docs to build linux-package
The pre-built docs are now included in the official kitty source code release. This means that building linux-package does not require sphinx anymore.
This commit is contained in:
@@ -82,8 +82,9 @@ without needing to install all of kitty.
|
|||||||
.. note::
|
.. note::
|
||||||
You need a couple of extra dependencies to build linux-package.
|
You need a couple of extra dependencies to build linux-package.
|
||||||
:file:`tic` to compile terminfo files, usually found in the
|
:file:`tic` to compile terminfo files, usually found in the
|
||||||
development package of :file:`ncurses`. Also, :file:`sphinx-build`
|
development package of :file:`ncurses`. Also, if you are building form
|
||||||
from the `Sphinx documentation generator
|
a git checkout instead of the released source code tarball, you will
|
||||||
|
need :file:`sphinx-build` from the `Sphinx documentation generator
|
||||||
<http://www.sphinx-doc.org/>`_.
|
<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
|
||||||
|
|||||||
8
setup.py
8
setup.py
@@ -546,7 +546,8 @@ def copy_man_pages(ddir):
|
|||||||
src = 'docs/_build/man'
|
src = 'docs/_build/man'
|
||||||
if not os.path.exists(src):
|
if not os.path.exists(src):
|
||||||
raise SystemExit('''\
|
raise SystemExit('''\
|
||||||
The kitty man page is missing. If you are building from git then run: make docs
|
The kitty man page is missing. If you are building from git then run:
|
||||||
|
make && make docs
|
||||||
(needs the sphinx documentation system to be installed)
|
(needs the sphinx documentation system to be installed)
|
||||||
''')
|
''')
|
||||||
shutil.copytree(src, os.path.join(mandir, 'man1'))
|
shutil.copytree(src, os.path.join(mandir, 'man1'))
|
||||||
@@ -562,7 +563,8 @@ def copy_html_docs(ddir):
|
|||||||
src = 'docs/_build/html'
|
src = 'docs/_build/html'
|
||||||
if not os.path.exists(src):
|
if not os.path.exists(src):
|
||||||
raise SystemExit('''\
|
raise SystemExit('''\
|
||||||
The kitty html docs are missing. If you are building from git then run: make html
|
The kitty html docs are missing. If you are building from git then run:
|
||||||
|
make && make docs
|
||||||
(needs the sphinx documentation system to be installed)
|
(needs the sphinx documentation system to be installed)
|
||||||
''')
|
''')
|
||||||
shutil.copytree(src, htmldir)
|
shutil.copytree(src, htmldir)
|
||||||
@@ -788,8 +790,6 @@ def main():
|
|||||||
)
|
)
|
||||||
elif args.action == 'linux-package':
|
elif args.action == 'linux-package':
|
||||||
build(args, native_optimizations=False)
|
build(args, native_optimizations=False)
|
||||||
if not args.for_freeze:
|
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user