Skip to content

Commit 47e63fb

Browse files
committed
added link to full changelog in index.html
1 parent 1c25198 commit 47e63fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

documentation/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
2222

2323
project = 'mmif-python'
24+
blob_base_url = f'https://github.com/clamsproject/{project}/blob'
2425
copyright = f'{datetime.date.today().year}, Brandeis LLC'
2526
author = 'Brandeis LLC'
2627
try:
@@ -108,7 +109,7 @@ def linkcode_resolve(domain, info):
108109
repo_root = Path(__file__).parent.parent
109110
rel_path = Path(filename).relative_to(repo_root)
110111

111-
return f"https://github.com/clamsproject/mmif-python/blob/{git_ref}/{rel_path}#L{start_lineno}-L{end_lineno}"
112+
return f"{blob_base_url}/{git_ref}/{rel_path}#L{start_lineno}-L{end_lineno}"
112113

113114
except Exception:
114115
# Don't fail the entire build if one link fails, just return None
@@ -221,7 +222,7 @@ def generate_whatsnew_rst(app):
221222
else:
222223
# Dump matched markdown content directly to whatsnew.md
223224
with open(output_path, 'w') as f:
224-
f.write(f"## What's New in {version}\n\n")
225+
f.write(f"## What's New in {version}\n\n(Full changelog available in the [CHANGELOG.md]({blob_base_url}/main/CHANGELOG.md))\n")
225226
f.writelines(content)
226227

227228

0 commit comments

Comments
 (0)