-
Notifications
You must be signed in to change notification settings - Fork 61
docs(operator-docs): Added Merge operator documentation #140
Conversation
Codecov Report
@@ Coverage Diff @@
## master #140 +/- ##
=======================================
Coverage 88.46% 88.46%
=======================================
Files 7 7
Lines 78 78
Branches 7 7
=======================================
Hits 69 69
Misses 6 6
Partials 3 3
Continue to review full report at Codecov.
|
|
@sumitarora you're awesome for doing this! @kwonoj @benlesh @jayphelps love to get your thoughts. |
|
How are we going to link this to the actual code files? @btroncone @ladyleet @kwonoj It seems like we're going to have documentation in two places? Docs in the code in JSDoc-style comments, and Docs hard-coded in these files here. Is @jayphelps still working on a script to pull the docs out of the code files? Just checking. |
|
@benlesh This is biggest active question for me and why I have been a bit hesitant to start porting over operator info. If the ultimate plan is to use a script to pull from the code files and feed into this project the work going into moving this over manually will be overwritten once that's complete. I think we were stagnating on that front so we decided to start moving forward in this location. Ultimately I guess we need to make a decision what the final source of truth will be as I think this could also have a significant impact on translations. From what I've gathered the current plan is being built around the files in this project. |
|
I don't think we should stagnate on this project or the docs and deal with porting things over and the source of truth when we get there. I know @jayphelps has been working in this but has been sick! |
|
@btroncone @ladyleet This is how I envisioned it to work:-
We have two advantages for this we don't have to do any additional work for translations when the script is ready and we can append to existing JSON docs and even validate the script with these. And we should keep moving forward with the current documentation so as to validate frontend end too and be ready when the script is ready. |
|
@sumitarora I totally agree with you, this also aligns with using ngx-translate :) I've already started translating some stuff into Russian in offline, so I can easily copypaste my translations into merge_ru.json later on, for example. But the initial docs need some rewriting too, I've seen long enough sentences that are hard to understand. |
|
@sumitarora JSON files are not multiline right? I agree that docs in TS is a bit clumsy, but it does ensures parity between code & docs as much as possible (plus, it's how everyone is doing it, looking at JavaDoc here). I really like @jayphelps's effort to extract docs from AST on our own way instead of relying on ESDoc. The output of that process could be the input to this docs project, which could just be the HTML-shell only (+ articles/quickstarts/etc). If we can define how this intermediary/generated docs format should look, we can move forward with rxjs-docs, right now. Think something like a TypeScript type definition for the object structure of that format. |
|
How about storing that intermediary/generated docs format as a JSON file in the Github releases? That way maintainers like @benlesh, @jayphelps and contributors can publish docs simultaneously with the source releases & it will always be up to date 🎉 . |
|
@sumitarora same |
|
@ladyleet done |
|
thx @sumitarora ! merged! |
Closes: #66