mkdocs-superquiz
mkdocs-superquiz creates interactive multilingual questions and complete page quizzes in MkDocs. It supports configurable scoring, MathJax, answer persistence, correction locking, relation drawing, drag-and-drop ordering, matrices, flashcards, per-question scores, page totals, navigation and packaged question icons.
Two display contexts
Embedded questions in a normal page
No page front matter is required. Each question is validated independently and can be mixed with ordinary Markdown:
!!! mcquiz "European capitals"
---
points: 2
randomize: answers
---
Select every capital.
answers:
- [Paris]
- [Madrid]
- Lyon
The equivalent generic form is !!! question with type: mcquiz in its mini front matter.
One complete page quiz
Opt in per Markdown page:
---
superquiz:
display: page
---
Every atomic question then uses:
!!! question "Optional title"
---
type: scquiz
points: 1
---
Choose one answer.
answers:
- [A]
- B
Page display adds shared Validate and Reset All actions, a total score, optional timer, question-order randomization, and configurable right/top/bottom navigation. Embedded display keeps independent Validate, reset and score controls and deliberately has no page-wide actions.
Canonical types:
mcquiz, scquiz, blanks, scdropdown, mcdropdown,
order, columns, sentence,
match, match.line, match.bezier,
image, path, graph,
matrix, flashcard
Built-in icons
The package contains a transparent 512 × 512 normal/timer icon pair for every canonical type plus a generic pair. Icons may be disabled, made generic, resized, positioned, or replaced by a site path or URL. match.line reuses the match icon pair.
Timer and component appearance
When a Page timer is enabled without further values, it now defaults to a one-hour countdown that starts on first interaction, can be dragged from the top-right corner, remembers its position, and submits the page at zero.
Author CSS can be layered through timer.style,
appearance.admonition.style, appearance.validate.style, and icons.style.
Icon display dimensions are controlled independently with icons.size,
icons.width, and icons.height. The Material admonition pseudo-icon is
suppressed so only the SuperQuiz type icon is shown.
Installation
pip install mkdocs-superquiz
plugins:
- search
- superquiz
The complete syntax, display-aware configuration priority, scoring rules and executable examples are published on the GitLab Pages documentation site.
Development
The project uses Yarn 4, Vite, setuptools, MkDocs and GitLab CI.
corepack enable
yarn install
python -m pip install -e ".[dev]"
Main commands:
yarn dev
yarn build
yarn build:full
yarn build:full:check
yarn bfc
yarn zip
package.json is the version source of truth. yarn zip creates a clean project archive suitable for review or transfer without modifying the working tree.
Verification
yarn bfc verifies the frontend and Python packages, documentation, Python tests, frontend tests, browser smoke tests when Chromium is available, JavaScript syntax, protected vendor assets, canonical architecture, and the complete icon manifest in both wheel and source distribution.
License
GNU GPL-3.0-or-later.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_superquiz-0.4.2.tar.gz.
File metadata
- Download URL: mkdocs_superquiz-0.4.2.tar.gz
- Upload date:
- Size: 6.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d72a49033d0f60fe0b00f25fc02d64b71a1987f5d237b8954c0614e0d1e92ca9
|
|
| MD5 |
4d7e46b8f3074cc8ffaca114f846058a
|
|
| BLAKE2b-256 |
cf3d3d723b5d13d7a1b18df0e508ffc776610faa3df78c4d772396fd568f08af
|
File details
Details for the file mkdocs_superquiz-0.4.2-py3-none-any.whl.
File metadata
- Download URL: mkdocs_superquiz-0.4.2-py3-none-any.whl
- Upload date:
- Size: 6.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c82bfdb3b60f572464fe4a8bf0400d87c326cfc64f09cb49fe80b2dbea3c6a5a
|
|
| MD5 |
b4444551012f0f2f634fb71840b0341b
|
|
| BLAKE2b-256 |
62676bb28fbeb48566de283900d7b55f8b51936739939bfb1c4fbad9735bc5bb
|