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.2.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.2-py3-none-any.whl (6.8 MB view details)

Uploaded Python 3

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

Hashes for mkdocs_superquiz-0.4.2.tar.gz
Algorithm Hash digest
SHA256 d72a49033d0f60fe0b00f25fc02d64b71a1987f5d237b8954c0614e0d1e92ca9
MD5 4d7e46b8f3074cc8ffaca114f846058a
BLAKE2b-256 cf3d3d723b5d13d7a1b18df0e508ffc776610faa3df78c4d772396fd568f08af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkdocs_superquiz-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c82bfdb3b60f572464fe4a8bf0400d87c326cfc64f09cb49fe80b2dbea3c6a5a
MD5 b4444551012f0f2f634fb71840b0341b
BLAKE2b-256 62676bb28fbeb48566de283900d7b55f8b51936739939bfb1c4fbad9735bc5bb

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

0.4.3

2 files

This release

0.4.2 This release

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