Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ docs/_build/
example*.jpg
example*.json
.vscode/*

assets/*.key
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ sphinx:
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: requirements.txt
- requirements: requirements/documentation.txt
- method: pip
path: .
1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
==============
Kitware BatBot
==============

Expand Down
8 changes: 4 additions & 4 deletions batbot/batbot_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ def preprocess(
):
"""Generate compressed spectrogram images for input wav files into the same or a specified output directory.
Takes one or more space separated arguments of filepaths to process. If given a directory name argument,
will recursively search through the directory and all subfolders to find all contained *.wav files.
Alternatively, the argument can be given as a string using wildcard ** for folders and/or * in filenames
(if ** wildcard is used, will recursively search through all subfolders).
will recursively search through the directory and all subfolders to find all contained \\*.wav files.
Alternatively, the argument can be given as a string using wildcard \\** for folders and/or \\* in filenames
(if \\** wildcard is used, will recursively search through all subfolders).

\b
Examples:
batbot preprocess ../data -o ./tmp
batbot preprocess "../data/**/*.wav"
batbot preprocess "../data/\\**/\\*.wav"
batbot preprocess ../data -o ./tmp -n 32
batbot preprocess ../data -o ./tmp -n 32 -fm
batbot preprocess ../data -o ./tmp -f --dry-run --output-json dry_run.json
Expand Down
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2 changes: 1 addition & 1 deletion docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ models that have been pretrained for inference in a production environment.
.. toctree::
:maxdepth: 3

.. click:: batbot.batbot:cli
.. click:: batbot.batbot_cli:cli
:prog: batbot
:nested: full

Expand Down
39 changes: 7 additions & 32 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))


# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'Kitware BatBot'
copyright = '2025'
author = 'Kitware'

project = 'batbot'
copyright = '2026, Kitware, Inc.'
author = 'Kitware, Inc.'

# -- General configuration ---------------------------------------------------
# -- General configuration
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
'sphinx.ext.duration',
Expand All @@ -49,22 +37,13 @@
intersphinx_disabled_domains = ['std']

templates_path = ['_templates']

# -- Options for EPUB output
epub_show_urls = 'footnote'

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

autosectionlabel_prefix_document = True

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'

html_theme_path = [
Expand All @@ -80,10 +59,6 @@
'donate.html',
]
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_css_files = [
'theme.css',
Expand Down
18 changes: 16 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
.. batbot documentation master file, created by
sphinx-quickstart on Thu Feb 5 13:49:59 2026.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

.. include:: ../README.rst

.. include:: ../CHANGELOG.rst

.. include:: ../ISSUES.rst

========
Contents
========
--------

.. toctree::
:maxdepth: 3
:caption: Contents:

Home <self>
batbot
cli

Indices and tables
------------------

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

.. include:: colors.rst
35 changes: 35 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=.
set BUILDDIR=_build

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.https://www.sphinx-doc.org/
exit /b 1
)

if "%1" == "" goto help

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%

:end
popd
4 changes: 4 additions & 0 deletions requirements/documentation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Sphinx>=5,<6
sphinx_click
sphinx_rtd_theme
standard-imghdr
2 changes: 0 additions & 2 deletions requirements/optional.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ pyupgrade
pyyaml
rstcheck
rstcheck[sphinx]
Sphinx>=5,<6
sphinx_rtd_theme
# torch
# torchvision
xdoctest
3 changes: 1 addition & 2 deletions requirements/runtime.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ numpy
opencv-python-headless
Pillow
pooch
pyastar2d @ git+https://github.com/bluemellophone/batbot-pyastar2d@master
pyastar2d>=1.1.1
rich
scikit-image
shapely
sphinx-click
tqdm
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ install_requires =
opencv-python-headless
Pillow
pooch
pyastar2d @ git+https://github.com/bluemellophone/batbot-pyastar2d@master
pyastar2d>=1.1.1
rich
scikit-image
shapely
Expand Down