Skip to content
Snippets Groups Projects
Commit 152f6a69 authored by Tobias Koelling's avatar Tobias Koelling
Browse files

generate summary based on navigation entries

parent 26b6d06b
No related branches found
No related tags found
1 merge request!20change sidenav to explicit listing of lectures
Pipeline #63108 passed
......@@ -7,3 +7,4 @@ requests
aiohttp
zarr
matplotlib
pyyaml
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment