Skip to content

Commit

Permalink
Merge pull request #1660 from PrefectHQ/coverage-link
Browse files Browse the repository at this point in the history
Link directly to codecov coverage report from the sidebar
  • Loading branch information
cicdw authored Oct 26, 2019
2 parents 15386e4 + 3e1f886 commit fc250ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = {
"/api/unreleased/": [
{ title: "API Reference", path: "/api/unreleased/" },
"changelog",
"coverage",
{ title: "Test Coverage", path: "https://codecov.io/gh/PrefectHQ/prefect" },
{
title: "prefect",
collapsable: true,
Expand Down
16 changes: 0 additions & 16 deletions docs/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,22 +342,6 @@ def create_tutorial_notebooks(tutorial):
shutil.rmtree("api/unreleased", ignore_errors=True)
os.makedirs("api/unreleased", exist_ok=True)

## write link to hosted coverage reports
with open("api/unreleased/coverage.md", "w+") as f:
f.write(
textwrap.dedent(
"""
---
title: Test Coverage
---
# Unit test coverage report
To view test coverage reports, <a href="https://codecov.io/gh/PrefectHQ/prefect">click here</a>.
"""
).lstrip()
)

## UPDATE README
with open("api/unreleased/README.md", "w+") as f:
f.write(
Expand Down

0 comments on commit fc250ec

Please sign in to comment.