Skip to main content

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

mkdocs_superquiz-0.4.3.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_superquiz-0.4.3-py3-none-any.whl (6.8 MB view details)

Uploaded Python 3

File details

Details for the file mkdocs_superquiz-0.4.3.tar.gz.

File metadata

  • Download URL: mkdocs_superquiz-0.4.3.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

Hashes for mkdocs_superquiz-0.4.3.tar.gz
Algorithm Hash digest
SHA256 48946013d5d39cd02c44f7ab7bb951d4b32944f94d56bad618662200c1eeebbf
MD5 70338ba671524b77344610ba1d70ab6b
BLAKE2b-256 8ad7cd3d3039a0105ae294c0761c6e871fb9f792055cb40965265c3521d71b8b

See more details on using hashes here.

File details

Details for the file mkdocs_superquiz-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_superquiz-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bce875a1c799d22351f41cbc3e9bd67bde23c5601d02b756003d9fc4081fa987
MD5 14af858c6c66005bc373752e16237a60
BLAKE2b-256 61333f215f2ff617f7b8eb8f24998f5cbc32c075a049a88fc405caf4b1995e9e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.9

2 files

0.5.8

2 files

0.5.7

2 files

0.5.6

2 files

0.5.5

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.5

2 files

This release

0.4.3 This release

2 files

0.4.2

2 files

0.3.6

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.0

2 files

0.2.8

2 files

0.2.7

2 files

0.2.3

2 files

0.2.1

2 files

0.2.0

2 files

0.1.26

2 files

0.1.25

2 files

0.1.24

2 files

0.1.23

2 files

0.1.22

2 files

0.1.21

2 files

0.1.20

2 files

0.1.19

2 files

0.1.18

2 files

0.1.17

2 files

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page