-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to use napari-sphinx-theme 0.3.0 (#267)
Prepares the docs repo to use the new napari-sphinx-theme, 0.3.0, which depends on pydata-sphinx-theme rather than forking it. # References and relevant issues Addresses napari/napari-sphinx-theme#113 Depends on napari/napari-sphinx-theme#134
- Loading branch information
Showing
8 changed files
with
91 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<nav class="bd-docs-nav bd-links" | ||
aria-label="{{ _('Section Navigation') }}"> | ||
<div class="bd-toc-item navbar-nav">{{ sidebar_nav_html }}</div> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,61 @@ | |
|
||
We hold regular meetings, the timings of which are available on our [public calendar](https://calendar.google.com/calendar/embed?src=c_35r93ec6vtp8smhm7dv5uot0v4%40group.calendar.google.com). | ||
|
||
```{calendar} | ||
--- | ||
show-filters: true | ||
calendar-id: [email protected] | ||
--- | ||
``` | ||
|
||
If you are using napari or interested in how napari could be used in your work, please join one of our regular community meetings. If you're interested in diving deep on particular topic you could join the closest working group meeting. We currently have four working groups 'Bundled Application', 'Plugins', 'Architecture', and 'Documentation' that meet on a semi-regular candence. You can learn more about our working groups and community meetings in the corresponding discussion streams on the [napari Zulip](https://napari.zulipchat.com/login/). | ||
|
||
<div id='community_calendar'></div> | ||
|
||
<div id='timezone'></div> | ||
|
||
<div id="myModal" class="modal"> | ||
<!-- Modal content --> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<span class="close">×</span> | ||
<h3>Event details</h3> | ||
</div> | ||
<div id="details" class="modal-body"> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src='https://cdn.jsdelivr.net/npm/[email protected]/index.global.min.js'></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@fullcalendar/[email protected]/index.global.min.js"></script> | ||
<script> | ||
document.getElementById('timezone').innerHTML = "All times shown in "+Intl.DateTimeFormat().resolvedOptions().timeZone+"."; | ||
document.addEventListener('DOMContentLoaded', function () { | ||
var community_calendar = document.getElementById('community_calendar'); | ||
var calendar = new FullCalendar.Calendar(community_calendar, | ||
{ | ||
height: 650, | ||
timeZone: 'local', | ||
initialView: 'dayGridMonth', | ||
headerToolbar: { | ||
left: "prev,next today", | ||
center: "title", | ||
right: "dayGridMonth,listWeek", | ||
}, | ||
googleCalendarApiKey: '{API_KEY}', | ||
events: { | ||
googleCalendarId: '[email protected]', | ||
}, | ||
eventClick: function (info) { | ||
info.jsEvent.preventDefault(); | ||
var eventObj = info.event; | ||
// Get the <span> element that closes the modal | ||
var span = document.getElementsByClassName("close")[0]; | ||
// Get the modal | ||
var modal = document.getElementById("myModal"); | ||
modal.style.display = "block"; | ||
var eventTitle = eventObj.title.charAt(0).toUpperCase() + eventObj.title.slice(1); | ||
document.getElementById("details").innerHTML = '<b>' + eventTitle + '</b>' + '<br>' + eventObj.extendedProps.description; | ||
//When the user clicks on <span> (x), close the modal | ||
span.onclick = function() { | ||
modal.style.display = "none"; | ||
} | ||
}, | ||
eventDisplay: 'block', | ||
}); | ||
calendar.render(); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters