Giter Site home page Giter Site logo

Docs WG Ratification about docs HOT 7 CLOSED

nodejs avatar nodejs commented on May 11, 2024
Docs WG Ratification

from docs.

Comments (7)

Qard avatar Qard commented on May 11, 2024

👍 from me. 😸

from docs.

rvagg avatar rvagg commented on May 11, 2024

It seems to me that one of the major blockers is the "shares responsibility for doc/api with the core team" bit; where core wants to have API docs tied closely to API so new PRs affecting API can have "update the docs too" enforced in the same way as "add a test" is enforced. With the docs living elsewhere or being managed by a separate group this becomes more cumbersome and may impact the pace of progress.

So, perhaps its worth exploring the idea of using tooling to solve the conflict. e.g. the API docs that core owns are purely descriptive and have a well defined format. Perhaps its even JSON or semi-JSON, with fields such as "arguments", "errors", "return value", maybe going so far as to include a basic description but stopping short of being complete. Then tooling could be used to generate the final docs by pulling in this formal data and combining it with data owned by the docs group that fleshes out the formal descriptives with expanded descriptions, examples, warnings, links to tutorials, etc. A case could be made here that what core needs to own is very limited in scope and it would be healthier for the docs as a whole for that scope to be well defined so that we can allow for clearer distinction between contributing code and contributing docs when it comes to core's API docs (great coders are rarely great documenters and vice versa so how about we make our processes allow for that?). At a minimum, having a non-freeform API doc specification format would help with consistency, we keep on making note of how inconsistent it all is (e.g. nodejs/node#4362 (comment)). /cc @jasnell

from docs.

jasnell avatar jasnell commented on May 11, 2024

I definitely like the idea of separating this out and having a more machine
readable root format for the API docs so long as there is solid effort
going into refining those into polished rich documentation. I can even take
a stab at writing up an initial version.
On Jan 8, 2016 5:18 AM, "Rod Vagg" [email protected] wrote:

It seems to me that one of the major blockers is the "shares
responsibility for doc/api with the core team"
bit; where core wants to
have API docs tied closely to API so new PRs affecting API can have "update
the docs too" enforced in the same way as "add a test" is enforced. With
the docs living elsewhere or being managed by a separate group this becomes
more cumbersome and may impact the pace of progress.

So, perhaps its worth exploring the idea of using tooling to solve the
conflict. e.g. the API docs that core owns are purely descriptive and
have a well defined format. Perhaps its even JSON or semi-JSON, with fields
such as "arguments", "errors", "return value", maybe going so far as to
include a basic description but stopping short of being complete. Then
tooling could be used to generate the final docs by pulling in this formal
data and combining it with data owned by the docs group that fleshes out
the formal descriptives with expanded descriptions, examples, warnings,
links to tutorials, etc. A case could be made here that what core needs to
own is very limited in scope and it would be healthier for the docs as a
whole for that scope to be well defined so that we can allow for clearer
distinction between contributing code and contributing docs when it comes
to core's API docs (great coders are rarely great documenters and vice
versa so how about we make our p rocesses allow for that?). At a minimum,
having a non-freeform API doc specification format would help with
consistency, we keep on making note of how inconsistent it all is (e.g. nodejs/node#4362
(comment)
nodejs/node#4362 (comment)). /cc
@jasnell https://github.com/jasnell


Reply to this email directly or view it on GitHub
#50 (comment).

from docs.

Qard avatar Qard commented on May 11, 2024

I think just pulling all the non-reference content out into guides is probably enough. Code PRs would have to include reference docs, but in-depth guides could be written separately.

from docs.

chrisdickinson avatar chrisdickinson commented on May 11, 2024

@jasnell, @rvagg: This is an interesting approach! However, I'd like to avoid new tooling until we:

  1. Figure out membership,
  2. Have a meeting to discuss direction,
  3. And become ratified.

Which isn't to say we can't have a discussion around doc tooling (which I agree, needs to improve!), but that we shouldn't focus on doc tooling as a key piece of getting the WG stood up.

Process discussion is totally viable at this stage, though, especially in terms of reducing friction between core and the Docs WG. Perhaps the Docs WG doesn't block code PRs for doc review, but instead has a weekly task of editing newly merged documentation — the only thing the WG could block would be releases, in order to make sure the docs are in a good state?

from docs.

chrisdickinson avatar chrisdickinson commented on May 11, 2024

We're ratified!

from docs.

eljefedelrodeodeljefe avatar eljefedelrodeodeljefe commented on May 11, 2024

very goood!

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.