Skip to content

Commit

Permalink
Merge pull request #25 from IATI/vite
Browse files Browse the repository at this point in the history
Use Vite to build CSS
  • Loading branch information
tillywoodfield authored Jan 7, 2025
2 parents fe9ce7f + 61d8359 commit 1f6c0f7
Show file tree
Hide file tree
Showing 13 changed files with 868 additions and 101 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This theme has multiple options, which can be configured using the :code:`html_t
There is more information on each option below.

:code:`github_repository`
-------------------
-------------------------

This should be a link to the Github repository for the documentation site, and is used to link to the source code in the footer of the site.

Expand Down
9 changes: 6 additions & 3 deletions iati_sphinx_theme/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="iati-footer__section iati-footer__section--first">
<div class="iati-footer__container">
<div class="iati-footer-block">
<h2 class="iati-footer-block__title">Additional information</h2>
<h2 class="iati-footer-block__title">Additional Information</h2>
<div class="iati-footer-block__content">
<p>Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.</p>
{% if theme_github_repository %}
Expand Down Expand Up @@ -38,15 +38,18 @@ <h2 class="iati-footer-block__title">Additional information</h2>
>
<i class="iati-icon iati-icon--linkedin"></i>
</a>
<a href="https://twitter.com/IATI_aid" aria-label="Twitter">
<i class="iati-icon iati-icon--twitter"></i>
<a href="https://x.com/IATI_aid" aria-label="X">
<i class="iati-icon iati-icon--x"></i>
</a>
<a
href="https://www.youtube.com/channel/UCAVH1gcgJXElsj8ENC-bDQQ"
aria-label="YouTube"
>
<i class="iati-icon iati-icon--youtube"></i>
</a>
<a href="https://www.facebook.com/IATIaid/" aria-label="Facebook">
<i class="iati-icon iati-icon--facebook"></i>
</a>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion iati_sphinx_theme/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h2 class="iati-mobile-nav__label">Menu</h2>

<a href="{{ pathto('search') }}" class="iati-button iati-button--light">
<span>Search</span>
<img class="iati-button__icon" alt="" src="{{ pathto('_static/icon-search.svg', 1) }}">
<i class="iati-icon iati-icon--search"></i>
</a>

<button class="iati-menu-toggle iati-menu-toggle--open js-iati-menu-toggle-open">
Expand Down
7 changes: 1 addition & 6 deletions iati_sphinx_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
{% if theme_plausible_domain %}
<script defer data-domain="{{ theme_plausible_domain }}" src="https://plausible.io/js/script.js"></script>
{% endif %}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/iati.js"></script>
<style>
.iati-brand-background {
--background-image: url("{{ pathto('marque-white.svg', 1) }}");
}
</style>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/iati.js"></script>
{% endblock %}

{%- block header %}
Expand Down
2 changes: 1 addition & 1 deletion iati_sphinx_theme/static/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Autogenerated CSS
iati.css
css/
5 changes: 0 additions & 5 deletions iati_sphinx_theme/static/icon-info.svg

This file was deleted.

3 changes: 0 additions & 3 deletions iati_sphinx_theme/static/icon-search.svg

This file was deleted.

59 changes: 0 additions & 59 deletions iati_sphinx_theme/static/marque-white.svg

This file was deleted.

2 changes: 1 addition & 1 deletion iati_sphinx_theme/theme.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[theme]
inherit = basic
stylesheet = iati.css
stylesheet = css/style.css
pygments_style = default

[options]
Expand Down
Loading

0 comments on commit 1f6c0f7

Please sign in to comment.