Using macro calls for future non existing pages #681
Replies: 3 comments 4 replies
-
I prefer solution |
Beta Was this translation helpful? Give feedback.
-
I very much prefer TODO macros. If we worry about broken links, we can add a macro parameter representing "don't report it, it will be written", and generate a flaw if the target link actually exists. It's much easier to batch-create links while you are writing docs for an entire area, than to retroactively add links when writing one or two singular pages, as the relationship between APIs is much clearer in the first case. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
It has been seen that new page authors are putting macro calls to non existing future documents:
{{domxref("to-be-written-page")}}
. Some times the future pages are not written and these macro calls add to flaws. Also, the links appear red on the rendered page.For example, on https://developer.mozilla.org/en-US/docs/Web/API/Navigator page usage of
{{domxref("Navigator.standalone")}}
leads to the following flaw:Pros of such practice:
Cons of such practice:
Solution
a. 🎉 Keep using the practice. And in PR companion workflow make changes to not report these flaws in PR comments. Sweep these under the rug. But the down side is that we won't know about genuinely broken links due to typos. If one wants to really see and fix these flaws then they will have to run full build in local dev environment and see the flaw dashboard.
b. 🚀 Ask authors not to use such macro calls. They could merge all the PRs, except the last one, without the macro calls and merge the last one with all the links placed in pages in previous PRs. This could be bit painful.
What are your thoughts? which solution do you prefer? To vote add reaction on this post. For solution
a
use 🎉 and forb
use 🚀 .The same argument could be made for the front-matter key
browser-compat
. People use speculative BCD queries in new pages and then they don't create PR to put compat table in BCD repo.For example on page https://developer.mozilla.org/en-US/docs/Web/API/AudioParamDescriptor BCD query
api.AudioParamDescriptor
has been used which leads to the following flaw:Beta Was this translation helpful? Give feedback.
All reactions