We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26ffdaa commit 778195aCopy full SHA for 778195a
.ci/create-changes-html.sh
@@ -62,7 +62,6 @@ for block in diff_blocks:
62
match = re.search(r'^diff --git a/(.*) b/\1', block, flags=re.MULTILINE)
63
if match:
64
doc = match.group(1)
65
- path = 'html/' + doc
66
file_path = os.path.join('$DOC_REPOSITORY', doc)
67
try:
68
with open(file_path, 'r') as file:
@@ -83,6 +82,7 @@ for block in diff_blocks:
83
82
if content:
84
with open(file_path, 'w') as file:
85
file.writelines(content)
+ path = 'html/' + doc
86
hunks = ' '.join(f'<a href="{path}#hunk{i+1}" class="hunk" target="_blank">#{i + 1}</a>' for i in range(count))
87
out_blocks.append(f'<p class="diff"><a href="{path}">{doc}</a> ' + hunks + ' </p>'
88
+ '\n<pre><code class="language-diff">'
0 commit comments