Skip to content

Commit

Permalink
update the location of the build documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
carnisj committed Jan 25, 2022
1 parent 117a206 commit 8b273e3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,20 @@ def task_mypy():

def task_check_links_doc():
"""Check external links in the doc using sphinx."""
path = Path(get_path()) / "doc"
sourcedir = Path(get_path()) / "doc"
outputdir = sourcedir / "doc_html"
return {
"actions": [f"sphinx-build -b linkcheck {path} doc_html"],
"actions": [f"sphinx-build -b linkcheck {sourcedir} {outputdir}"],
"verbosity": 1,
}


def task_build_doc():
"""Build the documentation with sphinx."""
path = Path(get_path()) / "doc"
sourcedir = Path(get_path()) / "doc"
outputdir = sourcedir / "doc_html"
return {
"actions": [f"sphinx-build -b html {path} doc_html"],
"actions": [f"sphinx-build -b html {sourcedir} {outputdir}"],
"targets": ["docs/"],
}

Expand Down

0 comments on commit 8b273e3

Please sign in to comment.