Skip to content

Commit 687da86

Browse files
authored
Use the header/announcement to add links to other docs (#35)
1 parent 1411bb3 commit 687da86

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

_config-ci-master.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,42 @@ html:
3030
home_page_in_navbar : true
3131
comments:
3232
hypothesis : true
33+
announcement: '
34+
<div class="custom-header-container">
35+
<div>
36+
<a href="https://viresclient.readthedocs.io" class="link">viresclient</a>
37+
38+
<a href="" class="link-selected">Swarm Notebooks</a>
39+
<a href="https://swarmpal.readthedocs.io" class="link">SwarmPAL</a>
40+
<a href="https://vires.services" target="_blank" class="link">VirES for Swarm ↗</a>
41+
<a href="https://vre.vires.services" target="_blank" class="link">Swarm JupyterHub ↗</a>
42+
</div>
43+
</div>
44+
45+
<style>
46+
.custom-header-container {}
47+
48+
.custom-header-container .link {
49+
margin: 0 10px;
50+
padding: 5px 10px;
51+
text-decoration: none;
52+
color: white;
53+
}
54+
55+
.custom-header-container .link:hover {
56+
color: #1e90ff !important;
57+
}
58+
59+
.custom-header-container .link-selected {
60+
margin: 0 10px;
61+
padding: 5px 10px;
62+
text-decoration: none;
63+
background-color: #ccc;
64+
color: black;
65+
border-radius: 5px;
66+
}
67+
</style>
68+
'
3369

3470
# See https://jupyterbook.org/content/content-blocks.html
3571
parse:

_config-ci-staging.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,42 @@ html:
3030
home_page_in_navbar : true
3131
comments:
3232
hypothesis : true
33+
announcement: '
34+
<div class="custom-header-container">
35+
<div>
36+
<a href="https://viresclient.readthedocs.io" class="link">viresclient</a>
37+
38+
<a href="" class="link-selected">Swarm Notebooks</a>
39+
<a href="https://swarmpal.readthedocs.io" class="link">SwarmPAL</a>
40+
<a href="https://vires.services" target="_blank" class="link">VirES for Swarm ↗</a>
41+
<a href="https://vre.vires.services" target="_blank" class="link">Swarm JupyterHub ↗</a>
42+
</div>
43+
</div>
44+
45+
<style>
46+
.custom-header-container {}
47+
48+
.custom-header-container .link {
49+
margin: 0 10px;
50+
padding: 5px 10px;
51+
text-decoration: none;
52+
color: white;
53+
}
54+
55+
.custom-header-container .link:hover {
56+
color: #1e90ff !important;
57+
}
58+
59+
.custom-header-container .link-selected {
60+
margin: 0 10px;
61+
padding: 5px 10px;
62+
text-decoration: none;
63+
background-color: #ccc;
64+
color: black;
65+
border-radius: 5px;
66+
}
67+
</style>
68+
'
3369

3470
# See https://jupyterbook.org/content/content-blocks.html
3571
parse:

0 commit comments

Comments
 (0)