Skip to content

Commit

Permalink
Merge 4ef1435 into 1cec429
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-deshpande committed Oct 28, 2020
2 parents 1cec429 + 4ef1435 commit 6515cb4
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 2 deletions.
8 changes: 8 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ npm run favicon:generate
```

This will generate the favicons. To generate the output of the Facebook section of the `components/Layout/Favicon` component, visit [realfavicongenerator.net](https://realfavicongenerator.net/social/).

## Sitemap

You can generate the XML sitemap with the following script

```
npm run sitemap
```
15 changes: 15 additions & 0 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint": "eslint common components content context pages && ./node_modules/.bin/madge --circular common components content context pages",
"favicon:generate": "real-favicon generate ./public/favicon/description.json ./public/favicon/data.json ./public/favicon",
"analyze": "ANALYZE=true npm run build",
"ci": "npm install && npm run lint"
"ci": "npm install && npm run lint",
"sitemap": "node scripts/sitemap-generator.js"
},
"dependencies": {
"fps-locker": "0.0.1",
Expand Down Expand Up @@ -52,6 +53,7 @@
"madge": "^3.6.0",
"next-assets-import": "0.0.2",
"next-progressbar": "^1.0.0",
"nextjs-sitemap-generator": "^1.1.0",
"node-sass": "^4.14.1",
"prettier": "^1.15.2",
"prop-types": "^15.7.2"
Expand Down
2 changes: 2 additions & 0 deletions website/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Sitemap: https://three-nebula.org/sitemap.xml
67 changes: 67 additions & 0 deletions website/public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url><loc>https://three-nebula.org/</loc>



<lastmod>2020-10-28</lastmod>
</url><url><loc>https://three-nebula.org/examples</loc>



<lastmod>2020-10-28</lastmod>
</url><url><loc>https://three-nebula.org/examples/custom-renderer</loc>



<lastmod>2020-10-28</lastmod>
</url><url><loc>https://three-nebula.org/examples/multiple-emitters</loc>



<lastmod>2020-10-28</lastmod>
</url><url><loc>https://three-nebula.org/examples/emitter-behaviors</loc>



<lastmod>2020-10-28</lastmod>
</url><url><loc>https://three-nebula.org/examples/mesh-emitter</loc>



<lastmod>2020-10-28</lastmod>
</url><url><loc>https://three-nebula.org/examples/particle-collision</loc>



<lastmod>2020-10-28</lastmod>
</url><url><loc>https://three-nebula.org/examples/gravity</loc>



<lastmod>2020-10-28</lastmod>
</url><url><loc>https://three-nebula.org/examples/point-zone</loc>



<lastmod>2020-10-28</lastmod>
</url><url><loc>https://three-nebula.org/examples/snow</loc>



<lastmod>2020-10-28</lastmod>
</url><url><loc>https://three-nebula.org/examples/life-cycle-api</loc>



<lastmod>2020-10-28</lastmod>
</url><url><loc>https://three-nebula.org/examples/gpu-renderer</loc>



<lastmod>2020-10-28</lastmod>
</url></urlset>
Binary file removed website/public/sword.glb
Binary file not shown.
1 change: 0 additions & 1 deletion website/public/teapot.json

This file was deleted.

12 changes: 12 additions & 0 deletions website/scripts/sitemap-generator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const sitemap = require('nextjs-sitemap-generator');

sitemap({
baseUrl: 'https://three-nebula.org',
pagesDirectory: __dirname + '/../pages',
targetDirectory: 'public/',
sitemapFilename: 'sitemap.xml',
nextConfigPath: __dirname + '/../next.config.js',
ignoredExtensions: ['png', 'jpg'],
});

console.log(`✅ sitemap.xml generated!`);

0 comments on commit 6515cb4

Please sign in to comment.