-
Notifications
You must be signed in to change notification settings - Fork 277
[docs] configure docs site deployments #2004
Comments
Thanks for the details @flynnduism .
This seems reasonable as long as PRs are not capable of breaking the documentation on the website. I do think it would be valuable to fail PRs break the documentation website, or that do not follow the correct documentation style to be rendered on the website. |
@shashankram ok I can add the Netlify notification to do this - it provides a build preview of the code changes in the PR site with success/failure status. |
Question here is whether a PR can break the website, and how we can prevent it. If the checks are going to pass normally, would adding the Netlify notification cause distraction, or are there possibilities for false alarms? |
|
Thanks, it seems like a good idea to integrate it with PRs. |
Follow up to #1840.
Currently auto-deploy of the docs website is disabled, as it was causing problematic 🔴 checks on pull requests.
Here I want to discuss and track some follow up tasks...
Deploy Process
@shashankram you had a question there around deployment and process:
By default, Netlify will redeploy the site when any changes are merged to the
main
branch of this repo. This is automated, site contents, site menus etc are auto-generated. Any docs contents that are written in markdown underdocs/content/
will be published to the site once merged in. If this approach is not desirable we could look at changing the config / workflow to suit the team preference.One exception to this is the process to publish a new release version on the website - the steps to do so are detailed in the website README here.
Pull Request Checks
The default config for the site deploys added a bunch of checks (via the Netlify github app integration), which had showed up on all active PRs:
This was super annoying and confusing for the team, so we removed these checks. They were failing because at that point they were attempting to build the docs site to offer per-PR previews - but the website did not exist in the code that was being checked.
Now that the Hugo site exists inside
docs/
, these checks should all return ✅ . However I don't think these checks should be reinstated because they add noise to pull requests and not much value IMO. @shashankram what do you think?Re-enabling Site Deploys
The text was updated successfully, but these errors were encountered: