diff --git a/.gitignore b/.gitignore index 2181995..9345a3f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,6 @@ .DS_Store /.quarto/ -_freeze +_freeze/ docs/ !docs/*.md \ No newline at end of file diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index e69de29..0000000 diff --git a/_quarto.yml b/_quarto.yml index 5face81..3ea24b7 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -15,8 +15,6 @@ website: menu: - text: "Module 1: Quarto Basics" href: md-01-quiz.qmd - - text: "---" - - text: "More coming soon..." right: - icon: github href: https://github.com/ds4owd-dev/quiz @@ -24,9 +22,7 @@ website: format: html: theme: - - sandstone - - custom.scss - css: styles.css + - cosmo toc: true execute: diff --git a/custom.scss b/custom.scss deleted file mode 100644 index 621d494..0000000 --- a/custom.scss +++ /dev/null @@ -1,5 +0,0 @@ -/*-- scss:defaults --*/ - -// Custom styles for openwashdata quizzes - -/*-- scss:rules --*/ \ No newline at end of file diff --git a/index.qmd b/index.qmd index eecb85a..a6440de 100644 --- a/index.qmd +++ b/index.qmd @@ -9,9 +9,11 @@ This site contains interactive quizzes to help you learn about creating and main ## Available Quizzes -### Module 1: Quarto Basics +### [Module 1: Quarto Basics](md-01-quiz.html) -Learn the fundamentals of using Quarto for openwashdata package documentation. +```{r, include=FALSE, cache=FALSE} +knitr::read_chunk('md-01-quiz.qmd') +``` - **Topics covered:** - YAML headers and document configuration @@ -19,8 +21,6 @@ Learn the fundamentals of using Quarto for openwashdata package documentation. - Data analysis integration - Creating tables and visualizations -[**Start Module 1 Quiz →**](md-01-quiz.html) - ------------------------------------------------------------------------ ## How to Use These Quizzes diff --git a/md-01-quiz.qmd b/md-01-quiz.qmd index 9727902..c500ac5 100644 --- a/md-01-quiz.qmd +++ b/md-01-quiz.qmd @@ -1,6 +1,8 @@ --- title: "Module 1 Quiz: Quarto Basics for openwashdata" -format: live-html +format: + live-html: + theme: cosmo engine: knitr --- diff --git a/serve.py b/serve.py deleted file mode 100755 index e0f0ee0..0000000 --- a/serve.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python3 -import http.server -import socketserver -import os - -os.chdir('docs') - -class MyHTTPRequestHandler(http.server.SimpleHTTPRequestHandler): - def end_headers(self): - self.send_header('Access-Control-Allow-Origin', '*') - self.send_header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS') - self.send_header('Access-Control-Allow-Headers', 'Content-Type') - self.send_header('Cache-Control', 'no-store, no-cache, must-revalidate') - super().end_headers() - -PORT = 8000 -Handler = MyHTTPRequestHandler - -with socketserver.TCPServer(("", PORT), Handler) as httpd: - print(f"Server running at http://localhost:{PORT}/") - print(f"View the quiz at http://localhost:{PORT}/md-01-quiz.html") - httpd.serve_forever() \ No newline at end of file diff --git a/styles.css b/styles.css deleted file mode 100644 index e3d3c3f..0000000 --- a/styles.css +++ /dev/null @@ -1,49 +0,0 @@ -/* Custom styles for openwashdata quizzes */ - -/* Quiz section styling */ -.callout-note { - margin-top: 1rem; - margin-bottom: 1rem; -} - -/* Solution details styling */ -details { - margin-top: 1rem; - margin-bottom: 1rem; - padding: 0.5rem; - border: 1px solid #dee2e6; - border-radius: 0.25rem; -} - -details summary { - cursor: pointer; - font-weight: bold; - color: #0066cc; -} - -details summary:hover { - text-decoration: underline; -} - -/* Code output styling */ -.webr-output { - margin-top: 1rem; - padding: 0.5rem; - background-color: #f8f9fa; - border-radius: 0.25rem; -} - -/* Exercise sections */ -.exercise { - margin: 2rem 0; - padding: 1rem; - border-left: 4px solid #0066cc; - background-color: #f0f7ff; -} - -/* Main content area */ -main { - max-width: 900px; - margin: 0 auto; - padding: 2rem; -} \ No newline at end of file