-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 1022 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = docs
BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help docs-html docs-live test
docs-html:
sphinx-build -W -b html -d /tmp "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(0)
docs-live:
@echo "Starting sphinx-autobuild..."
sphinx-autobuild --host 0.0.0.0 -W -b html -d /tmp "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(0)
# Install development dependencies
install-dev:
pip install -r requirements-dev.txt
# Run tests with pytest
test:
pytest tests/ -vv -s
# 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) -b $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)