Skip to content

Commit

Permalink
chore: sitemap (#1198)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia authored Aug 31, 2024
1 parent 3b43aba commit 3f3e8ad
Show file tree
Hide file tree
Showing 4 changed files with 650 additions and 5 deletions.
26 changes: 26 additions & 0 deletions site/createSitemap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import SitemapGenerator from 'sitemap-generator';

let pagesInSitemap = 0;

const generator = SitemapGenerator('https://onchainkit.xyz', {
changeFreq: 'daily',
ignore: (url) => {
// Ignore coverage pages
const hasCoverage = url.includes('coverage');
if (!hasCoverage) {
pagesInSitemap += 1;
console.log('🌊', url);
}
return hasCoverage;
},
filepath: './docs/public/sitemap.xml',
lastMod: true,
stripQuerystring: false,
});

generator.on('done', () => {
console.log(`Sitemap created with ${pagesInSitemap} pages`);
});

// Start the crawler
generator.start();
293 changes: 293 additions & 0 deletions site/docs/public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,293 @@
<?xml version="1.0"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://onchainkit.xyz/</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/getting-started</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/wallet/wallet</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/transaction/transaction</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/token/types</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/swap/swap</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/avatar</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/badge</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/name</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/address</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/identity</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/frame/frame-metadata</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/playground</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/guides/lifecycle-status</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/guides/use-basename-in-onchain-app</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/frame/framegear</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/guides/tailwind</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/guides/reporting-bug</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/guides/contribution</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/config/onchainkit-provider</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/token/token-chip</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/token/token-image</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/token/token-row</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/token/token-search</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/token/token-select-dropdown</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/wallet/wallet-dropdown-basename</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/wallet/wallet-dropdown-disconnect</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/wallet/wallet-dropdown-fund-link</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/wallet/wallet-dropdown-link</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/api/build-swap-transaction</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/api/get-swap-quote</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/api/get-tokens</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/wallet/types</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/transaction/types</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/api/types</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/config/types</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/farcaster/types</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/frame/types</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/types</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/swap/types</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/use-avatar</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/use-name</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/get-name</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/config/is-base</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/farcaster/get-farcaster-user-address</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/frame/get-frame-html-response</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/frame/get-frame-message</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/frame/get-frame-metadata</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/xmtp/get-xmtp-frame-message</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/xmtp/is-xmtp-frame-request</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/get-address</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/get-attestations</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/get-avatar</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/identity/use-address</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/token/format-amount</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/wallet/is-valid-aa-entrypoint</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/wallet/is-wallet-a-coinbase-smart-wallet</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://onchainkit.xyz/xmtp/types</loc>
<lastmod>2024-08-30</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>
7 changes: 6 additions & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"dev": "vocs dev",
"build": "vocs build",
"preview": "vocs preview"
"preview": "vocs preview",
"sitemap": "node createSitemap.js"
},
"dependencies": {
"@coinbase/onchainkit": "0.31.2",
Expand All @@ -15,9 +16,13 @@
"react": "18",
"react-dom": "18",
"react-farcaster-embed": "^1.4.7",
"sitemap-generator": "^8.5.1",
"tar": "^7.0.0",
"typescript": "latest",
"vite": "^5.3.4",
"vocs": "1.0.0-alpha.55"
},
"devDependencies": {
"@types/sitemap-generator": "^8"
}
}
Loading

0 comments on commit 3f3e8ad

Please sign in to comment.