(context: Context)
| 182 | |
| 183 | |
| 184 | def _live_docs(context: Context) -> None: |
| 185 | with context.cd(DOCS_DIR): |
| 186 | context.run("poetry install") |
| 187 | context.run( |
| 188 | "poetry run python main.py " |
| 189 | "--open-browser " |
| 190 | # watch python source too |
| 191 | "--watch=../src/py " |
| 192 | # for some reason this matches absolute paths |
| 193 | "--ignore=**/_auto/* " |
| 194 | "--ignore=**/_static/custom.js " |
| 195 | "--ignore=**/node_modules/* " |
| 196 | "--ignore=**/package-lock.json " |
| 197 | "-a " |
| 198 | "-E " |
| 199 | "-b " |
| 200 | "html " |
| 201 | "source " |
| 202 | "build" |
| 203 | ) |
| 204 | |
| 205 | |
| 206 | @task |