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:
mfahampshire
2026-03-04 16:01:51 +00:00
committed by GitHub
parent 5cee248122
commit a2c489dc5b
10 changed files with 2856 additions and 2592 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
build:
runs-on: arc-ubuntu-22.04
env:
NEXT_PUBLIC_SITE_URL: https://nymtech.net/docs
NEXT_PUBLIC_SITE_URL: https://nym.com/docs
defaults:
run:
working-directory: documentation/docs
+2
View File
@@ -48,6 +48,8 @@ jobs:
run: pnpm i
- name: Build project
run: pnpm run build
- name: Generate sitemap
run: npx next-sitemap
- name: Move files to /dist/
run: ../scripts/move-to-dist.sh
+1 -1
View File
@@ -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
+4
View File
@@ -10,3 +10,7 @@ package-lock.json
.env
scratch.md
# generated by next-sitemap at build time
sitemap*.xml
robots.txt
+2 -4
View File
@@ -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,
+4 -2
View File
@@ -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"
},
+2842 -2559
View File
File diff suppressed because it is too large Load Diff
-15
View File
@@ -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
-5
View File
@@ -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>
-5
View File
@@ -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>