Sitemap generation for training catalog to fetch HSF material#105
Conversation
✅ Deploy Preview for nimble-pothos-1ee962 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| "start": "gatsby develop", | ||
| "build": "gatsby build", | ||
| "build:sitemap": "./src/scripts/generate-sitemap.sh", | ||
| "build": "npm run build:sitemap && gatsby build", |
There was a problem hiding this comment.
From the logs, it seems like the generate-sitemap.sh script is failing because public doesn't exist yet. I'm not sure if gatsby build deletes all the contents of public, so probably the safest solution is to switch the order here.
There was a problem hiding this comment.
I just saw it too... Let's try this way then.
|
All good! |
ariostas
left a comment
There was a problem hiding this comment.
Thank you @kennethrioja! This looks good to me.
The netlify preview looks good, but could you also verify that it worked as you wanted? I'll merge after you confirm.
Hello @ariostas
I would like to contribute to the training center as I am currently deploying a training catalog at CERN which will fetch material from the HSF training center. In order to do that I need the providers (you / HSF training center) to have a sitemap at the root of the website.
What I provided in the PR:
sitemap.txtunderpubliclisting all the URLs/materials the HSF training center has.package.jsonso that when developing and deploying the website, it executes the script.Cheers