Skip to content

Commit

Permalink
Fix roadmap schedule map
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Dec 3, 2024
1 parent 0cd93f7 commit 3473296
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ hugo-run-dev: ## Run the server at localhost:1313 with hugo
# U T I L S C O M M A N D S
# ----------------------------------------------------------------------------

csv/schedule.csv scripts/schedule.ics data/conf.json:
assets/csv/schedule.csv scripts/schedule.ics data/conf.json:
python scripts/update-schedule.py

clearschedule:
$(RM) csv/schedule.csv data/conf.json
$(RM) assets/csv/schedule.csv data/conf.json

schedule: clearschedule csv/schedule.csv scripts/schedule.ics data/conf.json ## Update schedule after release
schedule: clearschedule assets/csv/schedule.csv scripts/schedule.ics data/conf.json ## Update schedule after release
git pull --autostash --rebase
git commit -a -m "Update for $(shell jq -r '.release' data/conf.json)/$(shell jq -r '.ltrrelease' data/conf.json) point releases"

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ Download the latest version and then do
Example, assuming that you use a dedicated directory for your local binaries :

```sh
mkdir -p ~/apps/hugo_128/
wget https://github.com/gohugoio/hugo/releases/download/v0.128.0/hugo_extended_0.128.0_linux-amd64.deb --output-document ~/apps/hugo_128/hugo_extended_0.128.0_linux-amd64.deb
dpkg -x hugo_extended_0.128.0_linux-amd64.deb
mkdir -p ~/apps/hugo_139/
wget https://github.com/gohugoio/hugo/releases/download/v0.139.3/hugo_extended_0.139.3_linux-amd64.deb --output-document ~/apps/hugo_128/hugo_extended_0.139.3_linux-amd64.deb
dpkg -x hugo_extended_0.139.3_linux-amd64.deb
~/apps/hugo_128/usr/local/bin/hugo server
```

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/update-schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def adduid(ev, uid):

rows.append([event, lr, ltr, dev, date, weekno, weeks])

o = open("csv/schedule.csv", "w")
o = open("assets/csv/schedule.csv", "w")

o.write('"Event","Latest","Long-Term Repo","Freeze","Date","Week #","Weeks"\n')

Expand Down
15 changes: 10 additions & 5 deletions themes/hugo-bulma-blocks-theme/layouts/shortcodes/csv-table.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
{{ $data := 0 }}
{{ with .Get "file" }}
{{ $resource := resources.Get . }}
{{ if $resource }}
{{ $data = $resource.Content | transform.Unmarshal }}
{{ $path := .Get "file" }}
{{ with resources.Get $path }}
{{ if . }}
{{ with . | transform.Unmarshal }}
{{ $data = . }}
{{ else }}
{{ printf "Error unmarshalling data from: %s" $path }}
{{ end }}
{{ else }}
<p>Error: Could not load resource {{ . }}</p>
{{ printf "Error: Resource not found at %s" $path }}
{{ end }}
{{ else }}
{{ $data = .Inner | unmarshal }}
{{ end }}

{{ if $data }}
<div class="schedule-container">
<table class="roadmap">
Expand Down

0 comments on commit 3473296

Please sign in to comment.