Closed ajschmidt8 closed 9 months ago
The point about the _redirects
file will require some tinkering.
Right now we have separate build/deploy processes for PR preview environments vs. production deploys:
jekyll build
and deploy the result (without pulling any docs from S3).We can run different scripts for these different environments by utilizing a netlify.toml
file (docs here) to ensure that the PR preview environments don't try to pull any files from S3 (since Netlify's CI machines won't have access to S3).
Closing since this issue is superseded by our efforts to migrate docs.rapids.ai into rapids.ai.
Recording two items that we should fix here so I don't forget:
permalink
directivesapi.md
, then its path will be/api/
by default.api/
) so that "pretty" URLs are generated (e.g./api/
vs./api.html
). This will ensure we're consistent with the Jekyll config option here: https://github.com/rapidsai/docs/blob/c4992e07ee524e98fd0ddfea3ab5724816cfc25c/_config.yml#L10/deployments/
.api/
anddeployment/
folders from thegit
history (src). Therefore we should add it back as a server-side redirect._redirects
file for Netlify (like this one from the main website) to our docs site and then ensuring it is copied into Jekyll's_site
folder upon deploy.cc: @exactlyallan @jacobtomlinson