Coder Social home page Coder Social logo

nareal / naquiz Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 7.14 MB

A Quarto extension to create multiple choice questions (quizzes) in HTML documents

Home Page: https://nareal.github.io/naquiz/example.html

License: MIT License

CSS 10.18% Lua 89.82%

naquiz's Introduction

naquiz extension for Quarto

GitHub Action Status

The extension enables adding multiple choice questions when using a Quarto HTML documents or Quarto revealjs presentation. It also adds Alpine.js javascript framework to the document.

Installing

To install the extension with the template do:

quarto use template nareal/naquiz

To install the extension without the template do:

quarto add nareal/naquiz

This will install the extension under the _extensions subdirectory. If you're using version control, you will want to check in this directory.

To update the extension use:

quarto update extension nareal/naquiz

and to remove it:

quarto remove extension nareal/naquiz

Using

To use the extension simply add it as a filter to the YAML header of the quarto document, for example:

---
title: "naquiz Example"
filters:
  - naquiz
---

:::::{.question}
Bill Gates was the founder of:

::::{.choices}

:::{.choice}
Apple
:::  

:::{.choice .correct-choice}
Microsoft
:::

:::{.choice}
Facebook  
:::

:::{.choice}
Google   
:::

::::
:::::

Example

Here is the source code with usage examples: example.qmd and the rendered HTML page.

Here is the source code for an example of usage with revealjs presentation: example_presentation.qmd and the rendered HTML page.

naquiz's People

Contributors

nareal avatar

Stargazers

Arnaud Feldmann avatar Juan Camilo Arboleda Rivera avatar Sam Parmar avatar Andrew Allen Bruce avatar W. Joel Schneider avatar  avatar Gordon Wright avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.