From 5dda2bee6ca13e5d1a1acbc4775b20a3092f5702 Mon Sep 17 00:00:00 2001 From: Aaron Schlesinger <70865+arschles@users.noreply.github.com> Date: Mon, 22 Apr 2019 21:31:38 -0700 Subject: [PATCH] Refactoring the developer meetings page (#1178) * adding JS files * updating the dev meetings page * trying to see if time zones work this works locally but I have no idea why... * dealing with APAC times where it's really Friday FEEL THE PAIN * removing dead and commented code --- .../community/developer-meetings.md | 42 ++++++++++++------- docs/static/js/dev-meetings.js | 40 ++++++++++++++++++ .../layouts/partials/header.html | 4 +- 3 files changed, 69 insertions(+), 17 deletions(-) create mode 100644 docs/static/js/dev-meetings.js diff --git a/docs/content/contributing/community/developer-meetings.md b/docs/content/contributing/community/developer-meetings.md index d517b516..a5c18602 100644 --- a/docs/content/contributing/community/developer-meetings.md +++ b/docs/content/contributing/community/developer-meetings.md @@ -2,31 +2,41 @@ title: "Developer Meetings" date: 2018-09-28T10:40:50-07:00 weight: 3 - --- -We hold our weekly developer meetings every Thursday at 11am US Pacific Time. They start with a quick update on the project from the maintainers, and then we discuss things on the agenda. +Every Thursday, Athens developers get together for one hour on a video chat to discuss the state of the project, and any specific development topics that are going on. -Absolutely everyone is invited to attend, suggest topics for the agenda, and participate! You don’t have to be a contributor or maintainer to show up and share your perspective, ideas, feelings, etc. +We meet at this [zoom](https://zoom.us/) video Chat URL: [https://aka.ms/athensdevzoom](https://aka.ms/athensdevzoom) -### Meeting Details +>**Absolutely everybody is welcome to attend these meetings, suggest topics to talk about, share your perspective, and participate as little or much as they'd like**. +> +>You don't have to be a contributor to attend -They're every Thursday at 11am to 12pm US Pacific Time and you can join the meeting here by following this link: [https://aka.ms/athensdevzoom](https://aka.ms/athensdevzoom) +## Meeting Details -### Agenda +We rotate the time of the meeting weekly, so that as many people as possible get a chance to attend the meeting at a time appropriate for their time zone. The rotation of times is below: + +- Thursday on odd week numbers of each month: 22:00 UTC ( locally) +- Thursday on even week numbers of each month: 20:00 UTC ( locally) + +Each developer meeting starts with a quick update on the project from the maintainers, and then we discuss things on the agenda. + +>All developer meetings happen using the [zoom](https://zoom.us) software. Before you come to the meeting, please make sure you have installed the zoom client using this link: https://zoom.us/support/download. + +## Agenda The [agenda google doc](https://docs.google.com/document/d/1xpvgmR1Fq4iy1j975Tb4H_XjeXUQUOAvn0FximUzvIk/edit#heading=h.f24qbjkyfv6v) - is where you'll can suggest topics and look at all the topics discussed in previous meetings. - -If you want to suggest a topic, just add a bullet point (under the appropriate meeting day) with your first name and the topic. - -Here's an example of how to suggest a topic: + is where we keep track of what to talk about each week. Anybody can edit it, so if you want to talk about a topic, write it down in a bullet point under the appropriate week, and we'll talk about it if time permits. Please follow these guidelines when you add your topic: + +- If there are already topics listed, please add yours to the bottom of the list +- If the date of the next meeting is not listed, please add it as a heading above all the previous dates. Copy the format of the previous date when you add it + + Here's an example of how to suggest a topic: > * (Bob) Let’s talk about something cool! - > * (Alice) Let’s talk about cool thing #2! -### Past Meetings - -Don't worry if you can't make them but want to catch up! All past development meetings available on [YouTube](https://www.youtube.com/playlist?list=PLAk08AWjk5sekD-FRjU4VVe97nltUyZ4W). - + + + + diff --git a/docs/static/js/dev-meetings.js b/docs/static/js/dev-meetings.js new file mode 100644 index 00000000..eae696c8 --- /dev/null +++ b/docs/static/js/dev-meetings.js @@ -0,0 +1,40 @@ +// get next thursday +const nextThurs = moment().day(4 + 7); + +// get next thursday in UTC for 22:00 and 20:00 +const nextThurs22 = new Date(Date.UTC( + nextThurs.year(), + nextThurs.month(), + nextThurs.date(), + 22 +)); +const nextThurs20 = new Date(Date.UTC( + nextThurs.year(), + nextThurs.month(), + nextThurs.date(), + 20 +)); + +const time22 = moment(). + year(nextThurs22.getFullYear()). + month(nextThurs22.getMonth()). + date(nextThurs22.getDate()). + hour(nextThurs22.getHours()). + minute(nextThurs22.getMinutes()); + + +const time20ID = document.getElementById("time20"); +const time20Str = nextThurs20.getHours() + ":00"; +if (time22.day() == 4) { + time20ID.innerHTML = time20Str; +} else { + time20ID.innerHTML = time20Str + " (Friday)"; +} + +const time22ID = document.getElementById("time22"); +const time22Str = nextThurs22.getHours() + ":00"; +if (time22.day() == 4) { + time22ID.innerHTML = time22Str; +} else { + time22ID.innerHTML = time22Str + " (Friday)"; +} diff --git a/docs/themes/hugo-theme-learn/layouts/partials/header.html b/docs/themes/hugo-theme-learn/layouts/partials/header.html index de16c932..d3e8c5ef 100644 --- a/docs/themes/hugo-theme-learn/layouts/partials/header.html +++ b/docs/themes/hugo-theme-learn/layouts/partials/header.html @@ -21,7 +21,9 @@ {{end}} - +