File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ find _site/tutorials _site/usage _site/developers -name "index.html" 2>/dev/null
37
37
38
38
# Insert both download and Colab links AFTER the "Report an issue" link
39
39
# The download="index.ipynb" attribute forces browser to download instead of navigate
40
- perl -i -pe " s/(<a href=\ " [^\ " ]*issues\/new\ " [^>]*><i class=\ " bi[^\ " ]*\ " ><\/i>Report an issue<\/a><\/li>)/\ $ 1<li><a href=\ " index.ipynb\ " class=\ " toc-action\ " download=\ " index.ipynb\ " ><i class=\ " bi bi-journal-code\ " ><\/i>$DOWNLOAD_TEXT <\/a><\/li><li><a href=\" $colab_url \" class=\ " toc-action\ " target=\ " _blank\ " rel=\ " noopener\ " ><i class=\ " bi bi-google\ " ><\/i>$COLAB_TEXT <\/a><\/li>/g" " $html_file "
40
+ perl -i -pe ' s/(<a href="[^"]*issues\/new"[^>]*><i class="bi[^"]*"><\/i>Report an issue<\/a><\/li>)/$1<li><a href="index.ipynb" class="toc-action" download="index.ipynb"><i class="bi bi-journal-code"><\/i>' " $DOWNLOAD_TEXT " ' <\/a><\/li><li><a href=" ' " $colab_url " ' " class="toc-action" target="_blank" rel="noopener"><i class="bi bi-google"><\/i>' " $COLAB_TEXT " ' <\/a><\/li>/g' " $html_file "
41
41
echo " ✓ Added notebook links to $html_file "
42
42
fi
43
43
fi
You can’t perform that action at this time.
0 commit comments