Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lecture materials
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marius Rixen
lecture materials
Commits
f7c553bb
Unverified
Commit
f7c553bb
authored
1 year ago
by
Lukas Kluft
Browse files
Options
Downloads
Patches
Plain Diff
Run iCal creation as post-processing and link on index
parent
32fce96b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+10
-4
10 additions, 4 deletions
.gitlab-ci.yml
_quarto.yml
+1
-0
1 addition, 0 deletions
_quarto.yml
index.qmd
+2
-0
2 additions, 0 deletions
index.qmd
scripts/md2ical.py
+9
-2
9 additions, 2 deletions
scripts/md2ical.py
with
22 additions
and
6 deletions
.gitlab-ci.yml
+
10
−
4
View file @
f7c553bb
...
@@ -63,17 +63,23 @@ run_pre_commit_hooks:
...
@@ -63,17 +63,23 @@ run_pre_commit_hooks:
expire_in
:
20min
expire_in
:
20min
preview
:
preview
:
<<
:
*build
extends
:
.build
variables
:
DEPLOY_URL
:
https://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public
ICAL_URL
:
webcal://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/lectures.ics
environment
:
environment
:
name
:
review/$CI_COMMIT_REF_NAME
name
:
review/$CI_COMMIT_REF_NAME
url
:
https://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public
/index.html
url
:
$DEPLOY_URL
/index.html
rules
:
rules
:
-
if
:
$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
pages
:
pages
:
<<
:
*build
extends
:
.build
variables
:
DEPLOY_URL
:
https://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN/$CI_PROJECT_NAME
ICAL_URL
:
webcal://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN/$CI_PROJECT_NAME/lectures.ics
environment
:
environment
:
name
:
production
name
:
production
url
:
https://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN/$CI_PROJECT_NAME
url
:
$DEPLOY_URL
rules
:
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
This diff is collapsed.
Click to expand it.
_quarto.yml
+
1
−
0
View file @
f7c553bb
project
:
project
:
type
:
website
type
:
website
pre-render
:
scripts/prepare.py
pre-render
:
scripts/prepare.py
post-render
:
scripts/md2ical.py
output-dir
:
public
output-dir
:
public
website
:
website
:
...
...
This diff is collapsed.
Click to expand it.
index.qmd
+
2
−
0
View file @
f7c553bb
...
@@ -27,3 +27,5 @@ If not, don't worry, the lecture will be in a computer room.
...
@@ -27,3 +27,5 @@ If not, don't worry, the lecture will be in a computer room.
| 2024-06-25 | File & Data systems | Flo, Kalle |
| 2024-06-25 | File & Data systems | Flo, Kalle |
| 2024-07-02 | Memory hierarchies | Domink, JFE |
| 2024-07-02 | Memory hierarchies | Domink, JFE |
| 2024-07-09 | Student talks for improving grades |(tbd)|
| 2024-07-09 | Student talks for improving grades |(tbd)|
Subscribe to [iCal]({{< env ICAL_URL >}})
This diff is collapsed.
Click to expand it.
scripts/md2ical.py
+
9
−
2
View file @
f7c553bb
#!/usr/bin/env python3
#!/usr/bin/env python3
import
argparse
import
argparse
import
os
import
pathlib
import
markdown2
import
markdown2
from
bs4
import
BeautifulSoup
from
bs4
import
BeautifulSoup
...
@@ -38,8 +40,13 @@ def main():
...
@@ -38,8 +40,13 @@ def main():
prog
=
"
md2ical
"
,
prog
=
"
md2ical
"
,
description
=
"
Convert a Markdown calendar table to an iCal calendar.
"
,
description
=
"
Convert a Markdown calendar table to an iCal calendar.
"
,
)
)
parser
.
add_argument
(
"
-f
"
,
"
--filename
"
,
required
=
True
)
parser
.
add_argument
(
"
-f
"
,
"
--filename
"
,
default
=
"
index.qmd
"
)
parser
.
add_argument
(
"
-o
"
,
"
--output
"
,
required
=
True
)
parser
.
add_argument
(
"
-o
"
,
"
--output
"
,
default
=
pathlib
.
Path
(
os
.
environ
.
get
(
"
QUARTO_PROJECT_OUTPUT_DIR
"
,
""
))
/
"
lectures.ics
"
,
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment