Skip to content
This repository was archived by the owner on Jun 12, 2025. It is now read-only.

Commit ffa9c8b

Browse files
authored
Merge pull request #20 from jeffjennings/download_text
More verbose 'download' text on website tutorial pages
2 parents 608a1f8 + 6338722 commit ffa9c8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nbcollection/themes/learnastropy/templates/html/astropy-header.html.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<a href="{{ resources['learn_astropy_source_url'] }}">{{ resources["learn_astropy_source_label"] or "View on GitHub" }}</a>
1313
{% endif %}
1414
{% if resources.learn_astropy_ipynb_download_url %}
15-
<a href="{{ resources['learn_astropy_ipynb_download_url'] }}" download>Download</a>
15+
<a href="{{ resources['learn_astropy_ipynb_download_url'] }}" download>Download this notebook</a>
1616
{% endif %}
1717
</nav>
1818
</header>

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_learn_astropy_theme(tmp_path):
147147
assert github_link.attrs["href"] == (
148148
"https://github.com/astropy/astropy-tutorials/blob/main/tutorials/notebook1.ipynb"
149149
)
150-
download_link = header_nav.find("a", string="Download")
150+
download_link = header_nav.find("a", string="Download this notebook")
151151
assert download_link.attrs["href"] == "notebook1.ipynb"
152152

153153

0 commit comments

Comments
 (0)