Skip to content

Commit 1c44b83

Browse files
authored
Remove project downloads URL from validation (#600)
This is now a `null` response, and is no longer a string/URL. This was resulting in silent failures of addons flyout injection.
1 parent dea437d commit 1c44b83

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

public/_/readthedocs-addons.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"documentation": "http://localhost:8000/en/v1.0/",
1919
"home": "https://devthedocs.org/projects/example/",
2020
"builds": "https://devthedocs.org/projects/example/builds/",
21-
"downloads": "https://devthedocs.org/projects/example/downloads/"
21+
"downloads": null
2222
}
2323
},
2424
"translations": [

src/data-validation.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,10 @@ const addons_flyout = {
167167
slug: { type: "string" },
168168
urls: {
169169
type: "object",
170-
required: ["home", "builds", "downloads"],
170+
required: ["home", "builds"],
171171
properties: {
172172
home: { type: "string" },
173173
builds: { type: "string" },
174-
downloads: { type: "string" },
175174
},
176175
},
177176
versioning_scheme: {

0 commit comments

Comments
 (0)