Skip to content
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

doc: add core-structure topic doc #6885

Closed
wants to merge 1 commit into from

Conversation

Fishrock123
Copy link
Contributor

@Fishrock123 Fishrock123 commented May 19, 2016

Checklist
  • documentation is changed or added
  • the commit message follows commit guidelines
Affected core subsystem(s)

doc

Description of change

This document covers the basics of how Node.js (node core) is structured, in an
attempt to make it easier to contribute to.

Things to note / TODO:

  • Add a link from the Readme.
  • Node.js vs node core vs node language. Idk which to use where either.
  • The startup chart was ripped verbatim from @joshgav's post here: Define "Node.js core" TSC#84 (comment) and may need cleaning up
  • We should probably link even more things since is supposed to be a newcomers doc?
  • Add even more detail?

Additionally, some lines go beyond the line limit because they are part of markdown formatting and not all markdown formatters are able to properly interpret those parts when split across lines (in lists, for example).

cc @nodejs/documentation

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label May 19, 2016
- Tests & Benchmarks (`test/` & `benchmark/`)
- Internal / Build Tooling (`tools/`)
- Dependencies (`deps/`)
- .dotfiles
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is more or less a TOC, can you maybe make these links?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 I think this could be simplified into a TOC with less copy, and move explanations of each section to their section

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHANGELOG?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHANGELOG?

Huh? That's a "CAPITALS" file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/doc/changelogs/*.md
On May 23, 2016 7:45 AM, "Jeremiah Senkpiel" [email protected]
wrote:

In doc/topics/core-structure.md
#6885 (comment):

+## Top-Level File & Folder Structure
+
+At the root of Node.js you have a set of files and folders that can be roughly
+identified as the following:
+
+- CAPITALS documentation files
+- Documentation (doc/)
+- Top-level Build Tooling
+- JavaScript "standard" Library (lib/)
+- C++ "native" Source (src/)
+- Tests & Benchmarks (test/ & benchmark/)
+- Internal / Build Tooling (tools/)
+- Dependencies (deps/)
+- .dotfiles

CHANGELOG?

Huh? That's a "CAPITALS" file.


You are receiving this because you are on a team that was mentioned.
Reply to this email directly or view it on GitHub
https://github.com/nodejs/node/pull/6885/files/45979673c36c8d2e485bcd06617042703f0fa5e6#r64234969

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have that, I don't understand...

  • Documentation (doc/)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing in your proposed doc mentions changelogs in any way, either as a capitals file or in the docs, the changelogs are now split between the root CHANGELOG.md file and separate files under /doc/changelogs/*.md.

This document covers the basics of how Node.js is structured, in an
attempt to make it easier to contribute to.
@Fishrock123 Fishrock123 force-pushed the core-structure-doc branch from 4597967 to 1b02b91 Compare May 19, 2016 20:11
@eljefedelrodeodeljefe
Copy link
Contributor

+1 on more detail. I think people wanting to read this can hardly be overwhelmed. I can tell with my experience from the Python docs, which fills binders (I actually printed a chapter).

I am missing the reference to a discussion, but in any case I think it is a good idea to omit 80 chars line length rule here. Since the texts are rather long and just two groups of users need to use - author [singular predominantly] and readers, but not maintainers of a high frequency api doc page - boilerplate work for the author should be kept to a minimum to facilitate a better text piece.

+1 for node core, since it's frequently used in the bug tracker.

Also note that I was considering having sub folders for topics in the doctool-PR for topics (once I get there), so if for me I'd put this one hierarchy level below into some category like "internal" (tbd).

Since it got mention, let's don't make this too much TOC-like

The API docs are constructed from the markdown files within the `doc/api/`
folder.

The documentation also includes topic documents such as this one such as this,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repeated such as this

@Fishrock123
Copy link
Contributor Author

Another thing: Combine all the tooling, or keep it separated?

The documentation also includes topic documents such as this one such as this,
how-to guides, the `node.1` [manual page][], and an archive of Technical
Committee meeting notes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And now the changelogs

@Fishrock123 Fishrock123 added the wip Issues and PRs that are still a work in progress. label May 20, 2016
@jasnell jasnell added the stalled Issues and PRs that are stalled. label Aug 4, 2016
@@ -0,0 +1,202 @@
# Node Core's Internal Structure

This document covers the basics of how Node.js is structured, in an attempt to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

  • remove the comma
  • consider removing everything after the comma too
  • s/covers the basics/explains/

make it easier to contribute to.

Note: The Node.js codebase is in a constant amount of flux, things can and will
change over time, and so also parts of this document will go out of date over
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: get rid of the comma and everything after it and replace it with a separate sentence:

...change over time. If you find something in the document that seems incorrect, file [an issue](link to issue tracker here) or a pull request(link to pull request creation form here).

@Trott
Copy link
Member

Trott commented Oct 14, 2016

Just an idea: I wonder if GitHub isn't the best way to get this into shape just yet. I wonder if it might be better as (for example) a public Google Doc that people can make suggested edits to that you can accept or reject. Once it's mostly in shape, then it can be copy/pasted into your branch and show up in this PR. While it's valuable to track conversation/back-and-forth, it's really slow-going to leave comments about things like comma splices. The GitHub back-and-forth is great for content discussions, though.

@jasnell
Copy link
Member

jasnell commented Mar 1, 2017

ping @Fishrock123 ... still want to pursue this?

@gibfahn
Copy link
Member

gibfahn commented Mar 1, 2017

Just discovered this (thanks to @jasnell). This is something I've wanted for a while, I think it will be really helpful for new contributors.

@Fishrock123 if there's any way I can help with this let me know.

@Qard
Copy link
Member

Qard commented Mar 1, 2017

I wrote a somewhat related doc ages ago which lives here, though I can't seem to find any links to it on the website anymore. Not sure if any of the content of that is valuable here.

@BridgeAR
Copy link
Member

@Fishrock123 do you still want to follow up on this? I would otherwise close this. And if not - I think @gibfahn you would be up for opening a new PR for this?

@gibfahn gibfahn self-assigned this Sep 12, 2017
@gibfahn
Copy link
Member

gibfahn commented Sep 12, 2017

Would like to open a PR for this, just a question of finding time.

@jasnell
Copy link
Member

jasnell commented Sep 13, 2017

Let's close this one. We can revisit later if/when someone finds the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. stalled Issues and PRs that are stalled. wip Issues and PRs that are still a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.