-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Monorepo] Netlify to replace pr-review #2242
Comments
We now have statically-generated PR previews |
About
It works in PR preview, which you could see before I realized w3c.github.io/core-aam editor draft would be broken: #2298 So maybe we really do need to set up all the w3c.github.io/* to directed back to this repository. Then if we do this for all the specs, the links will be correct in PR preview... right...? |
@spectranaut @pkra @jnurthen and all. I have followed an approach similar to @spectranaut comments above in https://github.com/daniel-montalvo/aria The build process now has a bash script that replaces specStatus with "unofficial" and then includes the unofficial keys for the resolveReferences function to generate relative links in the PRs. For a prototype of how this could work, see I am using the Netlify production context for now because this is just a test. If we are happy with this approach, I will adjust the main ARIA netlify configuration file accordingly so that this only runs in PRs. |
@daniel-montalvo I thought #2325 and #2386 had fixed cross references to link within PRs but on #2416 in https://deploy-preview-2416--wai-aria.netlify.app I find ~5000 links starting with |
Daniel to have a look at links that take to github.io An example is list item. |
Hmm @daniel-montalvo I'm trying to track down the fix for relative links in pr previews. Did you ever merge in the work you mentioned (in this comment above)[https://github.com//issues/2242#issuecomment-2271738905]? There are a few PRs that reference this issue and mention relative links, but they both look like they were closed without merging and there is a zero diff in both of them: #2325 and #2386 Currently, the links that work are those that are generated by as relative links, for example, respec links to definitions. The problem is that all the |
Thanks for pointing this out, Valerie. Bummer... I thought this was merged and restored my fork discarding all of these. Will have to recreate this. |
Partially addresses #2242 This only picks up references to roles, states, and properties. Some definitions are still pointing to the editors draft or TR documents because they are not processed by the script due to the way they are written. For example, `<a>assistive technologies</a>` would rely on [Xref](https://respec.org/xref) for processing. We should decide if we are happy with landing this or we want another approach, like waiting for respec to process the files and then just search and replace all absolute links (no matter where they link to) with relative links. Co-authored-by: daniel-montalvo <[email protected]>
We also want to look to add the follow features to our netlify publications:
The text was updated successfully, but these errors were encountered: