-
Hi all, We had a short chat about this one already, but with the hopes that we come out the other side with clear approach / gameplan in future when we see cases like this, I'm going to start a short discussion. I'm in the middle of documenting There are two options:
Please leave some feedback on what should be done here to ensure that we have comprehensive docs, but do not add too much maintenance overhead. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
(I don't know yet which option is best, still thinking about it.) However, I want to leave an example here to show that it isn't necessarily duplicated pages. I was in a similar situation when I was "demixing" many docs on MDN. The example is ChildNode. I did the work to document the members of this mixin on the specific objects. It meant creating 3 pages instead of one. Here they are:
See how the pages are different (especially the code examples). Of course, this mixin is small (4 methods, and not 44). The compat table is often different, too. It would certainly be the case here. So, questions to ask are maybe: How different are canvas members really depending on the context? Is there different code to show to readers? Are there things to watch out for only on offscreen? Where would that be documented? If it is really identical 99% of the cases, then "duplication" isn't needed, I guess. |
Beta Was this translation helpful? Give feedback.
-
Chiming in to mention mdn/content#20019 (and possibly mdn/content#20025, https://github.com/mdn/content/discussions/18002) It really depends on how much the duplication is. I'm strongly leaning towards deduplicate where possible, but I expect a lot of disagreement so just my 2 cents. |
Beta Was this translation helpful? Give feedback.
-
Thanks all for the input, I'm going to proceed with not duplicating the method & properties pages in this case. I'll close the other draft PR and have a go at pointing out differences with the mixin only. 🙌🏻 |
Beta Was this translation helpful? Give feedback.
Thanks all for the input, I'm going to proceed with not duplicating the method & properties pages in this case. I'll close the other draft PR and have a go at pointing out differences with the mixin only. 🙌🏻