-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Dev - Information Architecture (Page Groups) #438
Comments
Adding @pastelsky's design from #285 for reference: I really like the look of the sidebar here, and I think between this design and some way to better group the pages, we'd definitely have a more fluid ux. Will try to get started on this soon. |
@johnstew from #749 (closed in favor of this issue):
Parent Section Ideas:
|
I'm gonna start working on implementing @pastelsky's design (shown above) but I think we still need to discuss our routing structure a bit and agree on an approach for going forward. Here's what I would propose as a "spec" for how we structure Within the
There are also some others in the top level of the directory but that are currently displayed at the second level of our routing structure even though the directory structure doesn't match. If we're happy with the way it's displayed I think we should create a Top Level Documentation folder and these underneath:
One more level of nesting would be allowed, to group the individual pages within the sidebar as originally discussed in this issue. Here are some of the ones @johnstew proposed for the Guides section:
To sum it up here's the list all together, along with how/where each level would be displayed...
@webpack/documentation-team @johnstew @pastelsky let me know your thoughts. Whether or not we follow what I proposed above, a tweaked version of it, or something completely different, I do think it would be extremely valuable to outline some rules and expectations for how we lay things out. It should make implementation and other things much easier. I'd be more than happy to get to work on this if we can come to an agreement on how we should lay things out. @bebraw I'm guessing there will be some things I might need your help on but, iirc, I think antwar can already handle nesting directories already and we'd just have to handle each level of |
It can map an arbitrary directory structure to a site, yeah, but we can likely refine it to get a nice solution going on. A combination of manual/automatic link generation seems like a good way to me when it comes to layout. Especially second level links can be figured out based on the context. |
Using an img shield to display the webpack version Updating the styling to match @pastelsky's comp (see #438) Cleaning up some of the code in Sidebar and SidebarItem
Quick status update...
I'd like to get the structure and routing cleaned up and more in sync before going too much further with this. @johnstew once we get a better framework in place, would you be interested in going through and grouping the pages within sections, maybe starting with guides seeing as you already laid that out? |
@skipjack yeah I can check out what I wrote up for guides and see how that compares to what's on there now. I'll focus on getting that done first then go from there for the other sections on the site. Sound good? |
@johnstew sounds great, yea maybe you can share your ideas for how to group each section so we'll have a nice plan laid out by the time we have the groundwork in place to do it. I should be submitting a PR sometime this week to sync up our routes and content more, however the in-section grouping is still blocked by antwarjs/antwar#124 unless we want to go with the |
@johnstew btw, what do you think of levels I proposed above? Sound reasonable? |
@skipjack wow sorry for delay been really busy lately. I'm gonna take a stab at this though for the guides section. The levels above make sense to me. Tell me if I got it wrong below. SubNav
Sidebar - General
Sidebar - Production
Sidebar - React
Sidebar - Angular Sidebar - Other
I'm sure I'm missing some things here but I think some of the above makes sense. I thought we had Angular guides in there at some point. 🤔 Anyways, I think having some more guides around React and Angular would be beneficial. Also integrating with test runners and task runners would be a good idea as well. Open to suggestions here. |
No worries, glad to have your help whenever. As to what you've laid out... yea so the grouping we've talked about within the guides could either be at the second level (navigation submenu) or pushed to the sidebar. Currently we don't have support for grouping pages within the sidebar but I hope to get it to that place. It would likely look similar to what @pastelsky laid out: Essentially you could have multiple "groups" of pages within the sidebar, similar to how react's sidebar is laid out. So your General, Production, React, etc. sections could be groups within the sidebar without adding a new subnav under Guides in the top banner. Not saying this is the way to go, just what was originally proposed in the issue. With either approach though, until we port to phenomic or antwarjs/antwar#124 is done, we'd have to add a lot more configuration to start grouping by directory. In terms of the way you grouped things, looks pretty good. I'm not sure how I feel about the React and Angular sections. I think for the most part, it'd be better for us not to do too much framework-specific documentation and instead link out to external blogs and whatnot for this. There's already so much to manage just in terms of documenting webpack's feature set, that adding multiple pages for how to use it with other tools seems like a bit much to me. I think small examples here and there are ok but dedicating entire directories would be too much. For that reason I'd probably lean more towards having it like this for guides: General
Production
Development
Other
Or even splitting Development into Hot Module Replacement and Lazy Loading with multiple pages underneath if necessary. What do you think? Also maybe the tree shaking guide should go in the Production section? |
Ok I'm going to close as this has gotten a bit dated and re-open a new issue with all the key points from here. |
The sidebar is getting quite long in a few pages. It would be nice if related items are grouped into some kind of a collection. I'm not sure if this requires a change in antwar or it's just a config change.
eg.
The text was updated successfully, but these errors were encountered: