Skip to content

Commit

Permalink
v7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
christianp committed Nov 10, 2023
1 parent aefdd3f commit e5ae53d
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
everything: update_tests docs

VERSION=7.1
VERSION=7.2

NUMBAS_EDITOR_PATH ?= ../editor
JSDOC_TEMPLATE_PATH ?= ../numbas-jsdoc-template
Expand Down
2 changes: 1 addition & 1 deletion bin/numbas.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from zipfile import ZipFile, ZipInfo


NUMBAS_VERSION = '7.1'
NUMBAS_VERSION = '7.2'


namespaces = {
Expand Down
File renamed without changes.
59 changes: 56 additions & 3 deletions schema/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
<link rel="stylesheet" href="schema_doc.css">
<script src="schema_doc.js" defer></script>

<title>Numbas exam schema v7.1</title>
<title>Numbas exam schema v7.2</title>
</head>
<body id="root">
<header>
<h1>Numbas exam schema v7.1</h2>
<h1>Numbas exam schema v7.2</h2>
</header>
<main>
<div class="intro">
<p><a href="https://www.numbas.org.uk">Numbas</a> <code>.exam</code> files are JSON objects, with an additional comment line at the start describing the version of the format used.</p>
<p>The line for the current version should look like this:</p>
<pre>// Numbas version: exam_results_page_options</pre>
<p>The rest of the file should consist of a single JSON object, matching the following schema.</p>
<p><a href="exam_schema.7.1.json">Download the schema in JSON-Schema format</a></p>
<p><a href="exam_schema.7.2.json">Download the schema in JSON-Schema format</a></p>
</div>

<article class="schema open">
Expand Down Expand Up @@ -3554,6 +3554,59 @@ <h2>Numbas Exam</h2>












</div>

</div>
</li>

<li class="schema">
<header>
<span class="property-name">typeendtoleave</span>
</header>
<div class="property-schema">

<button class="toggle-content" role="switch" aria-checked="false"></button>
<div class="content" id="schema-property-navigation-property-typeendtoleave">
<div class="type">

boolean

</div>



<div class="title">
Require written confirmation before leaving the exam
</div>























Expand Down
2 changes: 1 addition & 1 deletion schema/make_schema.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import jinja2

version = '7.1'
version = '7.2'

with open(f'exam_schema.{version}.json') as f:
schema = json.loads(f.read())
Expand Down

0 comments on commit e5ae53d

Please sign in to comment.