Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit 810f926

Browse files
committed
Add a task to deploy the documentation
1 parent de0a09c commit 810f926

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tasks.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ def sphinx(c, dev=False):
5353
c.run(f"{cmd} -W . _build/html")
5454

5555

56+
@task(pre=[call(sphinx)])
57+
def deploy_docs(c):
58+
with c.cd("docs"):
59+
c.run("ghp-import _build/html/ -p -n -m 'ghp-import automatic commit'")
60+
61+
5662
@task(
5763
pre=[
5864
call(black, check=True),

0 commit comments

Comments
 (0)