Add text import export for toolbox modules
This commit is contained in:
parent
a9b5ca423a
commit
117b7b79e1
27 changed files with 1430 additions and 181 deletions
|
|
@ -58,6 +58,9 @@ export function validateSiteContent(site) {
|
|||
"library.toolsLabel",
|
||||
"library.categoryLabel",
|
||||
"library.featureHeading",
|
||||
"library.advancedHeading",
|
||||
"library.copyExampleLabel",
|
||||
"library.copyExampleSuccess",
|
||||
"library.controlLegendHeading",
|
||||
"library.categories.notesTracking",
|
||||
"library.categories.references",
|
||||
|
|
@ -488,11 +491,9 @@ export function validateSiteContent(site) {
|
|||
});
|
||||
}
|
||||
});
|
||||
if (docs.importFormat) {
|
||||
assertNonEmptyString({ importFormat: docs.importFormat }, "importFormat.title");
|
||||
assertNonEmptyString({ importFormat: docs.importFormat }, "importFormat.text");
|
||||
assertNonEmptyString({ importFormat: docs.importFormat }, "importFormat.example");
|
||||
}
|
||||
assert.equal(typeof docs.importFormat, "object", `library.toolDocs.${toolType}.importFormat must be an object`);
|
||||
assertNonEmptyString({ importFormat: docs.importFormat }, "importFormat.text");
|
||||
assertNonEmptyString({ importFormat: docs.importFormat }, "importFormat.example");
|
||||
});
|
||||
|
||||
const aboutLimits = valueAt(site, "about.limits");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue