mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 16:25:01 -04:00
Delete sitemap.mjs
This commit is contained in:
parent
05e65a74ce
commit
3c96615e1b
1 changed files with 0 additions and 33 deletions
|
@ -1,33 +0,0 @@
|
||||||
import Sitemap from "sitemap";
|
|
||||||
import OperationConfig from "../../core/config/OperationConfig.json";
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Generates an XML sitemap for all CyberChef operations and a number of recipes.
|
|
||||||
*
|
|
||||||
* @author n1474335 [n1474335@gmail.com]
|
|
||||||
* @copyright Crown Copyright 2018
|
|
||||||
* @license Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
const sitemap = Sitemap.createSitemap({
|
|
||||||
hostname: "https://gchq.github.io/CyberChef",
|
|
||||||
});
|
|
||||||
|
|
||||||
sitemap.add({
|
|
||||||
url: "/",
|
|
||||||
changefreq: "weekly",
|
|
||||||
priority: 1.0
|
|
||||||
});
|
|
||||||
|
|
||||||
for (const op in OperationConfig) {
|
|
||||||
sitemap.add({
|
|
||||||
url: `/?op=${encodeURIComponent(op)}`,
|
|
||||||
changeFreq: "yearly",
|
|
||||||
priority: 0.5
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const xml = sitemap.toString();
|
|
||||||
|
|
||||||
console.log(xml); // eslint-disable-line no-console
|
|
Loading…
Add table
Add a link
Reference in a new issue