Skip to content

Commit de9a930

Browse files
committed
Fixed Schema Warning: I updated the DataDownload schema in index.html to point to the repository ZIP archive and explicitly set encodingFormat to application/zip. This should resolve the validation warning.
1 parent 4044aca commit de9a930

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

web-app/dev_serve.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import os
44

55
PORT = 8080
6-
DIRECTORY = "public"
6+
# Use absolute path relative to this script's location
7+
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
8+
DIRECTORY = os.path.join(SCRIPT_DIR, "public")
79
ERROR_PAGE_PATH = os.path.join(DIRECTORY, "404.html")
810

911
class CustomHandler(http.server.SimpleHTTPRequestHandler):

web-app/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@
107107
"license": "https://github.com/srix/prog-lang-compare",
108108
"distribution": {
109109
"@type": "DataDownload",
110-
"contentUrl": "https://github.com/srix/prog-lang-compare",
111-
"encodingFormat": "text/html"
110+
"contentUrl": "https://github.com/srix/prog-lang-compare/archive/refs/heads/main.zip",
111+
"encodingFormat": "application/zip"
112112
}
113113
},
114114
{

web-app/src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@
107107
"license": "https://github.com/srix/prog-lang-compare",
108108
"distribution": {
109109
"@type": "DataDownload",
110-
"contentUrl": "https://github.com/srix/prog-lang-compare",
111-
"encodingFormat": "text/html"
110+
"contentUrl": "https://github.com/srix/prog-lang-compare/archive/refs/heads/main.zip",
111+
"encodingFormat": "application/zip"
112112
}
113113
},
114114
{

0 commit comments

Comments
 (0)