Skip to content

Commit 778195a

Browse files
committed
Small edit
1 parent 26ffdaa commit 778195a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/create-changes-html.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ for block in diff_blocks:
6262
match = re.search(r'^diff --git a/(.*) b/\1', block, flags=re.MULTILINE)
6363
if match:
6464
doc = match.group(1)
65-
path = 'html/' + doc
6665
file_path = os.path.join('$DOC_REPOSITORY', doc)
6766
try:
6867
with open(file_path, 'r') as file:
@@ -83,6 +82,7 @@ for block in diff_blocks:
8382
if content:
8483
with open(file_path, 'w') as file:
8584
file.writelines(content)
85+
path = 'html/' + doc
8686
hunks = '&nbsp;'.join(f'<a href="{path}#hunk{i+1}" class="hunk" target="_blank">#{i + 1}</a>' for i in range(count))
8787
out_blocks.append(f'<p class="diff"><a href="{path}">{doc}</a>&nbsp;' + hunks + '&emsp;</p>'
8888
+ '\n<pre><code class="language-diff">'

0 commit comments

Comments
 (0)