Skip to content

Commit 33d020d

Browse files
committed
descope this PR to just improving links
1 parent daaa815 commit 33d020d

File tree

2 files changed

+33
-16
lines changed

2 files changed

+33
-16
lines changed

tutorials/_static/custom.css

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ div.body {
77

88
div.body p {
99
font-size: 15px;
10+
line-height: 20px;
1011
}
1112

1213
span.inputnumrole {
@@ -17,11 +18,17 @@ span.outputnumrole {
1718
color: #D84315
1819
}
1920

20-
.intro {
21-
background-color: #d8ebf3;
22-
padding: 12px;
23-
border: 1px solid #9dcde1;
24-
border-radius: 6px;
25-
margin-top: 32px;
26-
margin-bottom: 32px;
21+
button {
22+
border-radius: 5px;
23+
border-width: 0;
24+
padding: 6px 10px 6px 10px;
25+
cursor: pointer;
26+
margin-right: 12px;
27+
color: #ffffff;
28+
font-size: 10pt;
29+
background-image: linear-gradient(to bottom, #FFA47D 0%, #FF7D45 100%)
30+
}
31+
32+
#spacer {
33+
margin-top: 24px;
2734
}

tutorials/astropy.tpl

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
11
{%- extends 'display_priority.tpl' -%}
22

33
{% block header %}
4+
45
{# Remove the exec_ prefix #}
56
{% set nb_name = resources.metadata.name[5:] %}
6-
`Download tutorial notebook <../_static/{{ nb_name }}/{{ nb_name }}.ipynb>`_ -
7-
`Interactive tutorial notebook <https://beta.mybinder.org/v2/gh/astropy/astropy-tutorials/master?filepath=/tutorials/notebooks/{{ nb_name }}/{{ nb_name }}.ipynb>`_
7+
8+
.. raw:: html
9+
10+
<a href="../_static/{{ nb_name }}/{{ nb_name }}.ipynb"><button id="download">Download tutorial notebook</button></a>
11+
<a href="https://beta.mybinder.org/v2/gh/astropy/astropy-tutorials/master?filepath=/tutorials/notebooks/{{ nb_name }}/{{ nb_name }}.ipynb"><button id="binder">Interactive tutorial notebook</button></a>
12+
13+
<div id="spacer"></div>
814

915
.. role:: inputnumrole
1016
.. role:: outputnumrole
1117

1218
.. _{{nb_name}}:
1319
{% endblock %}
1420

21+
{% block footer %}
22+
23+
.. raw:: html
24+
25+
<div id="spacer"></div>
26+
27+
<a href="../_static/{{ nb_name }}/{{ nb_name }}.ipynb"><button id="download">Download tutorial notebook</button></a>
28+
<a href="https://beta.mybinder.org/v2/gh/astropy/astropy-tutorials/master?filepath=/tutorials/notebooks/{{ nb_name }}/{{ nb_name }}.ipynb"><button id="binder">Interactive tutorial notebook</button></a>
29+
30+
{% endblock %}
31+
1532
{% block in_prompt %}
1633

1734
:inputnumrole:`In[{{ cell['execution_count'] }}]:`
@@ -87,14 +104,7 @@
87104
{% endblock data_html %}
88105

89106
{% block markdowncell scoped %}
90-
{% if cell.source.startswith('# Introduction') %}
91-
.. rst-class:: intro
92-
93-
{{ cell.source | markdown2rst }}
94-
{% else %}
95107
{{ cell.source | markdown2rst }}
96-
{% endif %}
97-
98108
{% endblock markdowncell %}
99109

100110
{%- block rawcell scoped -%}

0 commit comments

Comments
 (0)