Skip to content

Commit 536fd03

Browse files
federicobucchifedericobucchiapple
authored andcommitted
[Not Final] <#239> Add Contributor Calendar
[Not Final] <#239> Respond to comments
1 parent af8cbca commit 536fd03

22 files changed

+139
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ See [website overview](/website) for more information about the Swift.org websit
1515

1616
Swift.org uses [Jekyll](https://jekyllrb.com), a blog-aware, static site generator in Ruby.
1717

18+
## Calendar Updates
19+
20+
Update Calendar events in [calendar.yml](/_data/calendar.yml) (events are Pacific Time Zone)
21+
1822
### Running locally
1923

2024
Requirements

_data/calendar.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
- date: 2023-3-22
2+
entries:
3+
- name: Test 1
4+
description: Description 1
5+
location: Location 1
6+
url: https://www.swift.org
7+
start: "08:30:00"
8+
duration: 0H30M
9+
- name: Test 2
10+
description: Description 2
11+
location: Location 2
12+
url: https://www.swift.org
13+
start: "18:00:00"
14+
duration: 2H30M

_data/navigation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
name: license
6969
- title: Forums
7070
name: forums
71+
- title: Calendar
72+
url: /calendar/
7173
- title: Diversity
7274
url: /diversity/
7375
sections:

assets/javascripts/color-scheme-toggle.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ function getColorSchemeAttribute() {
134134

135135
function updateColorSchemeAttribute(color) {
136136
document.body.setAttribute('data-color-scheme', color);
137+
138+
setTimeout(() => {
139+
if (document.querySelector('swift-calendar')) {
140+
document.querySelector('swift-calendar').setAttribute('theme', getColorSchemeAttribute());
141+
}
142+
})
137143
}
138144

139145
function preferredColorSchemeSetting() {
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)