Skip to content

Commit

Permalink
Move banner html into static and change URL
Browse files Browse the repository at this point in the history
  • Loading branch information
daurer committed Dec 10, 2024
1 parent 015ede3 commit c7605e2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/_templates/banner.html → docs/_static/banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Phase Focus grants royalty free licences of its patent rights for non-commercial academic research use, for reconstruction of simulated data and for reconstruction of data obtained at synchrotrons at X-ray wavelengths. These licenses can be applied for online by clicking on this <a class="reference external" href="http://www.phasefocus.com/licence/">link</a>.</p><p>
Phase Focus asserts that the software we have made available for download may be capable of being used in circumstances which may fall within the claims of one or more of the Phase Focus patents. Phase Focus advises that you apply for a licence from it before downloading any software from this website. </p>
<button type="button"
onclick="document.getElementById('disclaimer').innerHTML = ''">
I understand.</button>
onclick="document.getElementById('disclaimer').innerHTML = `PtyPy is a community project. If you'd like to contribute or participate in one of our workshops, <a class='reference external' href='https://ptypy.org'>check out our website</a>.`">
I understand</button>
</div>
</div>
11 changes: 11 additions & 0 deletions docs/_static/ptypy.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
div.disclaimer {
background-color: #2c5d8a;
color: #f9eed0;
text-align: left;
padding: 1em;
font-weight: bold;
}

div.disclaimer a{
color: #d8b340;
}
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

html_theme = 'pydata_sphinx_theme'
html_static_path = ['_static']
html_css_files = ["ptypy.css"]
html_logo = '_static/logo_100px.png'
html_favicon = '_static/ptypyicon.ico'

Expand All @@ -60,5 +61,5 @@
"icon": "fab fa-twitter-square ",
},
],
"announcement": "https://github.com/daurer/ptypy-new-docs/raw/master/docs/_templates/banner.html",
"announcement": "https://daurer.github.io/ptypy-new-docs/docs/_static/banner.html",
}

0 comments on commit c7605e2

Please sign in to comment.