summaryrefslogtreecommitdiff
path: root/api-docs/cppdocs/make.bat
blob: aca8b3c98149b8de5e09fd82e1e1f68d9317aa50 (plain)
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
@echo off
set PYTHON=poetry run python

if "%1" == "help" (
    echo Please use `make <target>` where <target> is one of
    echo   clean    to clean the folders
    echo   html     to make standalone HTML files
    echo   docset   to make a Dash docset
    exit /b
)

if "%1" == "clean" (
    rmdir /s /q html
    rmdir /s /q docset
    rmdir /s /q xml
    exit /b
)

if "%1" == "html" (
    %PYTHON% build_min_docs.py
    exit /b
)

if "%1" == "docset" (
    %PYTHON% build_min_docs.py --docset
    exit /b
)

echo Unknown target: %1
exit /b 1