Extracts announcement bar configuration

Moves the announcement bar configuration to a separate file.

This change allows for easier management of the announcement bar content and enables conditional inclusion based on the build environment. The `dismissable` option is also set to `false` for production builds.
This commit is contained in:
Vijay Janapa Reddi
2025-08-26 00:47:06 +02:00
parent 517c34c8fc
commit 39c58c30b6
2 changed files with 27 additions and 16 deletions

View File

@@ -38,21 +38,6 @@ website:
back-to-top-navigation: true
bread-crumbs: true
# Announcement bar configuration
announcement:
icon: megaphone
dismissable: true
type: primary
position: below-navbar
content: |
🎉 **Just Announced:** *Machine Learning Systems* will be published by **MIT Press**. [See the news →](https://www.linkedin.com/posts/vijay-janapa-reddi-63a6a173_tinyml-tikz-ai-activity-7338324711145136128-6WU-?utm_source=share&utm_medium=member_desktop&rcm=ACoAAA-V7E4BcYtyZgLSeGhXC2t9jRSlmazfp-I)<br>
🚀 **Sneak Peek:** [Tiny🔥Torch](https://mlsysbook.github.io/TinyTorch/intro.html). Build your own machine learning framework from scratch!<br>
🧠 **Self-checks:** Added lightweight [quizzes](/contents/core/introduction/introduction.qmd#quiz-question-sec-introduction-ai-ml-basics-041a) to each chapter for self-assessment.<br>
📦 **New Hardware:** [Seeed TinyML Kit](/contents/labs/kits.qmd). Latest hands-on learning platform.
google-analytics:
tracking-id: "G-M21L0CBCVN"
anonymize-ip: true
@@ -585,4 +570,9 @@ mlsysbook-ext/custom-numbered-blocks:
group: chapter-connection
callout-code:
label: "Code"
group: code-listing
group: code-listing
# Announcement bar configuration, only for production builds (not preview)
metadata-files:
- config/announcement.yml

View File

@@ -0,0 +1,21 @@
# =============================================================================
# ANNOUNCEMENT BAR CONFIGURATION - PRODUCTION
# =============================================================================
# This file contains the announcement bar configuration for the production site.
# It's included via metadata-files in _quarto-html.yml
# =============================================================================
website:
announcement:
icon: megaphone
dismissable: false
type: primary
position: below-navbar
content: |
🎉 **Just Announced:** *Machine Learning Systems* will be published by **MIT Press**. [See the news →](https://www.linkedin.com/posts/vijay-janapa-reddi-63a6a173_tinyml-tikz-ai-activity-7338324711145136128-6WU-?utm_source=share&utm_medium=member_desktop&rcm=ACoAAA-V7E4BcYtyZgLSeGhXC2t9jRSlmazfp-I)<br>
🚀 **Sneak Peek:** [Tiny🔥Torch](https://mlsysbook.github.io/TinyTorch/intro.html). Build your own machine learning framework from scratch!<br>
🧠 **Self-checks:** Added lightweight [quizzes](/contents/core/introduction/introduction.qmd#quiz-question-sec-introduction-ai-ml-basics-041a) to each chapter for self-assessment.<br>
📦 **New Hardware:** [Seeed TinyML Kit](/contents/labs/kits.qmd). Latest hands-on learning platform.