Skip to content

Commit 15381f7

Browse files
committed
Minor tweak
1 parent 6522884 commit 15381f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/doc-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
const baseDocURL = 'https://sagemath-tobias.netlify.app/'
150150
const diffParagraphs = document.querySelectorAll('p.diff');
151151
diffParagraphs.forEach(paragraph => {
152-
const rootURL = window.location.origin;
152+
const rootURL = window.location.origin + '/';
153153
const docAnchor = paragraph.querySelector('a');
154154
const path = docAnchor.textContent; // .href doesn't work
155155
const anchor = document.createElement('a');
@@ -174,7 +174,7 @@ jobs:
174174
match = re.search(r'^diff --git a/(.*) b/\1', block, flags=re.MULTILINE)
175175
if match:
176176
path = match.group(1)
177-
out_blocks.append(f'<p class="diff"><a href="{path}">{path}</a>&nbsp;</p>\n<pre><code class="language-diff">\n' + html.escape(block).strip() + '\n</code></pre>')
177+
out_blocks.append(f'<p class="diff"><a href="{path}">{path}</a>&emsp;</p>\n<pre><code class="language-diff">' + html.escape(block).strip() + '</code></pre>')
178178
output_text = '\n'.join(out_blocks)
179179
with open('./docs/diff.html', 'w') as f:
180180
f.write(output_text)

0 commit comments

Comments
 (0)