Max/sitemap generation fix (#6515)
* Tweak README ordering * Linting * Add sitemap generation + NEXT env var to CI * Update domain for sitemap generation * Inc. sitemap -0 * test remove lockfile * fix borked name in package * add redoc * add framer * Add pnpm-lock file * Add sitemap to remote + ci workflow * remove extra sitemap * remove static files from remote for vercel * add sitemap gen to next build step for vercel
This commit is contained in:
@@ -79,7 +79,7 @@ Outputs `sitemap.xml` and `robots.txt` to `/public`.
|
||||
### Environment Variable
|
||||
Set in production:
|
||||
```
|
||||
NEXT_PUBLIC_SITE_URL=https://nymtech.net/docs
|
||||
NEXT_PUBLIC_SITE_URL=https://nym.com/docs
|
||||
```
|
||||
|
||||
### Schema Types
|
||||
|
||||
@@ -10,3 +10,7 @@ package-lock.json
|
||||
.env
|
||||
|
||||
scratch.md
|
||||
|
||||
# generated by next-sitemap at build time
|
||||
sitemap*.xml
|
||||
robots.txt
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @type {import('next-sitemap').IConfig} */
|
||||
module.exports = {
|
||||
siteUrl: 'https://nymtech.net/docs',
|
||||
siteUrl: 'https://nym.com/docs',
|
||||
generateRobotsTxt: true,
|
||||
outDir: './public',
|
||||
exclude: ['/api/*', '/docs/_*', '/404'],
|
||||
@@ -9,9 +9,7 @@ module.exports = {
|
||||
{ userAgent: '*', allow: '/' },
|
||||
{ userAgent: '*', disallow: ['/api/', '/_next/'] },
|
||||
],
|
||||
additionalSitemaps: [
|
||||
'https://nymtech.net/docs/sitemap-docs.xml',
|
||||
],
|
||||
additionalSitemaps: [],
|
||||
},
|
||||
transform: async (config, path) => ({
|
||||
loc: path,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "Nym Docs",
|
||||
"name": "nym-docs",
|
||||
"version": "2.0",
|
||||
"description": "Nym documentation for developers and node operators",
|
||||
"license": "Apache-2.0",
|
||||
@@ -8,7 +8,7 @@
|
||||
"generate:commands": "../scripts/next-scripts/autodoc.sh",
|
||||
"generate:tables": "../scripts/next-scripts/python-prebuild.sh",
|
||||
"predev": "../scripts/next-scripts/python-prebuild.sh",
|
||||
"build": "next build",
|
||||
"build": "next build && next-sitemap",
|
||||
"dev": " next dev",
|
||||
"lint": "next lint",
|
||||
"lint:fix": "next lint --fix",
|
||||
@@ -44,12 +44,14 @@
|
||||
"@types/mdx": "^2.0.13",
|
||||
"chain-registry": "^1.19.0",
|
||||
"cosmjs-types": "^0.9.0",
|
||||
"framer-motion": "^12.34.5",
|
||||
"lucide-react": "^0.438.0",
|
||||
"next": "15.5.10",
|
||||
"nextra": "2",
|
||||
"nextra-theme-docs": "2",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"redoc": "^2.5.2",
|
||||
"save": "^2.9.0",
|
||||
"uuid": "^9.0.0"
|
||||
},
|
||||
|
||||
Generated
+2842
-2559
File diff suppressed because it is too large
Load Diff
@@ -1,15 +0,0 @@
|
||||
# *
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
# *
|
||||
User-agent: *
|
||||
Disallow: /api/
|
||||
Disallow: /_next/
|
||||
|
||||
# Host
|
||||
Host: https://nymtech.net/docs
|
||||
|
||||
# Sitemaps
|
||||
Sitemap: https://nymtech.net/docs/sitemap.xml
|
||||
Sitemap: https://nymtech.net/docs/sitemap-docs.xml
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
|
||||
<url><loc>https://nymtech.net/docs</loc><lastmod>2026-02-25T10:35:41.122Z</lastmod><changefreq>yearly</changefreq><priority>0.6</priority></url>
|
||||
<url><loc>https://nymtech.net/docs/network</loc><lastmod>2026-02-25T10:35:41.122Z</lastmod><changefreq>yearly</changefreq><priority>0.6</priority></url>
|
||||
</urlset>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<sitemap><loc>https://nymtech.net/docs/sitemap-0.xml</loc></sitemap>
|
||||
<sitemap><loc>https://nymtech.net/docs/sitemap-docs.xml</loc></sitemap>
|
||||
</sitemapindex>
|
||||
Reference in New Issue
Block a user