From e5ae53dcf65726c6ca737bfee8a98c18e7c86e81 Mon Sep 17 00:00:00 2001 From: Christian Lawson-Perfect Date: Fri, 10 Nov 2023 09:04:29 +0000 Subject: [PATCH] v7.2 --- Makefile | 2 +- bin/numbas.py | 2 +- ...m_schema.7.1.json => exam_schema.7.2.json} | 0 schema/index.html | 59 ++++++++++++++++++- schema/make_schema.py | 2 +- 5 files changed, 59 insertions(+), 6 deletions(-) rename schema/{exam_schema.7.1.json => exam_schema.7.2.json} (100%) diff --git a/Makefile b/Makefile index 00ba06f37..5d2ca710b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ everything: update_tests docs -VERSION=7.1 +VERSION=7.2 NUMBAS_EDITOR_PATH ?= ../editor JSDOC_TEMPLATE_PATH ?= ../numbas-jsdoc-template diff --git a/bin/numbas.py b/bin/numbas.py index 566a15958..bb11f7fb8 100755 --- a/bin/numbas.py +++ b/bin/numbas.py @@ -35,7 +35,7 @@ from zipfile import ZipFile, ZipInfo -NUMBAS_VERSION = '7.1' +NUMBAS_VERSION = '7.2' namespaces = { diff --git a/schema/exam_schema.7.1.json b/schema/exam_schema.7.2.json similarity index 100% rename from schema/exam_schema.7.1.json rename to schema/exam_schema.7.2.json diff --git a/schema/index.html b/schema/index.html index aaf37cdfd..bb1fcd1ee 100644 --- a/schema/index.html +++ b/schema/index.html @@ -8,11 +8,11 @@ - Numbas exam schema v7.1 + Numbas exam schema v7.2
-

Numbas exam schema v7.1

+

Numbas exam schema v7.2

@@ -20,7 +20,7 @@

Numbas exam schema v7.1

The line for the current version should look like this:

// Numbas version: exam_results_page_options

The rest of the file should consist of a single JSON object, matching the following schema.

-

Download the schema in JSON-Schema format

+

Download the schema in JSON-Schema format

@@ -3554,6 +3554,59 @@

Numbas Exam

+ + + + + + + + + + + + + + +
  • +
    + typeendtoleave +
    +
    + + +
    +
    + + boolean + +
    + + + +
    + Require written confirmation before leaving the exam +
    + + + + + + + + + + + + + + + + + + + + diff --git a/schema/make_schema.py b/schema/make_schema.py index ef6814b6c..7f444b2c1 100644 --- a/schema/make_schema.py +++ b/schema/make_schema.py @@ -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())