Skip to content

Commit 530ad28

Browse files
authored
Fix docs build (lhotse-speech#1137)
* Tutorial materials in main readme page * Fix docs build * Bump dev version * Fix missing numpy * Fix path to VERSION * Make samplers visible in documentation
1 parent 6f14f54 commit 530ad28

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

.readthedocs.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,20 @@
44

55
# Required
66
version: 2
7+
build:
8+
os: "ubuntu-22.04"
9+
tools:
10+
python: "3.10"
11+
apt_packages:
12+
- "libsndfile-dev"
713

814
# Build documentation in the docs/ directory with Sphinx
915
sphinx:
10-
configuration: docs/conf.py
11-
12-
# Build documentation with MkDocs
13-
#mkdocs:
14-
# configuration: mkdocs.yml
15-
16-
# Optionally build your docs in additional formats such as PDF
17-
formats:
18-
- pdf
16+
configuration: "docs/conf.py"
1917

2018
# Optionally set the version of Python and requirements required to build your docs
2119
python:
22-
version: 3.7
2320
install:
24-
- requirements: docs/requirements.txt
25-
- method: pip
26-
path: .
21+
- requirements: "docs/requirements.txt" # install this first to get numpy
22+
- method: "pip"
23+
path: "."

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.16.0
1+
1.17.0

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
# -- Project information -----------------------------------------------------
2424

2525
project = "lhotse"
26-
copyright = "2020-2021, Lhotse development team"
26+
copyright = "2020-2023, Lhotse development team"
2727
author = "Lhotse development team"
2828

2929
# The full version, including alpha/beta/rc tags
3030

31-
VERSION = open(Path(".").parent / "VERSION").read().strip()
31+
VERSION = open(Path(__file__).parent.parent.absolute() / "VERSION").read().strip()
3232
dev_marker = ""
3333
if not os.environ.get("LHOTSE_PREPARING_RELEASE", False):
3434
dev_marker = ".dev"

lhotse/dataset/sampling/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,16 @@
77
from .stateless import StatelessSampler
88
from .utils import find_pessimistic_batches, report_padding_ratio_estimate
99
from .zip import ZipSampler
10+
11+
__all__ = [
12+
"BucketingSampler",
13+
"CutPairsSampler",
14+
"DynamicCutSampler",
15+
"DynamicBucketingSampler",
16+
"RoundRobinSampler",
17+
"SimpleCutSampler",
18+
"StatelessSampler",
19+
"ZipSampler",
20+
"find_pessimistic_batches",
21+
"report_padding_ratio_estimate",
22+
]

0 commit comments

Comments
 (0)