Skip to content

Layout updates#86

Open
flicksolutions wants to merge 11 commits intomainfrom
layout-updates
Open

Layout updates#86
flicksolutions wants to merge 11 commits intomainfrom
layout-updates

Conversation

@flicksolutions
Copy link
Copy Markdown
Member

@flicksolutions flicksolutions commented Apr 15, 2026

Pull request

Proposed changes

There are layout changes that I did here: The sidebar is now invisible on the Home page. For that reason I added the Events to the top navbar. The most notable change is the Events: They are now split into current and past events with the past events being hidden by default. I've also added a daily build cron job in order to keep this list correct.

Types of changes

  • New feature (non-breaking change which adds functionality).
  • Enhancement (non-breaking change which enhances functionality)
  • Bug Fix (non-breaking change which fixes an issue).
  • Breaking change (fix or feature that would cause existing functionality to change).

Checklist

  • I have read the README document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Summary by CodeRabbit

  • New Features

    • Added pre-rendering of Events into separate upcoming/past listings and collapsible Past Events on the homepage
    • Added top "Events" nav link for quick access
  • Improvements

    • Events now sourced from generated YAML files and sorted/filtered by event date
    • Sidebar disabled for a cleaner homepage
  • Documentation

    • Added repository guidelines and contributor instructions
  • Chores

    • Ignore generated event YAMLs; added scheduled site render in CI; added YAML parsing dependency

@flicksolutions
Copy link
Copy Markdown
Member Author

@dk18q074 Do you know how to preview this PR so you can check whether this is the output you wanted?

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the site layout and event presentation by removing the homepage sidebar, moving “Events” into the top navbar, and splitting the homepage Events listing into upcoming vs. past (collapsed by default) with a scheduled build to keep the split current.

Changes:

  • Hide the sidebar on the homepage and add an “Events” link to the top navbar.
  • Split Events into “upcoming” and “past” listings on the homepage (past hidden by default) using a Quarto pre-render Python script.
  • Add a daily GitHub Actions schedule to rebuild/publish the site so the event split stays up to date.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
index.qmd Disables sidebar on home; replaces single Events listing with upcoming + collapsible past listing.
_quarto.yml Adds pre-render hook and moves Events link from sidebar to navbar.
scripts/split-events.py New pre-render script to generate upcoming-events.yml and past-events.yml.
pyproject.toml Adds pyyaml dependency for the pre-render script.
uv.lock Locks updated Python dependencies (adds PyYAML).
.gitignore Ignores generated upcoming-events.yml / past-events.yml.
.github/workflows/quarto-publish.yml Adds scheduled daily run for publish workflow.
content/events/im_dialog/2023-linked-open-data-in-dialogue/index.qmd Frontmatter/formatting adjustments to an event page.
.github/copilot-instructions.md Adds repository-specific Copilot guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.qmd
Comment thread scripts/split-events.py Outdated
Comment thread scripts/split-events.py Outdated
Comment thread scripts/split-events.py Outdated
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 15, 2026

Walkthrough

Adds a Quarto pre-render event splitter and generated YAML listings, updates the homepage to consume those listings, tweaks site/nav config, schedules CI runs, adds repository documentation, and introduces related gitignore and Python dependency changes.

Changes

Cohort / File(s) Summary
Repository docs & metadata
.github/copilot-instructions.md, pyproject.toml, .gitignore
Added repository guidelines and Quarto usage notes; added pyyaml to project dependencies; ignored generated upcoming-events.yml and past-events.yml.
CI workflow
.github/workflows/quarto-publish.yml
Added a scheduled trigger (cron: "0 6 * * *") to existing workflow; normalized quoted-string styles in job inputs.
Quarto site config
_quarto.yml
Added project.pre-render: python scripts/split-events.py; added an Events navbar link; removed Blog and Events entries from the left sidebar contents.
Event processing script
scripts/split-events.py
New pre-render script that parses .qmd frontmatter for Event items, normalizes event-date, partitions into upcoming/past, sorts, and writes upcoming-events.yml and past-events.yml.
Homepage listings
index.qmd
Disabled sidebar; replaced content-based events listing with upcoming-events.yml; added a past-events listing from past-events.yml with its own sort and a collapsible section; defined explicit field-display-names.
Event content update
content/events/im_dialog/2023-linked-open-data-in-dialogue/index.qmd
Frontmatter values quoted and event-date added; adjusted Markdown line breaks and separators; escaped contact email; minor formatting/whitespace changes.
🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 75.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'Layout updates' is vague and generic, using non-descriptive language that doesn't clearly convey the main changes (sidebar hiding, events splitting, navbar updates, and automated builds). Consider a more specific title such as 'Hide sidebar on home page and split events into current/past with daily rebuild' to better reflect the key changes.
✅ Passed checks (1 passed)
Check name Status Explanation
Description check ✅ Passed The description covers proposed changes and includes completed checklist items, following the template structure appropriately with sufficient detail about layout modifications and event splitting.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch layout-updates

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@content/events/im_dialog/2023-linked-open-data-in-dialogue/index.qmd`:
- Around line 1-6: This event page's YAML frontmatter is missing the categories
field required by the pre-render split-events.py script so the page is skipped;
add a categories: [Event] entry to the existing frontmatter block (alongside
title, subtitle, date, lang) so the script can recognize it as an Event.

In `@scripts/split-events.py`:
- Around line 16-19: The frontmatter parsing block that checks if not
text.startswith("---") and then does end = text.index("---", 3) can raise
ValueError for malformed files; change it to safely detect a closing delimiter
(e.g., use text.find("---", 3) and check for -1) or wrap the index call in
try/except ValueError, and return None when the closing marker is missing so
yaml.safe_load(text[3:end]) is only called for well-formed frontmatter.
- Around line 51-53: The normalization of event_date using
date.fromisoformat(event_date) can raise ValueError for non-ISO strings (e.g.,
"2025.04.02"); wrap the conversion in a try/except around the existing
date.fromisoformat call (the event_date variable) and attempt fallback parsing
(e.g., try datetime.strptime(event_date, "%Y.%m.%d") and/or replace '.' with '-'
and retry date.fromisoformat) to produce a date object, and if all parses fail
log a warning and skip or set event_date to None so the script doesn't crash.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: be9e3ca6-ca3e-4d51-9d48-e4134e4fab52

📥 Commits

Reviewing files that changed from the base of the PR and between b67afe1 and fa80ed2.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (8)
  • .github/copilot-instructions.md
  • .github/workflows/quarto-publish.yml
  • .gitignore
  • _quarto.yml
  • content/events/im_dialog/2023-linked-open-data-in-dialogue/index.qmd
  • index.qmd
  • pyproject.toml
  • scripts/split-events.py

Comment thread scripts/split-events.py Outdated
Comment thread scripts/split-events.py Outdated
flicksolutions and others added 5 commits April 15, 2026 14:16
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
content/events/im_dialog/2023-linked-open-data-in-dialogue/index.qmd (1)

42-46: Consider normalizing the project presentation list style.

This block mixes one inline project entry with a bulleted list, which can render inconsistently. Using a single list style for all project items would improve readability.

Proposed markdown cleanup
-**11:30 – 12:30 – Project Presentations** - *The MURELCO Seminar – A Teaching Tool* — Matthieu Gillabert & Stephen Hart\
-- *The Processetti Inquiries (16th–17th c.)* — David Knecht\
-- *Switzerland and Beyond* — Tobias Hodel\
-- *Diaries of Anna Maria Preiswerk-Iselin* — Morgane Pica\
-- *OntoME – Ontology Management Environment* — Vincent Alamercery
+**11:30 – 12:30 – Project Presentations**\
+- *The MURELCO Seminar – A Teaching Tool* — Matthieu Gillabert & Stephen Hart\
+- *The Processetti Inquiries (16th–17th c.)* — David Knecht\
+- *Switzerland and Beyond* — Tobias Hodel\
+- *Diaries of Anna Maria Preiswerk-Iselin* — Morgane Pica\
+- *OntoME – Ontology Management Environment* — Vincent Alamercery
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@content/events/im_dialog/2023-linked-open-data-in-dialogue/index.qmd` around
lines 42 - 46, The "11:30 – 12:30 – Project Presentations" block mixes an inline
entry with a bulleted list which causes inconsistent rendering; change all
project entries to a single list style by converting the inline entry ("**11:30
– 12:30 – Project Presentations** - *The MURELCO Seminar – A Teaching Tool* —
Matthieu Gillabert & Stephen Hart") into a top-level heading or bold time line
followed by a consistent bullet list containing each project item (e.g., "The
MURELCO Seminar – A Teaching Tool — Matthieu Gillabert & Stephen Hart", "The
Processetti Inquiries (16th–17th c.) — David Knecht", etc.) so every project is
rendered as a list item under the "11:30 – 12:30 – Project Presentations" label.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@content/events/im_dialog/2023-linked-open-data-in-dialogue/index.qmd`:
- Around line 42-46: The "11:30 – 12:30 – Project Presentations" block mixes an
inline entry with a bulleted list which causes inconsistent rendering; change
all project entries to a single list style by converting the inline entry
("**11:30 – 12:30 – Project Presentations** - *The MURELCO Seminar – A Teaching
Tool* — Matthieu Gillabert & Stephen Hart") into a top-level heading or bold
time line followed by a consistent bullet list containing each project item
(e.g., "The MURELCO Seminar – A Teaching Tool — Matthieu Gillabert & Stephen
Hart", "The Processetti Inquiries (16th–17th c.) — David Knecht", etc.) so every
project is rendered as a list item under the "11:30 – 12:30 – Project
Presentations" label.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ce188805-d7f7-4931-a229-7d4bcf09db24

📥 Commits

Reviewing files that changed from the base of the PR and between fa80ed2 and e0575ff.

📒 Files selected for processing (2)
  • content/events/im_dialog/2023-linked-open-data-in-dialogue/index.qmd
  • scripts/split-events.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • scripts/split-events.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants