Open knuhol opened 4 years ago
@terhol if you want to work on this ticket, these are things good to know:
Prerequisites
npm i
sitemap
, you can run it by command npm run sitemap
- it will fail for now, check the further steps to fix itPUBLIC_HTML
, on MacOS you can do it by command export PUBLIC_HTML=https://dkdb.cz
build
folder, if it doesn't exist yet on your machine, you need to create it by command mkdir build
build/sitemap.xml
file which you can format in IntelliJ IDEA to a human readable format by selecting Code > Reformat file...
in IntelliJ IDEA menu to check it has been generated correctlyThe task
scripts/slugs.json
filescripts/sitemap-generator.js
remove the code which reads slugs from the removed file and change it to the endpoint instead (you can hardcode the address for now)console.error
Committing the change
git checkout -b fetch-slug-list-from-api
git add -A
npm run commit
which will trigger commit helpergit push -u origin head
(which will also track the new remote branch in case some changes needed later)
The sitemap is currently generated from
scripts/slugs.json
file because of missing API endpoint. Once endpoint is added, changescripts/sitemap-generator.js
script to fetch it from API instead.