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

docs reorganization #28165

Merged
merged 55 commits into from
Dec 16, 2020
Merged

docs reorganization #28165

merged 55 commits into from
Dec 16, 2020

Conversation

meganesu
Copy link
Contributor

Background

Refer to #27856 for more details about the documentation reorganization project.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Nov 18, 2020
@ascorbic ascorbic added type: documentation An issue or pull request for improving or updating Gatsby's documentation and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Nov 19, 2020
* Corresponds to f082386af586029259964bd102d2d883b58838b1 in mansion
* Setup and Local Development
* Customizing the Default JS Tools
* Routing and Pages
* Corresponds to f51d730dd861199d7e0e9f99f9428e81753e37e5 in mansion
* Styling
* Adding Images and Media
* Plugins and Themes
* Corresponds with c3db1c5ed56861324591a476195dce9105345e30 in mansion
* Corresponds with cb26f57ae31db916779f7a87d57718dfe9de8f16 in mansion
* Corresponds with de6e56b59c in mansion
* Corresponds to 916376112b in mansion
* Temporary holding place until we can move them to blog posts
* corresponds with d435d15259 in mansion
* Corresponds with 430f9a6fbf in mansion
* Corresponds with 9819eb6d05 in mansion
* How-to guides (stopped @ adding images and media)
* Corresponds with 00faa14a15 in mansion
* This will need a redirect from /docs/api-reference to /docs/reference
@calcsam calcsam marked this pull request as ready for review December 12, 2020 12:08
calcsam
calcsam previously approved these changes Dec 12, 2020
Copy link
Contributor

@calcsam calcsam left a comment

Choose a reason for hiding this comment

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

We've double-checked this pretty exhaustively.

@gillkyle
Copy link
Contributor

As far as Information Architecture goes, noticed that the How to Guide and Reference section share the same sub sections:

How to Reference
image image

However, the conceptual guides have different subsections. I guess I see that as a little confusing, if they are the same in these 2 sections, I almost expect them to be the same across all 4 types (How to, Reference, Conceptual, etc.)?

@meganesu
Copy link
Contributor Author

However, the conceptual guides have different subsections. I guess I see that as a little confusing, if they are the same in these 2 sections, I almost expect them to be the same across all 4 types (How to, Reference, Conceptual, etc.)?

Hmm good point @gillkyle. We were trying to help people use a consistent mental model of all the information, but maybe that's more confusing if it's not consistently consistent.

Here's another structure I was playing with at one point. Does that feel any better?

  • Gatsby Project Structure (standalone doc)
  • Gatsby CLI commands (standalone doc)
  • Built-in React Components (dropdown)
    • Gatsby Link
    • Gatsby Image
  • Config Files (dropdown)
    • gatsby-config.js
    • gatsby-node.js
    • gatsby-browser.js
    • gatsby-ssr.js
  • Build Process (dropdown; NEW, needs to be written)
    • Dev build
    • Prod build
    • Lifecycle APIs? (possibly... what actually are these?)
  • GraphQL Data Layer (dropdown)
    • GraphQL API
    • How to Use GraphQL Fragments
    • Customizing the GraphQL Schema
    • Node Model
    • Node Interface (possibly merge with Node Model, not sure what the difference is)
  • Release Notes (dropdown)
@gillkyle
Copy link
Contributor

gillkyle commented Dec 15, 2020

@meganesu I think "consistently consistent" pretty well states what I'd expect! A few consistent categories would work for me if it were in every section I think.

Here's another structure I was playing with at one point. Does that feel any better?

  • Gatsby Project Structure (standalone doc)

  • Gatsby CLI commands (standalone doc)

  • Built-in React Components (dropdown)

    • Gatsby Link
    • Gatsby Image
  • Config Files (dropdown)

    • gatsby-config.js
    • gatsby-node.js
    • gatsby-browser.js
    • gatsby-ssr.js
  • Build Process (dropdown; NEW, needs to be written)

    • Dev build
    • Prod build
    • Lifecycle APIs? (possibly... what actually are these?)
  • GraphQL Data Layer (dropdown)

    • GraphQL API
    • How to Use GraphQL Fragments
    • Customizing the GraphQL Schema
    • Node Model
    • Node Interface (possibly merge with Node Model, not sure what the difference is)
  • Release Notes (dropdown)

Would this live in just the Reference section then? Looks good to me though.

@meganesu
Copy link
Contributor Author

Would this live in just the Reference section then?

Yep, that would be the structure for the Reference chunk of the sidebar.

I guess the underlying question is: does that new grouping of concepts make more sense than what we have now? I'm wondering what your gut feeling is, based on your experience using the docs when you're trying to look something up.

@meganesu
Copy link
Contributor Author

Looks good to me though.

Whoops, commented before I saw this part 😅 Ok, I'll make the updates to the folder structure and the redirects!

@gillkyle
Copy link
Contributor

haha that's on me, I edited my comment! @meganesu

For me (and I'm just one individual looking at this so take this with a grain of salt) I feel like I go to the the APIs for gatsby-node most, and those are given a little more prominence with the alternate architecture. I don't want to derail your thoughts on this and introduce a bunch of other work but I think that would reduce some of the confusion I first had jumping between those pages.

@calcsam calcsam merged commit 18de9ef into master Dec 16, 2020
@calcsam calcsam deleted the docs-reorg branch December 16, 2020 00:17
@calcsam calcsam restored the docs-reorg branch December 16, 2020 00:17
@LekoArts LekoArts deleted the docs-reorg branch April 23, 2021 11:06
pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
* wip: add placeholder how-to guide landing page

* chore: move babel into how-to guides

* wip: add temp placeholders for conceptual and reference landing pages

* wip: add SectionWithSideLinks component for /docs landing page

* Still needs Icon support

* change imports to local component imports

* remove doc type landing pages (handled in mansion)

* remove www file (missed during merge conflicts)

* remove old /docs landing page (now generated from mansion)

* reorg files for some how-to guides

* Corresponds to f082386af586029259964bd102d2d883b58838b1 in mansion
* Setup and Local Development
* Customizing the Default JS Tools
* Routing and Pages

* reorg some how-to guides

* Corresponds to f51d730dd861199d7e0e9f99f9428e81753e37e5 in mansion
* Styling
* Adding Images and Media
* Plugins and Themes

* re-move how-to guides into subfolders per section

* Corresponds with c3db1c5ed56861324591a476195dce9105345e30 in mansion

* move rest of how-to guides to subfolders

* Corresponds with cb26f57ae31db916779f7a87d57718dfe9de8f16 in mansion

* move reference docs to subfolders

* Corresponds with de6e56b59c in mansion

* move conceptual guides into subfolders

* Corresponds to 916376112b in mansion

* move Using Gatsby Professionally docs into subfolder

* Temporary holding place until we can move them to blog posts

* move tutorial into /docs
* corresponds with d435d15259 in mansion

* feat: organize docs for reference type

* Corresponds with 430f9a6fbf in mansion

* remove duplicate /docs/testing

* fix: sidebar links QA

* Corresponds with 9819eb6d05 in mansion
* How-to guides (stopped @ adding images and media)

* fix: move some docs

* Corresponds with 00faa14a15 in mansion

* move v2.26 release notes under the right folder

* feat: rename Gatsby Magic -> Gatsby Jargon

* reorg: move Making Your Site Accessible into Conceptual

* feat: remove api-reference GuideList page

* This will need a redirect from /docs/api-reference to /docs/reference

* reorg: move PRPL and "what is a plugin" out of conceptual

* reorg: move "customizing components with mdx" into how-to

* reorg: prefer useStaticQuery over StaticQuery component

* reorg: add subfolder for reference/routing

* feat: consolidate redundant gatsby-browser docs

* fix: rename gatsby-node-apis doc to gatsby-node for consistency

* feat: add placeholder for How to Create Pages doc

* fix: remove 'advanced' directory from docs structure

* fix: align reference categories with how-to categories

* fix: shorten path param for reference/builds

* feat: consolidate api-files* and gatsby-* docs

* fix: split sourcing-and-querying-data into separate folders

* Corresponds with 5621094131 in mansion

* feat: swap out source plugin how-to for tutorial

* fix: update old links to match redirect urls

* fix: remove 'recipes' label from Working With Starters

* test: update one image path

* fix: update image paths for all reorganized docs

* fix: lint

* fix: update links to How To 404 Page doc

* fix: merge mdx docs into one how-to guide

* fix: add intro to MDX how-to

* fix: move release notes into the right folder

* fix: reorg reference categories back to old structure

* fix: update links from restructuring Reference categories

* no line breaks in middle of para otherwise mdx hates us

* Update index.md

* fix: remove <br> tag that's breaking MDX

Co-authored-by: Sam Bhagwat <calcalcsam@gmail.com>
Co-authored-by: Sam Bhagwat <calcsam@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation An issue or pull request for improving or updating Gatsby's documentation
5 participants