eclipsefdn-hugo-solstice-theme 0.0.178 → 0.0.179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105,6 +105,12 @@
105
105
  parent = "components"
106
106
  identifier = "deprecated"
107
107
 
108
+ [[main]]
109
+ name = "Meeting Minutes"
110
+ url = "/components/meeting_minutes/"
111
+ weight = 3
112
+ parent = "solstice"
113
+
108
114
  [[main]]
109
115
  name = "Membership"
110
116
  url = "/components/members/"
@@ -99,6 +99,12 @@
99
99
  parent = "components"
100
100
  identifier = "deprecated"
101
101
 
102
+ [[main]]
103
+ name = "Meeting Minutes"
104
+ url = "/components/meeting_minutes/"
105
+ weight = 3
106
+ parent = "solstice"
107
+
102
108
  [[main]]
103
109
  name = "Membership"
104
110
  url = "/components/members/"
@@ -99,6 +99,12 @@
99
99
  parent = "components"
100
100
  identifier = "deprecated"
101
101
 
102
+ [[main]]
103
+ name = "Meeting Minutes"
104
+ url = "/components/meeting_minutes/"
105
+ weight = 3
106
+ parent = "solstice"
107
+
102
108
  [[main]]
103
109
  name = "Membres"
104
110
  url = "/components/members/"
@@ -99,6 +99,12 @@
99
99
  parent = "components"
100
100
  identifier = "deprecated"
101
101
 
102
+ [[main]]
103
+ name = "Meeting Minutes"
104
+ url = "/components/meeting_minutes/"
105
+ weight = 3
106
+ parent = "solstice"
107
+
102
108
  [[main]]
103
109
  name = "Membership"
104
110
  url = "/components/members/"
@@ -99,6 +99,12 @@
99
99
  parent = "components"
100
100
  identifier = "deprecated"
101
101
 
102
+ [[main]]
103
+ name = "Meeting Minutes"
104
+ url = "/components/meeting_minutes/"
105
+ weight = 3
106
+ parent = "solstice"
107
+
102
108
  [[main]]
103
109
  name = "Membership"
104
110
  url = "/components/members/"
@@ -99,6 +99,12 @@
99
99
  parent = "components"
100
100
  identifier = "deprecated"
101
101
 
102
+ [[main]]
103
+ name = "Meeting Minutes"
104
+ url = "/components/meeting_minutes/"
105
+ weight = 3
106
+ parent = "solstice"
107
+
102
108
  [[main]]
103
109
  name = "Membership"
104
110
  url = "/components/members/"
@@ -99,6 +99,12 @@
99
99
  parent = "components"
100
100
  identifier = "deprecated"
101
101
 
102
+ [[main]]
103
+ name = "Meeting Minutes"
104
+ url = "/components/meeting_minutes/"
105
+ weight = 3
106
+ parent = "solstice"
107
+
102
108
  [[main]]
103
109
  name = "Membership"
104
110
  url = "/components/members/"
@@ -0,0 +1,43 @@
1
+ ---
2
+ title: Meeting Minutes
3
+ hide_sidebar: true
4
+ ---
5
+
6
+ You can add meeting minutes to a markdown file using the shortcode:
7
+ **{{< meeting_minutes >}}**
8
+
9
+ {{< grid/div class="alert alert-warning" isMarkdown="false" >}} This is for
10
+ demonstration only. The only link which is expected to work is under the
11
+ Specification Committee tab. {{</ grid/div >}}
12
+
13
+ {{< meeting_minutes >}}
14
+
15
+ ## Setup
16
+
17
+ To add meeting minutes, create a **meeting_minutes.yml** file in the data
18
+ folder. The YAML file should have a similar shape to the following:
19
+
20
+ ```
21
+ dir: '/path/to/directory/with/committees/'
22
+ yearly_sections_enabled: true
23
+ items:
24
+ marketing_committee:
25
+ - title: August 18, 2022 (pdf)
26
+ url: marketing_committee/2022-08-18-marketing-minutes.pdf
27
+ year: 2022
28
+ specification_committee:
29
+ - title: June 28, 2018 (pdf)
30
+ url: https://jakarta.ee/about/meeting_minutes/steering_committee/2018-06-28-specification-minutes.pdf
31
+ year: 2018
32
+ ```
33
+
34
+ #### Properties
35
+
36
+ | Property | Description |
37
+ | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
38
+ | `dir` | is the directory for which to search for the meeting minutes. |
39
+ | `yearly_sections_enabled` | splits meeting minutes into yearly sections if set to `true`. |
40
+ | `items` | contains the committees such as `marketing_committee` and `specification_committee`. You can give the committee any key. This committee will appear as a tab on the component. |
41
+ | `title` | is the link text of a meeting minutes item. |
42
+ | `url` | locates the meeting minute file. If `dir` was set, it will locate the file from `dir`. |
43
+ | `year` | is the year which the meeting was taken. This will dictate which year-section the item will appear under. This is not required if `yearly_sections_enabled` is set to `false`. |
@@ -1,20 +1,49 @@
1
+ yearly_sections_enabled: true
2
+ dir: '/docs/hugo/components/meeting_minutes/documents/'
1
3
  items:
2
- type_1:
3
- -
4
- title: Type 1 - Hugo Solstice Theme Num-1
5
- url: https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme
6
- -
7
- title: Type 1 - Hugo Solstice Theme Num-2
8
- url: https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme
9
-
10
-
11
- type_2:
12
- -
13
- title: Type 1 - Hugo Solstice Theme Num-1
14
- url: https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme
15
- -
16
- title: Type 1 - Hugo Solstice Theme Num-2
17
- url: https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme
18
- -
19
- title: Type 1 - Hugo Solstice Theme Num-3
20
- url: https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme
4
+ marketing_committee:
5
+ -
6
+ url: marketing_committee/minutes-marketing-0818-2022.pdf
7
+ title: August 18, 2022 (pdf)
8
+ year: 2022
9
+ -
10
+ url: marketing_committee/minutes-marketing-0804-2022.pdf
11
+ title: August 04, 2022 (pdf)
12
+ year: 2022
13
+ -
14
+ url: marketing_committee/minutes-marketing-0721-2022.pdf
15
+ title: July 21, 2022 (pdf)
16
+ year: 2022
17
+ -
18
+ url: marketing_committee/minutes-marketing-0707-2022.pdf
19
+ title: July 07, 2022 (pdf)
20
+ year: 2022
21
+ -
22
+ url: marketing_committee/minutes-marketing-0623-2022.pdf
23
+ title: June 23, 2022 (pdf)
24
+ year: 2022
25
+ -
26
+ url: marketing_committee/minutes-marketing-0609-2022.pdf
27
+ title: June 09, 2022 (pdf)
28
+ year: 2022
29
+ -
30
+ url: marketing_committee/minutes-marketing-0512-2022.pdf
31
+ title: May 12, 2022 (pdf)
32
+ year: 2022
33
+ -
34
+ url: marketing_committee/minutes-marketing-0428-2022.pdf
35
+ title: April 28, 2022 (pdf)
36
+ year: 2022
37
+ -
38
+ url: marketing_committee/minutes-marketing-0317-2022.pdf
39
+ title: March 17, 2022 (pdf)
40
+ year: 2022
41
+ -
42
+ url: marketing_committee/minutes-marketing-february-11-2021.pdf
43
+ title: February 11, 2021 (pdf)
44
+ year: 2021
45
+ specification_committee:
46
+ -
47
+ url: specification_committee/minutes-specification-june-28-2018.pdf
48
+ title: June 28, 2018 (pdf)
49
+ year: 2018
@@ -7,54 +7,104 @@
7
7
 
8
8
  Contributors:
9
9
  Eric Poirier <eric.poirier@eclipse-foundation.org>
10
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
11
 
11
12
  SPDX-License-Identifier: EPL-2.0
12
13
  -->
13
14
 
14
- {{ $.Scratch.Set "counter" 0}}
15
- <ul class="nav nav-tabs" role="tablist">
16
- {{ range $index, $meeting_minute_types := .Site.Data.meeting_minutes.items }}
17
- {{ $counter := $.Scratch.Get "counter" }}
18
- {{ if eq $counter 0 }}
19
- <li role="presentation" class="active"><a href="#{{ $index }}" aria-controls="{{ $index }}" role="tab" data-toggle="tab">{{ humanize $index }}</a></li>
20
- {{ $.Scratch.Add "counter" 1}}
21
- {{ else }}
22
- <li role="presentation"><a href="#{{ $index }}" aria-controls="{{ $index }}" role="tab" data-toggle="tab">{{ humanize $index }}</a></li>
15
+ {{ $data := .Site.Data.meeting_minutes }}
16
+ {{ $yearly_sections_enabled := $data.yearly_sections_enabled | default false }}
17
+
18
+ {{/* Keeps track of years used by every committee */}}
19
+ {{ $committee_years_set := dict }}
20
+ {{ if $yearly_sections_enabled }}
21
+ {{ range $key, $committee := $data.items }}
22
+ {{ $years_set := slice }}
23
+ {{ range $committee }}
24
+ {{ if not (in $years_set .year) }}
25
+ {{ $years_set = $years_set | append .year }}
26
+ {{ end }}
27
+ {{ end }}
28
+ {{ $committee_years_set = merge $committee_years_set (dict $key $years_set) }}
23
29
  {{ end }}
24
30
  {{ end }}
25
- </ul>
26
-
27
31
 
28
- {{ $.Scratch.Set "types_counter" 0}}
29
- <div class="tab-content">
30
- {{ range $index_type, $meeting_minute_types := .Site.Data.meeting_minutes.items}}
31
- {{ $types_counter := $.Scratch.Get "types_counter" }}
32
- {{ if eq $types_counter 0 }}
33
- <div role="tabpanel" class="tab-pane active" id="{{$index_type}}">
32
+ <div class="eclipsefdn-meeting-minutes">
33
+ {{ $.Scratch.Set "counter" 0}}
34
+ <ul class="nav nav-tabs solstice-tabs" role="tablist">
35
+ {{ range $index, $meeting_minute_types := $data.items }}
36
+ {{ $counter := $.Scratch.Get "counter" }}
37
+ {{ if eq $counter 0 }}
38
+ <li role="presentation" class="active"><a href="#{{ $index }}" aria-controls="{{ $index }}" role="tab" data-toggle="tab">{{ humanize $index | title }}</a></li>
39
+ {{ $.Scratch.Add "counter" 1}}
34
40
  {{ else }}
35
- <div role="tabpanel" class="tab-pane" id="{{$index_type}}">
41
+ <li role="presentation"><a href="#{{ $index }}" aria-controls="{{ $index }}" role="tab" data-toggle="tab">{{ humanize $index | title }}</a></li>
36
42
  {{ end }}
37
- {{ $num_items := len $meeting_minute_types }}
38
- {{ $items_per_col := math.Ceil (div $num_items 3.0) }}
39
- {{ $.Scratch.Set "items_counter" 1 }}
40
- {{ $.Scratch.Set "items_counter_per_row" 1 }}
41
- <div class="row">
42
- {{ range $meeting_minute_types }}
43
- {{ $items_counter := $.Scratch.Get "items_counter" }}
44
- {{ $items_counter_per_row := $.Scratch.Get "items_counter_per_row" }}
45
- {{ if eq $items_counter_per_row 1}}
46
- <div class="col-sm-8"><ul>
47
- {{ end }}
48
- <li><a href="{{.url}}">{{.title}}</a></li>
49
- {{ if or (eq (float $items_counter_per_row) $items_per_col) (eq $items_counter $num_items) }}
50
- {{ $.Scratch.Set "items_counter_per_row" 0}}
51
- </ul></div>
52
- {{ end }}
53
- {{ $.Scratch.Add "items_counter" 1}}
54
- {{ $.Scratch.Add "items_counter_per_row" 1}}
43
+ {{ end }}
44
+ </ul>
45
+
46
+ {{ $.Scratch.Set "types_counter" 0}}
47
+ <div class="tab-content row">
48
+ {{ range $index_type, $meeting_minute_types := .Site.Data.meeting_minutes.items}}
49
+ {{ $types_counter := $.Scratch.Get "types_counter" }}
50
+ {{ if eq $types_counter 0 }}
51
+ <div role="tabpanel" class="tab-pane active" id="{{$index_type}}">
52
+ {{ else }}
53
+ <div role="tabpanel" class="tab-pane" id="{{$index_type}}">
54
+ {{ end }}
55
+ {{/* Creates an iterable sequence or slice. The value of the slice is equal to the year if yearly sections are enabled. */}}
56
+ {{ $sections := seq 1 }}
57
+ {{ if $yearly_sections_enabled }}
58
+ {{ $sections = index $committee_years_set $index_type }}
55
59
  {{ end }}
60
+
61
+ {{ range $section_name := $sections }}
62
+
63
+ {{ $year := "" }}
64
+ {{ if $yearly_sections_enabled }}
65
+ {{ $year = $section_name }}
66
+ {{ end }}
67
+
68
+ <div class="card-container col-sm-24">
69
+ {{ if $yearly_sections_enabled }} <div class="glyph-highlight left-align"><div class="glyph-container text">{{ $year }}</div><div class="glyph-bottom"></div></div>{{ end }}
70
+ <div class="card-panel bordered panel panel-default {{ if $yearly_sections_enabled -}} with-glyph {{- end }}">
71
+ <div class="panel-body">
72
+ <ul class="meeting-minutes-list tri-col margin-bottom-0">
73
+
74
+ {{/* Meeting minutes to render for current section */}}
75
+ {{ $meeting_minutes := slice }}
76
+ {{ if $yearly_sections_enabled }}
77
+ {{ range $meeting_minute := (where $meeting_minute_types "year" $year) }}
78
+ {{ $meeting_minutes = $meeting_minutes | append $meeting_minute }}
79
+ {{ end }}
80
+ {{ else }}
81
+ {{ $meeting_minutes = $meeting_minute_types }}
82
+ {{ end }}
83
+
84
+ {{ range $index, $el := $meeting_minutes }}
85
+
86
+ {{/* Handle relative and absolute paths */}}
87
+ {{ $url := "" }}
88
+ {{ if and $data.dir (not (hasPrefix $el.url "http") ) }}
89
+ {{ $url = (path.Join $data.dir $el.url) | absURL }}
90
+ {{ else }}
91
+ {{ $url = $el.url }}
92
+ {{ end }}
93
+
94
+ <li>
95
+ <a class="link-unstyled" href="{{ $url }}">
96
+ {{ $el.title }}
97
+ </a>
98
+ </li>
99
+
100
+ {{ end }}
101
+ </ul>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ {{ end }}
56
106
  </div>
57
- </div>
58
- {{ $.Scratch.Add "types_counter" 1}}
59
- {{ end }}
107
+ {{ $.Scratch.Add "types_counter" 1}}
108
+ {{ end }}
109
+ </div>
60
110
  </div>
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "webpack.min.js",
5
5
  "author": "Christopher Guindon",
6
6
  "license": "EPL-2.0",
7
- "version": "0.0.178",
7
+ "version": "0.0.179",
8
8
  "bugs": {
9
9
  "url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
10
10
  },
@@ -23,7 +23,7 @@
23
23
  "readmeFilename": "README.md",
24
24
  "dependencies": {
25
25
  "axios": "^0.21.1",
26
- "eclipsefdn-solstice-assets": "0.0.214",
26
+ "eclipsefdn-solstice-assets": "0.0.215",
27
27
  "json2yaml": "^1.1.0",
28
28
  "toml": "^3.0.0"
29
29
  },
package/webpack.mix.js CHANGED
@@ -19,7 +19,7 @@ mix.setPublicPath('static');
19
19
  mix.setResourceRoot('../');
20
20
 
21
21
  mix.less(
22
- './node_modules/eclipsefdn-solstice-assets/less/quicksilver/styles.less',
22
+ './node_modules/eclipsefdn-solstice-assets/less/quicksilver/styles.less',
23
23
  'static/css/styles.css'
24
24
  );
25
25
 
@@ -1,34 +0,0 @@
1
- ---
2
- title: "Meeting Minutes"
3
- date: 2019-04-17T15:52:13-04:00
4
- description: ""
5
- categories: []
6
- keywords: []
7
- slug: ""
8
- aliases: []
9
- toc: false
10
- draft: false
11
- ---
12
-
13
- You can add meeting minutes to a markdown file using the shortcode: **{{&lt; meeting_minutes &gt;}}**
14
-
15
- To add meeting minutes, create a **meeting_minutes.yml** file in the data folder and add the code below:
16
-
17
- ~~~~
18
- items:
19
- type_1:
20
- -
21
- title: Type 1 - Hugo Solstice Theme Num-1
22
- url: https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme
23
-
24
- type_2:
25
- -
26
- title: Type 2 - Hugo Solstice Theme Num-1
27
- url: https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme
28
- ~~~~
29
-
30
- **Examples:**
31
-
32
- Here is an example of the output of the meeting minutes shortcode.
33
-
34
- {{< meeting_minutes >}}