From d242779e1785438a3d84c3689003da3d708332f2 Mon Sep 17 00:00:00 2001 From: Carl Wilson Date: Wed, 10 May 2023 10:08:24 +0100 Subject: [PATCH 1/3] FIX: Schema versioning and publication - added version path element to current `./schema` json schema `id` fields so: - `http://www.parcore.org/schema/...` becomes, - `http://www.parcore.org/schema/1.2/...`; - added file level forwarding to the `./docs/schema` directory; and - renamed the `tools.json` files to `tool.json` to match the schema name. --- docs/schema/1.0/{tools.json => tool.json} | 0 docs/schema/1.1/{tools.json => tool.json} | 0 docs/schema/business-rule.json/index.md | 4 +++ docs/schema/format.json/index.md | 4 +++ docs/schema/par-property.json/index.md | 4 +++ .../preservation-action-type.json/index.md | 4 +++ docs/schema/preservation-action.json/index.md | 4 +++ .../representation-format.json/index.md | 4 +++ docs/schema/tool.json/index.md | 4 +++ docs/schema/types.json/index.md | 4 +++ schema/business-rule.json | 22 ++++++------ schema/format.json | 28 +++++++-------- schema/par-property.json | 4 +-- schema/preservation-action-type.json | 4 +-- schema/preservation-action.json | 34 +++++++++---------- schema/representation-format.json | 18 +++++----- schema/tool.json | 6 ++-- schema/types.json | 2 +- 18 files changed, 91 insertions(+), 59 deletions(-) rename docs/schema/1.0/{tools.json => tool.json} (100%) rename docs/schema/1.1/{tools.json => tool.json} (100%) create mode 100644 docs/schema/business-rule.json/index.md create mode 100644 docs/schema/format.json/index.md create mode 100644 docs/schema/par-property.json/index.md create mode 100644 docs/schema/preservation-action-type.json/index.md create mode 100644 docs/schema/preservation-action.json/index.md create mode 100644 docs/schema/representation-format.json/index.md create mode 100644 docs/schema/tool.json/index.md create mode 100644 docs/schema/types.json/index.md diff --git a/docs/schema/1.0/tools.json b/docs/schema/1.0/tool.json similarity index 100% rename from docs/schema/1.0/tools.json rename to docs/schema/1.0/tool.json diff --git a/docs/schema/1.1/tools.json b/docs/schema/1.1/tool.json similarity index 100% rename from docs/schema/1.1/tools.json rename to docs/schema/1.1/tool.json diff --git a/docs/schema/business-rule.json/index.md b/docs/schema/business-rule.json/index.md new file mode 100644 index 0000000..4d6a7b4 --- /dev/null +++ b/docs/schema/business-rule.json/index.md @@ -0,0 +1,4 @@ +--- +layout: forward +target: ../1.2/business-rule.json +--- diff --git a/docs/schema/format.json/index.md b/docs/schema/format.json/index.md new file mode 100644 index 0000000..6a7694d --- /dev/null +++ b/docs/schema/format.json/index.md @@ -0,0 +1,4 @@ +--- +layout: forward +target: ../1.2/format.json +--- diff --git a/docs/schema/par-property.json/index.md b/docs/schema/par-property.json/index.md new file mode 100644 index 0000000..29d5819 --- /dev/null +++ b/docs/schema/par-property.json/index.md @@ -0,0 +1,4 @@ +--- +layout: forward +target: ../1.2/par-property.json +--- diff --git a/docs/schema/preservation-action-type.json/index.md b/docs/schema/preservation-action-type.json/index.md new file mode 100644 index 0000000..cf50459 --- /dev/null +++ b/docs/schema/preservation-action-type.json/index.md @@ -0,0 +1,4 @@ +--- +layout: forward +target: ../1.2/preservation-action-type.json +--- diff --git a/docs/schema/preservation-action.json/index.md b/docs/schema/preservation-action.json/index.md new file mode 100644 index 0000000..c0a7968 --- /dev/null +++ b/docs/schema/preservation-action.json/index.md @@ -0,0 +1,4 @@ +--- +layout: forward +target: ../1.2/preservation-action.json +--- diff --git a/docs/schema/representation-format.json/index.md b/docs/schema/representation-format.json/index.md new file mode 100644 index 0000000..d4c95da --- /dev/null +++ b/docs/schema/representation-format.json/index.md @@ -0,0 +1,4 @@ +--- +layout: forward +target: ../1.2/representation-format.json +--- diff --git a/docs/schema/tool.json/index.md b/docs/schema/tool.json/index.md new file mode 100644 index 0000000..88e2548 --- /dev/null +++ b/docs/schema/tool.json/index.md @@ -0,0 +1,4 @@ +--- +layout: forward +target: ../1.2/tools.json +--- diff --git a/docs/schema/types.json/index.md b/docs/schema/types.json/index.md new file mode 100644 index 0000000..7bd2502 --- /dev/null +++ b/docs/schema/types.json/index.md @@ -0,0 +1,4 @@ +--- +layout: forward +target: ../1.2/types.json +--- diff --git a/schema/business-rule.json b/schema/business-rule.json index 9bf4b07..e3ab6da 100644 --- a/schema/business-rule.json +++ b/schema/business-rule.json @@ -1,5 +1,5 @@ { - "$id": "http://www.parcore.org/schema/business-rule.json/#", + "$id": "http://www.parcore.org/schema/1.2/business-rule.json/#", "$schema": "http://json-schema.org/draft-06/schema#", "additionalProperties": false, "definitions": { @@ -7,31 +7,31 @@ "properties": { "optionalInputProperties": { "items": { - "$ref": "http://www.parcore.org/schema/preservation-action.json/#/definitions/inputProperty" + "$ref": "http://www.parcore.org/schema/1.2/preservation-action.json/#/definitions/inputProperty" }, "type": "array" }, "outputFilesRetrieved": { "items": { - "$ref": "http://www.parcore.org/schema/preservation-action.json/#/definitions/outputFile" + "$ref": "http://www.parcore.org/schema/1.2/preservation-action.json/#/definitions/outputFile" }, "type": "array" }, "outputPropertiesRetrieved": { "items": { - "$ref": "http://www.parcore.org/schema/preservation-action.json/#/definitions/outputProperty" + "$ref": "http://www.parcore.org/schema/1.2/preservation-action.json/#/definitions/outputProperty" }, "type": "array" }, "preservationAction": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parIdentifier" }, "priority": { "type": "integer" }, "rawOutputsRetrieved": { "items": { - "$ref": "http://www.parcore.org/schema/preservation-action.json/#/definitions/outputRaw" + "$ref": "http://www.parcore.org/schema/1.2/preservation-action.json/#/definitions/outputRaw" }, "type": "array" } @@ -51,19 +51,19 @@ "formatFamilies": { "description": "A list of format families that this Business Rule should be applied to", "items": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parIdentifier" }, "type": "array" }, "formats": { "description": "A list of file formats that this Business Rule should be applied to", "items": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parIdentifier" }, "type": "array" }, "id": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parIdentifier" }, "localLastModifiedDate": { "format": "date-time", @@ -76,14 +76,14 @@ "preservationActionTypes": { "description": "A list of Preservation Action Types that this Business Rule should be applied to. This might be a subset of those that the Preservation Actions themselves apply to. For example, a file format transformation action might itself apply to Migration and Normalization action types, but the Business Rule might be applicable only to Normalization", "items": { - "$ref": "http://www.parcore.org/schema/preservation-action-type.json/#" + "$ref": "http://www.parcore.org/schema/1.2/preservation-action-type.json/#" }, "type": "array" }, "preservationActions": { "description": "A list of specific actions. These are defined internally to reference the Core Preservation Action, the priority order in which it should be performed, and any inputs and outputs that should be used.", "items": { - "$ref": "http://www.parcore.org/schema/business-rule.json/#/definitions/action" + "$ref": "http://www.parcore.org/schema/1.2/business-rule.json/#/definitions/action" }, "type": "array" } diff --git a/schema/format.json b/schema/format.json index fbb91da..1e19603 100644 --- a/schema/format.json +++ b/schema/format.json @@ -1,5 +1,5 @@ { - "$id": "http://www.parcore.org/schema/format.json/#", + "$id": "http://www.parcore.org/schema/1.2/format.json/#", "$schema": "http://json-schema.org/draft-06/schema#", "additionalProperties": false, "definitions": { @@ -104,7 +104,7 @@ "additionalProperties": false, "properties": { "author": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/authorInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/authorInformation" }, "availabilityDescription": { "type": "string" @@ -134,7 +134,7 @@ "type": "string" }, "publisher": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/publisherInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/publisherInformation" }, "titleText": { "type": "string" @@ -188,7 +188,7 @@ "properties": { "byteSequences": { "items": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/byteSequenceInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/byteSequenceInformation" }, "type": "array" }, @@ -330,7 +330,7 @@ }, "developers": { "items": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/developerInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/developerInformation" }, "type": "array" }, @@ -339,13 +339,13 @@ }, "documents": { "items": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/documentInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/documentInformation" }, "type": "array" }, "externalSignatures": { "items": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/externalSignatureInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/externalSignatureInformation" }, "type": "array" }, @@ -356,18 +356,18 @@ "type": "array" }, "id": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier", + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parIdentifier", "description": "A persistent unique identifier for the format, in PAR form" }, "identifiers": { "items": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/identifierInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/identifierInformation" }, "type": "array" }, "internalSignatures": { "items": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/internalSignatureInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/internalSignatureInformation" }, "type": "array" }, @@ -386,17 +386,17 @@ "type": "string" }, "provenance": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/provenanceInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/provenanceInformation" }, "registryVersions": { "items": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/registryVersionInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/registryVersionInformation" }, "type": "array" }, "relatedFormats": { "items": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/relatedFormatInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/relatedFormatInformation" }, "type": "array" }, @@ -408,7 +408,7 @@ "type": "string" }, "technicalEnvironment": { - "$ref": "http://www.parcore.org/schema/format.json/#/definitions/environmentInformation" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#/definitions/environmentInformation" }, "types": { "items": { diff --git a/schema/par-property.json b/schema/par-property.json index 73a9105..bb4102d 100644 --- a/schema/par-property.json +++ b/schema/par-property.json @@ -1,5 +1,5 @@ { - "$id": "http://www.parcore.org/schema/par-property.json/#", + "$id": "http://www.parcore.org/schema/1.2/par-property.json/#", "$schema": "http://json-schema.org/draft-06/schema#", "additionalProperties": false, "description": "this is a skeleton definition of a Property", @@ -28,7 +28,7 @@ "type": "array" }, "id": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parIdentifier" }, "localLastModifiedDate": { "format": "date-time", diff --git a/schema/preservation-action-type.json b/schema/preservation-action-type.json index bcc53ee..5dfcde5 100644 --- a/schema/preservation-action-type.json +++ b/schema/preservation-action-type.json @@ -1,11 +1,11 @@ { - "$id": "http://www.parcore.org/schema/preservation-action-type.json/#", + "$id": "http://www.parcore.org/schema/1.2/preservation-action-type.json/#", "$schema": "http://json-schema.org/draft-06/schema#", "additionalProperties": false, "description": "The type of the preservation action as defined by PREMIS v3 event types. http://id.loc.gov/vocabulary/preservation/eventType.html", "properties": { "id": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parIdentifier" }, "label": { "type": "string" diff --git a/schema/preservation-action.json b/schema/preservation-action.json index 94e7f29..1ee92d3 100644 --- a/schema/preservation-action.json +++ b/schema/preservation-action.json @@ -1,5 +1,5 @@ { - "$id": "http://www.parcore.org/schema/preservation-action.json/#", + "$id": "http://www.parcore.org/schema/1.2/preservation-action.json/#", "$schema": "http://json-schema.org/draft-06/schema#", "anyOf": [ { @@ -48,7 +48,7 @@ "type": "string" }, "file": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parFile" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parFile" }, "name": { "type": "string" @@ -73,7 +73,7 @@ "type": "string" }, "parProperty": { - "$ref": "http://www.parcore.org/schema/par-property.json/#" + "$ref": "http://www.parcore.org/schema/1.2/par-property.json/#" } }, "required": [ @@ -92,7 +92,7 @@ "type": "string" }, "file": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parFile" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parFile" }, "name": { "type": "string" @@ -123,7 +123,7 @@ "type": "string" }, "parProperty": { - "$ref": "http://www.parcore.org/schema/par-property.json/#" + "$ref": "http://www.parcore.org/schema/1.2/par-property.json/#" }, "toolBinding": { "type": "string" @@ -167,19 +167,19 @@ "properties": { "allowedFormats": { "items": { - "$ref": "http://www.parcore.org/schema/format.json/#" + "$ref": "http://www.parcore.org/schema/1.2/format.json/#" }, "type": "array" }, "allowedPropertiesAllOf": { "items": { - "$ref": "http://www.parcore.org/schema/par-property.json/#" + "$ref": "http://www.parcore.org/schema/1.2/par-property.json/#" }, "type": "array" }, "allowedPropertiesAnyOf": { "items": { - "$ref": "http://www.parcore.org/schema/par-property.json/#" + "$ref": "http://www.parcore.org/schema/1.2/par-property.json/#" }, "type": "array" }, @@ -199,26 +199,26 @@ "type": "string" }, "id": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parIdentifier" }, "inputFiles": { "additionalItems": false, "items": { - "$ref": "http://www.parcore.org/schema/preservation-action.json/#/definitions/inputFile" + "$ref": "http://www.parcore.org/schema/1.2/preservation-action.json/#/definitions/inputFile" }, "type": "array" }, "inputProperties": { "additionalItems": false, "items": { - "$ref": "http://www.parcore.org/schema/preservation-action.json/#/definitions/inputProperty" + "$ref": "http://www.parcore.org/schema/1.2/preservation-action.json/#/definitions/inputProperty" }, "type": "array" }, "inputToolArguments": { "additionalItems": false, "items": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/inputToolArgument" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/inputToolArgument" }, "type": "array" }, @@ -229,7 +229,7 @@ "outputFiles": { "additionalItems": false, "items": { - "$ref": "http://www.parcore.org/schema/preservation-action.json/#/definitions/outputFile" + "$ref": "http://www.parcore.org/schema/1.2/preservation-action.json/#/definitions/outputFile" }, "minItems": 1, "type": "array" @@ -237,7 +237,7 @@ "outputProperties": { "additionalItems": false, "items": { - "$ref": "http://www.parcore.org/schema/preservation-action.json/#/definitions/outputProperty" + "$ref": "http://www.parcore.org/schema/1.2/preservation-action.json/#/definitions/outputProperty" }, "minItems": 1, "type": "array" @@ -245,16 +245,16 @@ "rawOutputs": { "additionalItems": false, "items": { - "$ref": "http://www.parcore.org/schema/preservation-action.json/#/definitions/outputRaw" + "$ref": "http://www.parcore.org/schema/1.2/preservation-action.json/#/definitions/outputRaw" }, "minItems": 1, "type": "array" }, "tool": { - "$ref": "http://www.parcore.org/schema/tool.json/#" + "$ref": "http://www.parcore.org/schema/1.2/tool.json/#" }, "type": { - "$ref": "http://www.parcore.org/schema/preservation-action-type.json/#" + "$ref": "http://www.parcore.org/schema/1.2/preservation-action-type.json/#" } }, "required": [ diff --git a/schema/representation-format.json b/schema/representation-format.json index 949e4be..6486099 100644 --- a/schema/representation-format.json +++ b/schema/representation-format.json @@ -1,5 +1,5 @@ { - "$id": "http://www.parcore.org/schema/representation-format.json/#", + "$id": "http://www.parcore.org/schema/1.2/representation-format.json/#", "$schema": "http://json-schema.org/draft-06/schema#", "additionalProperties": false, "definitions": { @@ -8,10 +8,10 @@ "description": "A criterion for a file within the multi-part object. A list of formats or format families, or both, may be specified, a content file is deemed to match this criterion if it is identified as any of the formats, or format families listed, i.e. the formats and families form a set of OR conditions. If no formats or families are listed, then any content file will match this criterion.", "properties": { "formatFamilies": { - "$ref": "http://www.parcore.org/schema/representation-format.json/#/definitions/identifierArray" + "$ref": "http://www.parcore.org/schema/1.2/representation-format.json/#/definitions/identifierArray" }, "formats": { - "$ref": "http://www.parcore.org/schema/representation-format.json/#/definitions/identifierArray" + "$ref": "http://www.parcore.org/schema/1.2/representation-format.json/#/definitions/identifierArray" }, "maximum": { "default": "1", @@ -40,7 +40,7 @@ "identifierArray": { "additionalItems": false, "items": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parIdentifier" }, "minItems": 1, "type": "array" @@ -64,7 +64,7 @@ "fileCriteria": { "additionalItems": false, "items": { - "$ref": "http://www.parcore.org/schema/representation-format.json/#/definitions/fileCriterion" + "$ref": "http://www.parcore.org/schema/1.2/representation-format.json/#/definitions/fileCriterion" }, "minItems": 1, "type": "array" @@ -72,7 +72,7 @@ "primaryFileCriteria": { "additionalItems": false, "items": { - "$ref": "http://www.parcore.org/schema/representation-format.json/#/definitions/fileCriterion" + "$ref": "http://www.parcore.org/schema/1.2/representation-format.json/#/definitions/fileCriterion" }, "minItems": 1, "type": "array" @@ -88,10 +88,10 @@ "type": "string" }, "hasPriorityOver": { - "$ref": "http://www.parcore.org/schema/representation-format.json/#/definitions/identifierArray" + "$ref": "http://www.parcore.org/schema/1.2/representation-format.json/#/definitions/identifierArray" }, "id": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parIdentifier" }, "localLastModifiedDate": { "type": "string" @@ -100,7 +100,7 @@ "type": "string" }, "representationFormatSignature": { - "$ref": "http://www.parcore.org/schema/representation-format.json/#/definitions/representationFormatSignature" + "$ref": "http://www.parcore.org/schema/1.2/representation-format.json/#/definitions/representationFormatSignature" } }, "required": [ diff --git a/schema/tool.json b/schema/tool.json index f89e043..e128bb9 100644 --- a/schema/tool.json +++ b/schema/tool.json @@ -1,5 +1,5 @@ { - "$id": "http://www.parcore.org/schema/tool.json/#", + "$id": "http://www.parcore.org/schema/1.2/tool.json/#", "$schema": "http://json-schema.org/draft-06/schema#", "definitions": { "tool": { @@ -7,7 +7,7 @@ "description": "A software tool or application that can be used to perform preservation actions", "properties": { "id": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/parIdentifier" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/parIdentifier" }, "localLastModifiedDate": { "format": "date-time", @@ -15,7 +15,7 @@ }, "toolAcceptedParameters": { "items": { - "$ref": "http://www.parcore.org/schema/types.json/#/definitions/inputToolArgument" + "$ref": "http://www.parcore.org/schema/1.2/types.json/#/definitions/inputToolArgument" }, "type": "array", "uniqueItems": true diff --git a/schema/types.json b/schema/types.json index e39cf77..02a5d5c 100644 --- a/schema/types.json +++ b/schema/types.json @@ -1,5 +1,5 @@ { - "$id": "http://www.parcore.org/schema/types.json/#", + "$id": "http://www.parcore.org/schema/1.2/types.json/#", "$schema": "http://json-schema.org/draft-06/schema#", "definitions": { "formatFamily": { From 90828524082bef599c172b41ddcff563d761c299 Mon Sep 17 00:00:00 2001 From: Carl Wilson Date: Wed, 10 May 2023 11:48:52 +0100 Subject: [PATCH 2/3] FIX: Removed version from top level schema docs - removed versioning from the top level JSON schema files, e.g. those in `schema/`; - rewrote the forward page to use site data; - added site data variable for PAR version; and - used variable in page forwarding. --- docs/_data/par.yml | 1 + docs/_layouts/forward.html | 17 +++------- docs/schema/business-rule.json/index.md | 2 +- docs/schema/format.json/index.md | 2 +- docs/schema/index.md | 2 +- docs/schema/par-property.json/index.md | 2 +- .../preservation-action-type.json/index.md | 2 +- docs/schema/preservation-action.json/index.md | 2 +- .../representation-format.json/index.md | 2 +- docs/schema/tool.json/index.md | 2 +- docs/schema/types.json/index.md | 2 +- schema/business-rule.json | 22 ++++++------ schema/format.json | 28 +++++++-------- schema/par-property.json | 4 +-- schema/preservation-action-type.json | 4 +-- schema/preservation-action.json | 34 +++++++++---------- schema/representation-format.json | 18 +++++----- schema/tool.json | 6 ++-- schema/types.json | 2 +- 19 files changed, 74 insertions(+), 80 deletions(-) create mode 100644 docs/_data/par.yml diff --git a/docs/_data/par.yml b/docs/_data/par.yml new file mode 100644 index 0000000..15250ba --- /dev/null +++ b/docs/_data/par.yml @@ -0,0 +1 @@ +version: 1.2 \ No newline at end of file diff --git a/docs/_layouts/forward.html b/docs/_layouts/forward.html index 9631a7b..a0513a0 100644 --- a/docs/_layouts/forward.html +++ b/docs/_layouts/forward.html @@ -4,22 +4,15 @@ {% assign time = 0 %} - {% assign targetname = page.target %} + {% assign redirect_target = "/schema/" | append: site.data.par.version | append: page.target %} {% if page.time %} {% assign time = page.time %} {% endif %} - {% if page.targetname %} - {% assign targetname = page.targetname %} - {% endif %} - - {% capture title %}Redirecting to {{ targetname }}{% endcapture %} - {% if page.targettitle %} - {% assign title = page.targettitle %} - {% endif %} - - + {% capture title %}Redirecting to {{ redirect_target }}{% endcapture %} + + {{ title }}