Skip to content

Commit

Permalink
Merge pull request #20 from jeffjennings/download_text
Browse files Browse the repository at this point in the history
More verbose 'download' text on website tutorial pages
  • Loading branch information
adrn authored Oct 30, 2024
2 parents 608a1f8 + 6338722 commit ffa9c8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<a href="{{ resources['learn_astropy_source_url'] }}">{{ resources["learn_astropy_source_label"] or "View on GitHub" }}</a>
{% endif %}
{% if resources.learn_astropy_ipynb_download_url %}
<a href="{{ resources['learn_astropy_ipynb_download_url'] }}" download>Download</a>
<a href="{{ resources['learn_astropy_ipynb_download_url'] }}" download>Download this notebook</a>
{% endif %}
</nav>
</header>
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def test_learn_astropy_theme(tmp_path):
assert github_link.attrs["href"] == (
"https://github.com/astropy/astropy-tutorials/blob/main/tutorials/notebook1.ipynb"
)
download_link = header_nav.find("a", string="Download")
download_link = header_nav.find("a", string="Download this notebook")
assert download_link.attrs["href"] == "notebook1.ipynb"


Expand Down

0 comments on commit ffa9c8b

Please sign in to comment.