Skip to content

Commit

Permalink
fix: build docs on fork (#1800)
Browse files Browse the repository at this point in the history
<!-- Ensure that the PR title follows conventional commit style (<type>:
<description>)-->
<!-- Possible types are here:
https://github.com/commitizen/conventional-commit-types/blob/master/index.json
-->

### Description

See #1799. Not sure if this is the solution you are looking for..
  • Loading branch information
Maarten-vd-Sande committed Oct 4, 2023
1 parent ecc45e8 commit d859765
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/generate_docs.py
Expand Up @@ -28,7 +28,13 @@
"test.py",
".pytest_cache",
} | SCRIPTS
TAG = subprocess.check_output(["git", "describe", "--tags"]).decode().strip()

_REPO_OWNER = subprocess.check_output(["git", "remote", "-v"]).decode().strip()
_REPO_OWNER = _REPO_OWNER.split(":")[-1].split("/")[0]
if _REPO_OWNER == "snakemake":
TAG = subprocess.check_output(["git", "describe", "--tags"]).decode().strip()
else:
TAG = "UNDEFINED"


with open(os.path.join(BASE_DIR, "_templates", "tool.rst")) as f:
Expand Down

0 comments on commit d859765

Please sign in to comment.