File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2121# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
2222
2323project = 'mmif-python'
24+ blob_base_url = f'https://github.com/clamsproject/{ project } /blob'
2425copyright = f'{ datetime .date .today ().year } , Brandeis LLC'
2526author = 'Brandeis LLC'
2627try :
@@ -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
You can’t perform that action at this time.
0 commit comments