-
Notifications
You must be signed in to change notification settings - Fork 167
Standardizing h3/h4/h4 interface and dictionary markup. See Issue #2316 #2317
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
Conversation
dontcallmedom marked as non substantive for IPR from ash-nazg. |
It appears a few links above are "broken", so I either need to remove them or "fix" them. I will try to annotate what's working and what's not (and compare to the current published doc). |
c6b4f51
to
de1814f
Compare
It might make more sense semantically to have:
I should test the behavior of that as well! |
Okay- I found the issue from yesterday- I was not scripting out changes to |
I think there are a couple of things wrong here (but not with the actual changes to the index.bs.) First, the merge request should be to the main branch, not to the gh-pages branch. Second, do not check in index.html. Travis CI will take care of creating index.html automatically, and when it's merged, it will update everything needed to get the spec generated in the right place/branch. This might also explain when the preview/diff didn't work. |
Interesting. I didn't even have a |
Wondering if the pr build/preview is failing due to the source org being my github username? |
I've seen that rvm failure before. Not sure how I fixed it or if I just ignored it because it was on my fork, and not the official spec repo. |
I can't currently test the changes since preview is not working, but I have a question. If you navigate to PeriodicWave heading, the first paragraph has a link to PeridocWave. If you click it, were does it go? Currently for me it goes to the section. Does it now go to the IDL? The links to AudioContext seem to go to the IDL section. This makes more sense to me since bikeshed already has special syntax to reference sections. |
In the "API Overview" section- all the links take me to the IDL definitions. Only the links in the "left nav" take me to the section heading. So if this PR is merged, any Line 513 in e29a1cd
It seems like that should read: I don't really have a preference to where things link, but it seems like whichever "solution" we go with, all the h3/h4 markup for the interfaces should be consistent. |
I need to read up more on bikeshed. If I'm reading this correctly: I think Also, reading the data model contract: I don't think I'm actually doing part 4 |
I think we're ok here. I don't think there's much use of I think none of the headings are actually defining any term, so what you have for the headings seems fine. |
Grabbed your branch and built it locally. I get some new bikeshed errors:
I think with the new scheme, the links here should be using I didn't check all the links, but the ones I did test go to the IDL section as we wanted. |
@rtoy - Good call on the bikeshed errors. At some point I started ignoring those and just confirming the links. I fixed the errors you mentioned in 245578f But I'm now seeing:
I'm not sure if those should be fixed in this PR or what. When I compile the
|
You should use Travis CI passes, so I think everything is fine now. |
Yeah- I see travis passing now: But seeing:
(I think b/c the branch is in my repo) |
I think that's ok, because only changes to the main branch should be deployed. Don't know why the preview is failing though. While randomly clicking on headers, I noticed that AudioBufferSourceOptions section doesn't link to the IDL. The other dictionaries also end up at the section heading, not he IDL. These might need to be fixed too. |
Good call. I can update the dictionaries as well. |
I updated the dictionary markup in 1ebd936 I need to update the description with links to the 29 dictionaries. I'll start testing that all 58 (29*2) of the links in that commit "work" |
All 58 of the dictionary links seem to work with 1 exception:
For some reason, when you click Also, all the IDL links have |
For reference, the original webaudio bikehsed issue is #2185, which is now being tracked in speced/bikeshed#1740. |
Ah, for the IIRFilterOptions link, I think you need to say:
to get the section heading to link to the |
Yeah- I was just now fixing that :) Should be fixed in 9910392 |
Assuming the links to your repo aren't really stable, I would not include them in the description. You can just list all the nodes/headers/dictionaries that you updated. (I think the description is what gets committed as the merge log. I forget if that's exactly true. I think you also get an option to edit the message before merging.) |
Good point. I'll just put them in a gist (with versions that point to my repo- and the real repo), that way we can confirm before and after merging the PR. |
Excellent. Since a gist is stable, more or less, a link to the gist is fine. Also, if you used a simple sed/awk/perl script to do this, pasting the script into the description is helpful. I looked over everything and it looks fine. I did some random testing and everything is fine too. The hard part is if there were some stray links that now no longer work. But I think we can fix those as we discover them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for doing this! It's a lot of work, but very well worth it to make the spec nice and clean and usable.
@rtoy - I updated the description. I have a gist with a few files in it. The script I used to write the links is there: I just slightly modified it to generate the following files:
The script I made to modify the I will clean that up and paste in the description. |
Everything looks fine. When you are satisfied with everything, let me know, and we can merge this in. |
I'm done making changes (unless there's anything else we find) 😃. I hope there are no unintended consequences 🤞 I did manually click all the links in: Hopefully all goes smoothly after the merge :) |
Looks good. The new version is live now and doing some random checking works as expected. Thanks! |
For more info, see Issue #2316
I've updated the markup for 37 interfaces and 29 dictionaries. For a list of links, please see the following gist:
https://gist.github.com/skratchdot/6f98d30ae8d7a3de01feb475c4b6df93#file-updated-idls-md
Out of the 37 interfaces in the spec, this PR standardizes the markup for the 36 interfaces that have
header tags (and show up in the left navigation). There is 1 interface in the spec that does not have
it's own header/left nav entry:
Here is the script I used to update the
index.bs
file:https://gist.github.com/skratchdot/6f98d30ae8d7a3de01feb475c4b6df93#file-update-index-sh
If we ever need to change the h3/h4/h4 markup again, we can probably re-use something similar.
💥 Error: 500 Internal Server Error 💥
PR Preview failed to build. (Last tried on Apr 13, 2021, 11:17 PM UTC).
More
PR Preview relies on a number of web services to run. There seems to be an issue with the following one:
🚨 HTML Diff Service - The HTML Diff Service is used to create HTML diffs of the spec changes suggested in a pull request.
🔗 Related URL
If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.