From 1153f01ccc7907017827f27e9c8fb30e8964b906 Mon Sep 17 00:00:00 2001 From: Fernando-A-Rocha Date: Mon, 20 Jan 2025 00:42:08 +0000 Subject: [PATCH] DEL categories --- .vscode/settings.json | 1 - schemas/categories.yaml | 36 ------------------------------------ tools/validate.cmd | 2 -- tools/validate.sh | 2 -- wiki/categories.yaml | 29 ----------------------------- 5 files changed, 70 deletions(-) delete mode 100644 schemas/categories.yaml delete mode 100644 wiki/categories.yaml diff --git a/.vscode/settings.json b/.vscode/settings.json index 524fbbb..f294edc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,5 @@ { "yaml.schemas": { - "schemas/categories.yaml": "/wiki/categories.yaml", "schemas/function.yaml": "/functions/**/*", "schemas/article.yaml": "/article/**/*", } diff --git a/schemas/categories.yaml b/schemas/categories.yaml deleted file mode 100644 index ad555b8..0000000 --- a/schemas/categories.yaml +++ /dev/null @@ -1,36 +0,0 @@ -$schema: "https://json-schema.org/draft/2020-12/schema" -$id: "/schemas/categories" -title: "Wiki Categories Schema" -type: "array" -items: - $ref: "#/$defs/section" - -$defs: - section: - type: "object" - required: - - name - properties: - name: - type: "string" - description: "The name identifier of the category." - articles: - type: "object" - properties: - path: - type: "string" - description: "The path to the articles." - functions: - type: "object" - properties: - path: - type: "string" - description: "The path to the functions." - type: - type: "string" - description: "The type of functions to include (client/server/shared)." - subcategories: - type: "array" - description: "A list of subsections or subcategories." - items: - $ref: "#/$defs/section" diff --git a/tools/validate.cmd b/tools/validate.cmd index 19f9e88..69a95a2 100644 --- a/tools/validate.cmd +++ b/tools/validate.cmd @@ -1,7 +1,5 @@ @echo off -.\tools\yajsv.exe -s schemas/categories.yaml "wiki/categories.yaml" - for /r "functions" %%f in (*.yaml) do ( .\tools\yajsv.exe -s schemas/function.yaml "%%f" ) diff --git a/tools/validate.sh b/tools/validate.sh index 1b408d9..4816926 100644 --- a/tools/validate.sh +++ b/tools/validate.sh @@ -1,6 +1,4 @@ #!/bin/bash -tools/yajsv -s schemas/categories.yaml wiki/categories.yaml - find 'functions/' -name '*.yaml' -type f -print0 | xargs -0 -I {} tools/yajsv -s schemas/function.yaml {} find 'articles/' -name '*.yaml' -type f -print0 | xargs -0 -I {} tools/yajsv -s schemas/article.yaml {} diff --git a/wiki/categories.yaml b/wiki/categories.yaml deleted file mode 100644 index 9e36b0a..0000000 --- a/wiki/categories.yaml +++ /dev/null @@ -1,29 +0,0 @@ -- name: "Official guides" - articles: - path: "official-guides" - -- name: "Community guides" - articles: - path: "community-guides" - -- name: "Client functions" - subcategories: - - name: "Client cursor functions" - functions: - path: "Cursor" - type: "client" - - name: "Client element functions" - functions: - path: "Element" - type: "client" - -- name: "Shared functions" - subcategories: - - name: "Shared cursor functions" - functions: - path: "Cursor" - type: "shared" - - name: "Shared element functions" - functions: - path: "Element" - type: "shared"