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
generic software skills
lecture materials
Commits
152f6a69
Commit
152f6a69
authored
1 year ago
by
Tobias Koelling
Browse files
Options
Downloads
Patches
Plain Diff
generate summary based on navigation entries
parent
26b6d06b
No related branches found
No related tags found
1 merge request
!20
change sidenav to explicit listing of lectures
Pipeline
#63108
passed
1 year ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
requirements.txt
+1
-0
1 addition, 0 deletions
requirements.txt
scripts/prepare.py
+9
-2
9 additions, 2 deletions
scripts/prepare.py
with
10 additions
and
2 deletions
requirements.txt
+
1
−
0
View file @
152f6a69
...
...
@@ -7,3 +7,4 @@ requests
aiohttp
zarr
matplotlib
pyyaml
This diff is collapsed.
Click to expand it.
scripts/prepare.py
+
9
−
2
View file @
152f6a69
import
glob
import
logging
import
yaml
logging
.
basicConfig
()
logging
.
getLogger
().
setLevel
(
logging
.
DEBUG
)
...
...
@@ -24,7 +24,14 @@ title: "Lecture Overview"
def
generate_summary
():
files
=
sorted
(
glob
.
glob
(
"
lectures/[01]*/slides.qmd
"
))
project_config
=
yaml
.
safe_load
(
open
(
"
_quarto.yml
"
))
files
=
[
fn
for
s
in
project_config
[
"
website
"
][
"
sidebar
"
][
"
contents
"
]
if
s
.
get
(
"
section
"
)
==
"
Lectures
"
for
fn
in
s
[
"
contents
"
]
or
[]
]
all_entries
=
[]
for
x
in
files
:
...
...
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