eclipsefdn-hugo-solstice-theme 0.0.180 → 0.0.181
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.
- package/exampleSite/config/_default/config.toml +1 -0
- package/exampleSite/config/_default/menus.en.toml +1 -1
- package/exampleSite/content/components/eclipsefdn_meeting_minutes/_index.md +68 -0
- package/exampleSite/content/components/{meeting_minutes → eclipsefdn_meeting_minutes}/documents/specification_committee/minutes-specification-june-28-2018.pdf +0 -0
- package/exampleSite/content/components/eclipsefdn_meeting_minutes/yearly_sections_enabled.md +13 -0
- package/exampleSite/content/components/meeting_minutes.md +31 -0
- package/exampleSite/data/meeting_minutes.yml +3 -4
- package/layouts/shortcodes/eclipsefdn_meeting_minutes.html +138 -0
- package/layouts/shortcodes/meeting_minutes.html +43 -115
- package/package.json +2 -2
- package/exampleSite/content/components/meeting_minutes/index.md +0 -47
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: EclipseFdn Meeting Minutes
|
|
3
|
+
hide_sidebar: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You can add meeting minutes to a markdown file using the shortcode:
|
|
7
|
+
`{{</* eclipsefdn_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
|
+
{{< eclipsefdn_meeting_minutes >}}
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Name | Type | Description |
|
|
18
|
+
| ------------------------- | -------- | ----------- | ------------------------------------------------------------- |
|
|
19
|
+
| `tabs_class` | `string | nil` | replace the default class for the navigation tabs |
|
|
20
|
+
| `yearly_sections_enabled` | `boolean | nil` | splits meeting minutes into yearly sections if set to `true`. |
|
|
21
|
+
|
|
22
|
+
### Example of `tabs_class`
|
|
23
|
+
|
|
24
|
+
If your site has its own styles for navigation tabs, it may be using the
|
|
25
|
+
`.solstice-tabs` class. If you want the meeting minutes tabs to look identical
|
|
26
|
+
to your other tabs, pass in `solstice-tabs` or your own custom class into the
|
|
27
|
+
`tabs_class` parameter.
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
{{</* eclipsefdn_meeting_minutes tabs_class="solstice-tabs" */>}}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### More examples of parameters
|
|
34
|
+
|
|
35
|
+
- [yearly_sections_enabled example](./yearly_sections_enabled)
|
|
36
|
+
|
|
37
|
+
## Setup
|
|
38
|
+
|
|
39
|
+
To add meeting minutes, create a **meeting_minutes.yml** file in the data
|
|
40
|
+
folder. The YAML file should have a similar shape to the following:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
dir: '/path/to/directory/with/committees/'
|
|
44
|
+
yearly_sections_enabled: true
|
|
45
|
+
order:
|
|
46
|
+
- specification_committee
|
|
47
|
+
- marketing_committee
|
|
48
|
+
items:
|
|
49
|
+
marketing_committee:
|
|
50
|
+
- title: August 18, 2022 (pdf)
|
|
51
|
+
url: marketing_committee/2022-08-18-marketing-minutes.pdf
|
|
52
|
+
year: 2022
|
|
53
|
+
specification_committee:
|
|
54
|
+
- title: June 28, 2018 (pdf)
|
|
55
|
+
url: https://jakarta.ee/about/meeting_minutes/steering_committee/2018-06-28-specification-minutes.pdf
|
|
56
|
+
year: 2018
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
#### Data File Properties
|
|
60
|
+
|
|
61
|
+
| Property | Description |
|
|
62
|
+
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
63
|
+
| `dir` | is the directory for which to search for the meeting minutes. |
|
|
64
|
+
| `order` | modifies the order of the tabs. It needs to be an array of committee names corresponding to their key under `items`. If this is not set, the tabs will be alphabetically sorted. |
|
|
65
|
+
| `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. |
|
|
66
|
+
| `title` | is the link text of a meeting minutes item. |
|
|
67
|
+
| `url` | locates the meeting minute file. If `dir` was set, it will locate the file from `dir`. |
|
|
68
|
+
| `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`. |
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Demonstrating yearly_sections_enabled Param
|
|
3
|
+
hide_sidebar: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The `yearly_sections_enabled` parameter splits meeting minutes into yearly sections if set to `true`.
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
{{</* eclipsefdn_meeting_minutes yearly_sections_enabled="true" */>}}
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
{{< eclipsefdn_meeting_minutes yearly_sections_enabled="true" >}}
|
|
13
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Meeting Minutes"
|
|
3
|
+
date: 2019-04-17T15:52:13-04:00
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
{{< grid/div class="alert alert-danger" isMarkdown="false" >}}
|
|
7
|
+
The "meeting_minutes" shortcode is deprecated and will be removed in Hugo Solstice Theme v1.0.
|
|
8
|
+
{{</ grid/div >}}
|
|
9
|
+
|
|
10
|
+
You can add meeting minutes to a markdown file using the shortcode: **{{< meeting_minutes >}}**
|
|
11
|
+
|
|
12
|
+
To add meeting minutes, create a **meeting_minutes.yml** file in the data folder and add the code below:
|
|
13
|
+
|
|
14
|
+
~~~~
|
|
15
|
+
items:
|
|
16
|
+
type_1:
|
|
17
|
+
-
|
|
18
|
+
title: Type 1 - Hugo Solstice Theme Num-1
|
|
19
|
+
url: https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme
|
|
20
|
+
|
|
21
|
+
type_2:
|
|
22
|
+
-
|
|
23
|
+
title: Type 2 - Hugo Solstice Theme Num-1
|
|
24
|
+
url: https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme
|
|
25
|
+
~~~~
|
|
26
|
+
|
|
27
|
+
**Examples:**
|
|
28
|
+
|
|
29
|
+
Here is an example of the output of the meeting minutes shortcode.
|
|
30
|
+
|
|
31
|
+
{{< meeting_minutes >}}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
dir: '/docs/hugo/components/meeting_minutes/documents/'
|
|
1
|
+
dir: '/docs/hugo/components/eclipsefdn_meeting_minutes/documents/'
|
|
3
2
|
order:
|
|
4
3
|
- specification_committee
|
|
5
4
|
- marketing_committee
|
|
@@ -46,6 +45,6 @@ items:
|
|
|
46
45
|
title: February 11, 2021 (pdf)
|
|
47
46
|
year: 2021
|
|
48
47
|
specification_committee:
|
|
49
|
-
- url: specification_committee/minutes-specification-june-
|
|
50
|
-
title: June
|
|
48
|
+
- url: specification_committee/minutes-specification-june-28-2018.pdf
|
|
49
|
+
title: June 28, 2018 (pdf)
|
|
51
50
|
year: 2018
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) 2019, 2023 Eclipse Foundation, Inc.
|
|
3
|
+
|
|
4
|
+
This program and the accompanying materials are made available under the
|
|
5
|
+
terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
|
|
8
|
+
Contributors:
|
|
9
|
+
Eric Poirier <eric.poirier@eclipse-foundation.org>
|
|
10
|
+
Olivier Goulet <olivier.goulet@eclipse-foundation.org>
|
|
11
|
+
|
|
12
|
+
SPDX-License-Identifier: EPL-2.0
|
|
13
|
+
-->
|
|
14
|
+
|
|
15
|
+
{{ $tabs_class := .Get "tabs_class" | default "meeting-minutes-tabs-default" }}
|
|
16
|
+
{{ $yearly_sections_enabled := .Get "yearly_sections_enabled" | default false }}
|
|
17
|
+
{{ $data := .Site.Data.meeting_minutes }}
|
|
18
|
+
|
|
19
|
+
{{/* We need to create a set of years for each committee in order to know which year sections to render. */}}
|
|
20
|
+
{{ $committee_years_set := dict }}
|
|
21
|
+
{{ if $yearly_sections_enabled }}
|
|
22
|
+
{{ range $key, $committee := $data.items }}
|
|
23
|
+
{{ $years_set := slice }}
|
|
24
|
+
{{ range $committee }}
|
|
25
|
+
{{ if not (in $years_set .year) }}
|
|
26
|
+
{{ $years_set = $years_set | append .year }}
|
|
27
|
+
{{ end }}
|
|
28
|
+
{{ end }}
|
|
29
|
+
{{ $committee_years_set = merge $committee_years_set (dict $key $years_set) }}
|
|
30
|
+
{{ end }}
|
|
31
|
+
{{ end }}
|
|
32
|
+
|
|
33
|
+
{{/*
|
|
34
|
+
We need to sort the committees by the `order` field in the data file. To do this, we create an ordered slice containing
|
|
35
|
+
a dict with the committee name as the key and the committee object as value. The committee object which originally comes
|
|
36
|
+
from `items` in the data file. If no `order` field was provided then the default behavior of YAML gets used
|
|
37
|
+
(alphabetical).
|
|
38
|
+
*/}}
|
|
39
|
+
{{ $ordered_committees := slice }}
|
|
40
|
+
{{ if $data.order }}
|
|
41
|
+
{{ range $committee_name := $data.order }}
|
|
42
|
+
{{ $committee := index $data.items $committee_name }}
|
|
43
|
+
{{ $ordered_committees = $ordered_committees | append (dict "committee_name" $committee_name "items" $committee) }}
|
|
44
|
+
{{ end }}
|
|
45
|
+
{{ else }}
|
|
46
|
+
{{ range $committee_name, $committee := $data.items }}
|
|
47
|
+
{{ $ordered_committees = $ordered_committees | append (dict "committee_name" $committee_name "items" $committee) }}
|
|
48
|
+
{{ end }}
|
|
49
|
+
{{ end }}
|
|
50
|
+
|
|
51
|
+
{{ $committee_count := len $data.items }}
|
|
52
|
+
|
|
53
|
+
<div class="eclipsefdn-meeting-minutes">
|
|
54
|
+
{{/* We don't need to render the nav tabs if there is only one committee */}}
|
|
55
|
+
{{ if not (eq $committee_count 1) }}
|
|
56
|
+
{{ $.Scratch.Set "counter" 0}}
|
|
57
|
+
<ul class="meeting-minutes-tab nav nav-tabs link-unstyled {{ $tabs_class }}" role="tablist">
|
|
58
|
+
{{ range $ordered_committees }}
|
|
59
|
+
{{ $index := index . "committee_name" }}
|
|
60
|
+
{{ $counter := $.Scratch.Get "counter" }}
|
|
61
|
+
{{ if eq $counter 0 }}
|
|
62
|
+
<li role="presentation" class="meeting-minutes-tab-item active"><a class="meeting-minutes-tab-item-link" href="#{{ $index }}" aria-controls="{{ $index }}" role="tab" data-toggle="tab">{{ humanize $index | title }}</a></li>
|
|
63
|
+
{{ $.Scratch.Add "counter" 1}}
|
|
64
|
+
{{ else }}
|
|
65
|
+
<li role="presentation" class="meeting-minutes-tab-item"><a class="meeting-minutes-tab-item-link" href="#{{ $index }}" aria-controls="{{ $index }}" role="tab" data-toggle="tab">{{ humanize $index | title }}</a></li>
|
|
66
|
+
{{ end }}
|
|
67
|
+
{{ end }}
|
|
68
|
+
</ul>
|
|
69
|
+
{{ end }}
|
|
70
|
+
|
|
71
|
+
{{ $.Scratch.Set "types_counter" 0}}
|
|
72
|
+
<div class="tab-content row">
|
|
73
|
+
{{ range $ordered_committees }}
|
|
74
|
+
{{ $committee_name := index . "committee_name" }}
|
|
75
|
+
{{ $items := index . "items" }}
|
|
76
|
+
|
|
77
|
+
{{ $types_counter := $.Scratch.Get "types_counter" }}
|
|
78
|
+
{{ if eq $types_counter 0 }}
|
|
79
|
+
<div role="tabpanel" class="tab-pane active" id="{{$committee_name}}">
|
|
80
|
+
{{ else }}
|
|
81
|
+
<div role="tabpanel" class="tab-pane" id="{{$committee_name}}">
|
|
82
|
+
{{ end }}
|
|
83
|
+
{{/* Creates an iterable sequence or slice. The value of the slice is equal to the year if yearly sections are enabled. */}}
|
|
84
|
+
{{ $sections := seq 1 }}
|
|
85
|
+
{{ if $yearly_sections_enabled }}
|
|
86
|
+
{{ $sections = index $committee_years_set $committee_name }}
|
|
87
|
+
{{ end }}
|
|
88
|
+
|
|
89
|
+
{{ range $section_name := $sections }}
|
|
90
|
+
|
|
91
|
+
{{ $year := "" }}
|
|
92
|
+
{{ if $yearly_sections_enabled }}
|
|
93
|
+
{{ $year = $section_name }}
|
|
94
|
+
{{ end }}
|
|
95
|
+
|
|
96
|
+
<div class="card-container col-sm-24">
|
|
97
|
+
{{ if $yearly_sections_enabled }} <div class="glyph-highlight left-align"><div class="glyph-container text">{{ $year }}</div><div class="glyph-bottom"></div></div>{{ end }}
|
|
98
|
+
<div class="card-panel bordered panel panel-default {{ if $yearly_sections_enabled -}} with-glyph {{- end }}">
|
|
99
|
+
<div class="panel-body">
|
|
100
|
+
<ul class="meeting-minutes-list tri-col margin-bottom-0">
|
|
101
|
+
|
|
102
|
+
{{/* Meeting minutes to render for current section */}}
|
|
103
|
+
{{ $meeting_minutes := slice }}
|
|
104
|
+
{{ if $yearly_sections_enabled }}
|
|
105
|
+
{{ range $meeting_minute := (where $items "year" $year) }}
|
|
106
|
+
{{ $meeting_minutes = $meeting_minutes | append $meeting_minute }}
|
|
107
|
+
{{ end }}
|
|
108
|
+
{{ else }}
|
|
109
|
+
{{ $meeting_minutes = $items }}
|
|
110
|
+
{{ end }}
|
|
111
|
+
|
|
112
|
+
{{ range $index, $el := $meeting_minutes }}
|
|
113
|
+
|
|
114
|
+
{{/* Handle relative and absolute paths */}}
|
|
115
|
+
{{ $url := "" }}
|
|
116
|
+
{{ if and $data.dir (not (hasPrefix $el.url "http") ) }}
|
|
117
|
+
{{ $url = (path.Join $data.dir $el.url) | absURL }}
|
|
118
|
+
{{ else }}
|
|
119
|
+
{{ $url = $el.url }}
|
|
120
|
+
{{ end }}
|
|
121
|
+
|
|
122
|
+
<li>
|
|
123
|
+
<a class="link-unstyled" href="{{ $url }}">
|
|
124
|
+
{{ $el.title }}
|
|
125
|
+
</a>
|
|
126
|
+
</li>
|
|
127
|
+
|
|
128
|
+
{{ end }}
|
|
129
|
+
</ul>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
{{ end }}
|
|
134
|
+
</div>
|
|
135
|
+
{{ $.Scratch.Add "types_counter" 1}}
|
|
136
|
+
{{ end }}
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
Copyright (c) 2019 Eclipse Foundation, Inc.
|
|
2
|
+
Copyright (c) 2019, 2023 Eclipse Foundation, Inc.
|
|
3
3
|
|
|
4
4
|
This program and the accompanying materials are made available under the
|
|
5
5
|
terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -11,127 +11,55 @@
|
|
|
11
11
|
|
|
12
12
|
SPDX-License-Identifier: EPL-2.0
|
|
13
13
|
-->
|
|
14
|
-
|
|
15
|
-
{{
|
|
16
|
-
{{
|
|
17
|
-
|
|
18
|
-
{{/* We need to create a set of years for each committee in order to know which year sections to render. */}}
|
|
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) }}
|
|
29
|
-
{{ end }}
|
|
14
|
+
{{ $migration_link := "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/wikis/Hugo-Solstice-Theme-1.x.x/Migrating-to-1.x.x#replacing-meeting_minutes-shortcode-with-eclipsefdn_meeting_minutes" }}
|
|
15
|
+
{{ if not (eq .Site.Params.hide_deprecation_warnings true) }}
|
|
16
|
+
{{ warnf "Deprecation Warning: The meeting_minutes shortcode is deprecated and will be removed in Hugo Solstice Theme 1.0. Consider using `eclipsefdn_meeting_minutes`. Find out how to migrate here: %s" $migration_link }}
|
|
30
17
|
{{ end }}
|
|
31
18
|
|
|
32
|
-
{{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
{{
|
|
39
|
-
{{
|
|
40
|
-
|
|
41
|
-
{{ $committee := index $data.items $committee_name }}
|
|
42
|
-
{{ $ordered_committees = $ordered_committees | append (dict "committee_name" $committee_name "items" $committee) }}
|
|
43
|
-
{{ end }}
|
|
44
|
-
{{ else }}
|
|
45
|
-
{{ range $committee_name, $committee := $data.items }}
|
|
46
|
-
{{ $ordered_committees = $ordered_committees | append (dict "committee_name" $committee_name "items" $committee) }}
|
|
19
|
+
{{ $.Scratch.Set "counter" 0}}
|
|
20
|
+
<ul class="nav nav-tabs" role="tablist">
|
|
21
|
+
{{ range $index, $meeting_minute_types := .Site.Data.meeting_minutes.items }}
|
|
22
|
+
{{ $counter := $.Scratch.Get "counter" }}
|
|
23
|
+
{{ if eq $counter 0 }}
|
|
24
|
+
<li role="presentation" class="active"><a href="#{{ $index }}" aria-controls="{{ $index }}" role="tab" data-toggle="tab">{{ humanize $index }}</a></li>
|
|
25
|
+
{{ $.Scratch.Add "counter" 1}}
|
|
26
|
+
{{ else }}
|
|
27
|
+
<li role="presentation"><a href="#{{ $index }}" aria-controls="{{ $index }}" role="tab" data-toggle="tab">{{ humanize $index }}</a></li>
|
|
47
28
|
{{ end }}
|
|
48
29
|
{{ end }}
|
|
30
|
+
</ul>
|
|
49
31
|
|
|
50
|
-
{{ $committee_count := len $data.items }}
|
|
51
32
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
{{
|
|
55
|
-
{{ $.Scratch.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
{{ if eq $counter 0 }}
|
|
61
|
-
<li role="presentation" class="active"><a href="#{{ $index }}" aria-controls="{{ $index }}" role="tab" data-toggle="tab">{{ humanize $index | title }}</a></li>
|
|
62
|
-
{{ $.Scratch.Add "counter" 1}}
|
|
63
|
-
{{ else }}
|
|
64
|
-
<li role="presentation"><a href="#{{ $index }}" aria-controls="{{ $index }}" role="tab" data-toggle="tab">{{ humanize $index | title }}</a></li>
|
|
65
|
-
{{ end }}
|
|
33
|
+
{{ $.Scratch.Set "types_counter" 0}}
|
|
34
|
+
<div class="tab-content">
|
|
35
|
+
{{ range $index_type, $meeting_minute_types := .Site.Data.meeting_minutes.items}}
|
|
36
|
+
{{ $types_counter := $.Scratch.Get "types_counter" }}
|
|
37
|
+
{{ if eq $types_counter 0 }}
|
|
38
|
+
<div role="tabpanel" class="tab-pane active" id="{{$index_type}}">
|
|
39
|
+
{{ else }}
|
|
40
|
+
<div role="tabpanel" class="tab-pane" id="{{$index_type}}">
|
|
66
41
|
{{ end }}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
{{ if eq $types_counter 0 }}
|
|
78
|
-
<div role="tabpanel" class="tab-pane active" id="{{$committee_name}}">
|
|
79
|
-
{{ else }}
|
|
80
|
-
<div role="tabpanel" class="tab-pane" id="{{$committee_name}}">
|
|
81
|
-
{{ end }}
|
|
82
|
-
{{/* Creates an iterable sequence or slice. The value of the slice is equal to the year if yearly sections are enabled. */}}
|
|
83
|
-
{{ $sections := seq 1 }}
|
|
84
|
-
{{ if $yearly_sections_enabled }}
|
|
85
|
-
{{ $sections = index $committee_years_set $committee_name }}
|
|
86
|
-
{{ end }}
|
|
87
|
-
|
|
88
|
-
{{ range $section_name := $sections }}
|
|
89
|
-
|
|
90
|
-
{{ $year := "" }}
|
|
91
|
-
{{ if $yearly_sections_enabled }}
|
|
92
|
-
{{ $year = $section_name }}
|
|
42
|
+
{{ $num_items := len $meeting_minute_types }}
|
|
43
|
+
{{ $items_per_col := math.Ceil (div $num_items 3.0) }}
|
|
44
|
+
{{ $.Scratch.Set "items_counter" 1 }}
|
|
45
|
+
{{ $.Scratch.Set "items_counter_per_row" 1 }}
|
|
46
|
+
<div class="row">
|
|
47
|
+
{{ range $meeting_minute_types }}
|
|
48
|
+
{{ $items_counter := $.Scratch.Get "items_counter" }}
|
|
49
|
+
{{ $items_counter_per_row := $.Scratch.Get "items_counter_per_row" }}
|
|
50
|
+
{{ if eq $items_counter_per_row 1}}
|
|
51
|
+
<div class="col-sm-8"><ul>
|
|
93
52
|
{{ end }}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
{{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
{{ $meeting_minutes := slice }}
|
|
103
|
-
{{ if $yearly_sections_enabled }}
|
|
104
|
-
{{ range $meeting_minute := (where $items "year" $year) }}
|
|
105
|
-
{{ $meeting_minutes = $meeting_minutes | append $meeting_minute }}
|
|
106
|
-
{{ end }}
|
|
107
|
-
{{ else }}
|
|
108
|
-
{{ $meeting_minutes = $items }}
|
|
109
|
-
{{ end }}
|
|
110
|
-
|
|
111
|
-
{{ range $index, $el := $meeting_minutes }}
|
|
112
|
-
|
|
113
|
-
{{/* Handle relative and absolute paths */}}
|
|
114
|
-
{{ $url := "" }}
|
|
115
|
-
{{ if and $data.dir (not (hasPrefix $el.url "http") ) }}
|
|
116
|
-
{{ $url = (path.Join $data.dir $el.url) | absURL }}
|
|
117
|
-
{{ else }}
|
|
118
|
-
{{ $url = $el.url }}
|
|
119
|
-
{{ end }}
|
|
120
|
-
|
|
121
|
-
<li>
|
|
122
|
-
<a class="link-unstyled" href="{{ $url }}">
|
|
123
|
-
{{ $el.title }}
|
|
124
|
-
</a>
|
|
125
|
-
</li>
|
|
126
|
-
|
|
127
|
-
{{ end }}
|
|
128
|
-
</ul>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
{{ end }}
|
|
53
|
+
<li><a href="{{.url}}">{{.title}}</a></li>
|
|
54
|
+
{{ if or (eq (float $items_counter_per_row) $items_per_col) (eq $items_counter $num_items) }}
|
|
55
|
+
{{ $.Scratch.Set "items_counter_per_row" 0}}
|
|
56
|
+
</ul></div>
|
|
57
|
+
{{ end }}
|
|
58
|
+
{{ $.Scratch.Add "items_counter" 1}}
|
|
59
|
+
{{ $.Scratch.Add "items_counter_per_row" 1}}
|
|
60
|
+
{{ end }}
|
|
133
61
|
</div>
|
|
134
|
-
|
|
135
|
-
{{
|
|
136
|
-
|
|
62
|
+
</div>
|
|
63
|
+
{{ $.Scratch.Add "types_counter" 1}}
|
|
64
|
+
{{ end }}
|
|
137
65
|
</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.
|
|
7
|
+
"version": "0.0.181",
|
|
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.
|
|
26
|
+
"eclipsefdn-solstice-assets": "0.0.216",
|
|
27
27
|
"json2yaml": "^1.1.0",
|
|
28
28
|
"toml": "^3.0.0"
|
|
29
29
|
},
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
order:
|
|
24
|
-
- specification_committee
|
|
25
|
-
- marketing_committee
|
|
26
|
-
items:
|
|
27
|
-
marketing_committee:
|
|
28
|
-
- title: August 18, 2022 (pdf)
|
|
29
|
-
url: marketing_committee/2022-08-18-marketing-minutes.pdf
|
|
30
|
-
year: 2022
|
|
31
|
-
specification_committee:
|
|
32
|
-
- title: June 28, 2018 (pdf)
|
|
33
|
-
url: https://jakarta.ee/about/meeting_minutes/steering_committee/2018-06-28-specification-minutes.pdf
|
|
34
|
-
year: 2018
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
#### Properties
|
|
38
|
-
|
|
39
|
-
| Property | Description |
|
|
40
|
-
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
41
|
-
| `dir` | is the directory for which to search for the meeting minutes. |
|
|
42
|
-
| `yearly_sections_enabled` | splits meeting minutes into yearly sections if set to `true`. |
|
|
43
|
-
| `order` | modifies the order of the tabs. It needs to be an array of committee names corresponding to their key under `items`. If this is not set, the tabs will be alphabetically sorted. |
|
|
44
|
-
| `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. |
|
|
45
|
-
| `title` | is the link text of a meeting minutes item. |
|
|
46
|
-
| `url` | locates the meeting minute file. If `dir` was set, it will locate the file from `dir`. |
|
|
47
|
-
| `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`. |
|