Skip to content

Commit 2935144

Browse files
Fixes for pyastar2d dependency and documentation
1 parent 669f21c commit 2935144

11 files changed

Lines changed: 87 additions & 41 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ docs/_build/
1919
example*.jpg
2020
example*.json
2121
.vscode/*
22+
23+
assets/*.key

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ sphinx:
1818
# Optionally declare the Python requirements required to build your docs
1919
python:
2020
install:
21-
- requirements: requirements.txt
21+
- requirements: requirements/documentation.txt
2222
- method: pip
2323
path: .

README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
==============
21
Kitware BatBot
32
==============
43

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/conf.py

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
# Configuration file for the Sphinx documentation builder.
22
#
3-
# This file only contains a selection of the most common options. For a full
4-
# list see the documentation:
3+
# For the full list of built-in configuration values, see the documentation:
54
# https://www.sphinx-doc.org/en/master/usage/configuration.html
65

7-
# -- Path setup --------------------------------------------------------------
8-
9-
# If extensions (or modules to document with autodoc) are in another directory,
10-
# add these directories to sys.path here. If the directory is relative to the
11-
# documentation root, use os.path.abspath to make it absolute, like shown here.
12-
#
13-
# import os
14-
# import sys
15-
# sys.path.insert(0, os.path.abspath('.'))
16-
17-
186
# -- Project information -----------------------------------------------------
7+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
198

20-
project = 'Kitware BatBot'
21-
copyright = '2025'
22-
author = 'Kitware'
23-
9+
project = 'batbot'
10+
copyright = '2026, Kitware, Inc.'
11+
author = 'Kitware, Inc.'
2412

2513
# -- General configuration ---------------------------------------------------
26-
# -- General configuration
14+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2715

2816
extensions = [
2917
'sphinx.ext.duration',
@@ -49,22 +37,13 @@
4937
intersphinx_disabled_domains = ['std']
5038

5139
templates_path = ['_templates']
52-
53-
# -- Options for EPUB output
5440
epub_show_urls = 'footnote'
5541

56-
# List of patterns, relative to source directory, that match files and
57-
# directories to ignore when looking for source files.
58-
# This pattern also affects html_static_path and html_extra_path.
5942
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
6043

61-
autosectionlabel_prefix_document = True
62-
6344
# -- Options for HTML output -------------------------------------------------
45+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
6446

65-
# The theme to use for HTML and HTML Help pages. See the documentation for
66-
# a list of builtin themes.
67-
#
6847
html_theme = 'sphinx_rtd_theme'
6948

7049
html_theme_path = [
@@ -80,10 +59,6 @@
8059
'donate.html',
8160
]
8261
}
83-
84-
# Add any paths that contain custom static files (such as style sheets) here,
85-
# relative to this directory. They are copied after the builtin static files,
86-
# so a file named "default.css" will overwrite the builtin "default.css".
8762
html_static_path = ['_static']
8863
html_css_files = [
8964
'theme.css',

docs/index.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
1+
.. batbot documentation master file, created by
2+
sphinx-quickstart on Thu Feb 5 13:49:59 2026.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
16
.. include:: ../README.rst
27

38
.. include:: ../CHANGELOG.rst
49

510
.. include:: ../ISSUES.rst
611

7-
========
812
Contents
9-
========
13+
--------
1014

1115
.. toctree::
1216
:maxdepth: 3
17+
:caption: Contents:
1318

1419
Home <self>
1520
batbot
1621
cli
22+
23+
Indices and tables
24+
------------------
25+
26+
* :ref:`genindex`
27+
* :ref:`modindex`
28+
* :ref:`search`
29+
30+
.. include:: colors.rst

docs/make.bat

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=.
11+
set BUILDDIR=_build
12+
13+
%SPHINXBUILD% >NUL 2>NUL
14+
if errorlevel 9009 (
15+
echo.
16+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17+
echo.installed, then set the SPHINXBUILD environment variable to point
18+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
19+
echo.may add the Sphinx directory to PATH.
20+
echo.
21+
echo.If you don't have Sphinx installed, grab it from
22+
echo.https://www.sphinx-doc.org/
23+
exit /b 1
24+
)
25+
26+
if "%1" == "" goto help
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

requirements/documentation.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Sphinx>=5,<6
2+
sphinx_click
3+
sphinx_rtd_theme
4+
standard-imghdr

requirements/optional.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ pyupgrade
2020
pyyaml
2121
rstcheck
2222
rstcheck[sphinx]
23-
Sphinx>=5,<6
24-
sphinx_rtd_theme
2523
# torch
2624
# torchvision
2725
xdoctest

requirements/runtime.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ numpy
88
opencv-python-headless
99
Pillow
1010
pooch
11-
pyastar2d @ git+https://github.com/bluemellophone/batbot-pyastar2d@master
11+
pyastar2d>=1.1.1
1212
rich
1313
scikit-image
1414
shapely
15-
sphinx-click
1615
tqdm

0 commit comments

Comments
 (0)