Skip to content

Commit f87672b

Browse files
committed
bumpt to quizdown-extended 1.2.1
1 parent d8030bc commit f87672b

File tree

15 files changed

+154
-388
lines changed

15 files changed

+154
-388
lines changed

website/docs/chapter-02/03_executing.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import Quiz from '@site/src/components/Quiz/Quiz';
2-
31
# 2.3 Executing Robot
42

53
::::lo[Learning Objectives]
@@ -201,8 +199,3 @@ There are basically two kinds of logging information in Robot Framework.
201199

202200
Log messages can be written with different levels of severity (i.e. `INFO`, `DEBUG`, `TRACE`, `WARN` or `ERROR`).
203201
Which levels are written to the log can be controlled by the log level of an execution. Further information in later chapters.
204-
205-
206-
207-
## Quiz
208-
<Quiz name="Executing RF" src="test.md"/>

website/docusaurus.config.ts

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ const config = {
8888
to: '/docs/chapter-05/overview',
8989
position: 'left',
9090
},
91+
{
92+
label: 'Example Exam',
93+
to: '/docs/example-exam',
94+
position: 'left',
95+
},
9196
{
9297
label: 'LOs',
9398
to: '/docs/learning_objectives',
@@ -164,25 +169,7 @@ const config = {
164169
},
165170
}),
166171
plugins: [
167-
async function quizRawLoaderPlugin() {
168-
return {
169-
name: 'quiz-raw-loader',
170-
configureWebpack() {
171-
return {
172-
module: {
173-
rules: [
174-
{
175-
test: /\.(quiz|txt)$/,
176-
type: 'asset/source', // <-- built-in replacement for raw-loader
177-
},
178-
],
179-
},
180-
};
181-
},
182-
};
183-
},
184172
require.resolve('docusaurus-lunr-search')
185-
186173
],
187174
};
188175

website/package-lock.json

Lines changed: 5 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"clsx": "^2.1.1",
2727
"docusaurus-lunr-search": "^3.6.0",
2828
"prism-react-renderer": "^2.4.1",
29-
"quizdown-extended": "^1.1.1",
29+
"quizdown-extended": "^1.2.1",
3030
"react": "^19.2.0",
3131
"react-dom": "^19.2.0",
3232
"zustand": "^5.0.8"

website/src/components/Quiz/QuizComponent.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,12 @@ export default function Quiz({ name, question, src }: QuizProps) {
156156
failBgColor: 'var(--quizdownColorFailBg)',
157157
codeBgColor: 'var(--quizdownColorCodeBg)',
158158

159-
locale: null,
159+
locale: 'en',
160160
enableRetry: true,
161161

162162
// NEW: Font configuration (requires updated quizdown files)
163-
fontFamilyHeading: 'var(--ifm-font-family-heading)',
163+
fontFamilyHeading: 'Roboto, sans-serif',
164+
//'var(--ifm-font-family-heading)',
164165

165166
// NEW: Custom styles to match Docusaurus
166167
customStyles: `

website/src/components/Quiz/quizComponents.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated and will be overridden when running the build process.
3-
* Generated on: 11/1/2025, 10:08:55 AM
3+
* Generated on: 11/1/2025, 10:45:45 PM
44
*/
55

66
export interface QuizPage {
@@ -16,17 +16,6 @@ export interface QuizComponent {
1616
}
1717

1818
export const quizPages: QuizPage[] = [
19-
{
20-
"id": "docs-chapter-02-03_executing",
21-
"name": "executing",
22-
"quizzes": [
23-
{
24-
"id": "chapter-02/executing#executing+rf",
25-
"name": "Executing RF",
26-
"src": "test.md"
27-
}
28-
]
29-
},
3019
{
3120
"id": "docs-example-exam",
3221
"name": "example-exam",

website/src/css/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ html[data-theme='dark'] {
6464
--site-color-favorite-background: #1d1e1e;
6565
--site-color-checkbox-checked-bg: hsl(167deg 56% 73% / 10%);
6666
--docusaurus-highlighted-code-line-bg: rgb(66 66 66 / 35%);
67-
--quizdown-color-primary: #00c0b5;
67+
--quizdown-color-primary: #00c0b5;
6868
--quizdown-color-button: var(--ifm-table-stripe-background);
6969
--quizdown-color-secondary: var(--ifm-footer-background-color);;
7070
--quizdown-color-text: var(--ifm-font-color-base);

website/src/pages/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,36 @@
1-
import type {ReactNode} from 'react';
1+
import type { ReactNode } from 'react';
22
import clsx from 'clsx';
33
import Link from '@docusaurus/Link';
44
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
55
import Layout from '@theme/Layout';
66
import HomepageFeatures from '@site/src/components/HomepageFeatures';
77
import Heading from '@theme/Heading';
88

9-
109
import styles from './index.module.css';
1110

1211
function HomepageHeader() {
13-
const {siteConfig} = useDocusaurusContext();
12+
const { siteConfig } = useDocusaurusContext();
1413
return (
1514
<header className={clsx('hero hero--primary', styles.heroBanner)}>
1615
<div className="container">
1716
<Heading as="h1" className="hero__title">
1817
{siteConfig.title}
1918
</Heading>
2019
<p className="hero__subtitle">{siteConfig.tagline}</p>
21-
{/* <div className={styles.buttons}>
20+
<div className={styles.buttons}>
2221
<Link
2322
className="button button--secondary button--lg"
2423
to="/docs/overview">
2524
Open the Syllabus
2625
</Link>
27-
</div> */}
26+
</div>
2827
</div>
2928
</header>
3029
);
3130
}
3231

3332
export default function Home(): ReactNode {
34-
const {siteConfig} = useDocusaurusContext();
33+
const { siteConfig } = useDocusaurusContext();
3534
return (
3635
<Layout
3736
title={`RFCP Syllabus`}

website/src/robot.js

Lines changed: 0 additions & 111 deletions
This file was deleted.

website/src/theme/Admonition/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import type {WrapperProps} from '@docusaurus/types';
1111
type Props = WrapperProps<typeof AdmonitionType>;
1212

1313
export default function AdmonitionWrapper(props: Props): ReactNode {
14-
// console.log('AdmonitionWrapper', props);
1514
if (props.type === 'lo') {
1615
const newProps = {...props, type: 'info'};
1716
return (

0 commit comments

Comments
 (0)