8000 GitHub - RBrooksDK/mkdocs-quiz: Mkdocs plugin to create simple quizzes in markdown
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

RBrooksDK/mkdocs-quiz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MkDocs Quiz Plugin

Installation

Install the package with pip:

pip install mkdocs_quiz

Create your first quiz

Add the following to your mkdocs.yml:

plugins:
  - mkdocs_quiz

Single choice

Now you can create your first quiz directly in markdown:

<?quiz?>
question: Are you ready?
answer-correct: Yes!
answer: No!
answer: Maybe!
content:
<h2>Provide some additional content</h2>
<?/quiz?>

Info The answers can get styled with HTML (like <code>Yes!</code>)

Warning The quiz content needs to be valid HTML

Multiple choice

You can also create a multiple choice quiz, by providing multiple answers as correct.

<?quiz?>
question: Are you ready?
answer-correct: Yes!
answer: No!
answer-correct: Maybe!
content:
<h2>Provide some additional content</h2>
<?/quiz?>

Screenshots

The single choice quiz will get generated as a radio button group, while the multiple choice quiz will get generated as a checkbox group.

Single choice

Multiple choice

Disable for a page

You can disable the quiz for a page by adding the following to the top (meta) of the page:

---
quiz: disable
---

About

Mkdocs plugin to create simple quizzes in markdown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 57.8%
  • JavaScript 36.0%
  • CSS 5.0%
  • Makefile 1.2%
0