-
Notifications
You must be signed in to change notification settings - Fork 45
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
[Umbrella issue] Restructuring the documentation #89
Comments
This looks good to me. One perhaps personal preference: I would be inclined to put the "why" ahead of the quick start unless the introduction contains enough "why" material to give the reader context for what follows (and impetus to move on). But that's a nit in the overall structure. Thanks! Another vague thought based on some of the organisational struggles with the first draft: would it make sense to move "language support" into the how-to section? Or is it better being more visible at the top level? |
I've never heard of the Divio paradigm -- that's a really nice framework. My main concern is the quickstart/tutorial, since it could be redundant to the language guides, but definitely worth the effort to give people a quick happy path |
I did think of this too and was wondering if we could move it to the introduction as a sub-section instead of the explanation. WDYT?
So, the thing with languages is that splitting makes more sense IMO. One of the supported languages is required as a prerequisite to work with the component model. So, putting that up there makes sense to me. Similarly, getting the building a component in the how-to section also makes more sense than putting it in the Quickstart. Thoughts?
IMO, the language guides need to be split up because you need one of the supported languages as a prerequisite to work with the component model. The installation subsection can go into the pre-requisites while the building bits can go into the how-to section. WDYT? |
Moving the "why" material (or a summary of it?) to the introduction sounds like a good plan. I'm not quite sure what you envisage with splitting up the language guides. Are you thinking that instead of a (say) Rust guide with sections on exporting and importing and building etc. in Rust, and a JS guide with sections on doing the same in JS, we would have a "how to export" guide and a "how to import" guide and so on, and those guides would have sub-sections on "how to export in Rust" / "how to export in JS" / etc.? Or are you referring to the splitting out of language guides from the how-to section as shown in your original post? |
I am not sure i am quite clear on how the tutorial has language specific pre-requisites and then achieves consistency, since the tooling for building components is rarely language agnostic. But we could have a subset of languages for the tutorial (say Rust and JS) while more fleshed out in the language guide (Go, Python, C, etc). |
Side note, it is called https://diataxis.fr/ nowadays. TL;DR: the author used to work for Divio. It matters because it will help you to search and find more active community it is around Diataxis. I would lean on that community to gather feedback. One recommendation I have is to call out the Doc structure. I will help from contributors to have a set of guidelines, and also readers to understand the intent behind the docs. |
@itowlson and @kate-goldenring I was unclear, I am sorry. I'll try explaining it better below. Context: In the docs, currently, we have the language guides consisting of two sections (broadly speaking):
My suggestion
Why? With this, the readers will have an idea what needs to be installed before they reach the section of authoring a component and/or language guides. |
As I was typing out the above, it also struck me that since the tutorial requires knowledge from other sections, it would not be a quickstart per se. In the sense, it doesn't give the people a hands-on overview of the component model within a couple of minutes. What I'd recommend as a quickstart would be the language-agnostic one authored with wasm-tools and run with wasmtime. We would need to flesh it out a bit better, of course. We could then refer to the tutorial that we have currently as an advanced tutorial, so that it wraps up our documentation by recapping whatever has been learned previously. The revised TOC would look something like the below:
|
@divya-mohan0209 i like this outline. I'd be interested in more feedback on whether WAT being the first tutorial/introduction into Components is unideal, but as you say, i think language agnostic is likely our best bet. The prerequisites section may be sparse given that it is language dependent but there are clear prerequisites to the quickstart. |
@kate-goldenring I would really not want the first tutorial/introduction to use WAT. That is not going to speak to anyone in the target audience, and for many developers is going to be deeply offputting. |
@itowlson i had an inkling of feeling similar. Back to the drawing board of how to set up an "easy" quickstart. |
@divya-mohan0209 the Divio paradigm looks really nice. I also like the most recent outline draft. I also agree with @itowlson and @kate-goldenring to go with anything but WAT for the first sample. I was thinking about using pseudo code to move from theory towards practice... but that may be a bit too dry for the reader. Usually, people wanna get something up and running quickly, to spark their ideas. What about building the most simple sample in multiple languages to address different audiences? Although this might be a bit more effort, I see the following advantages:
Ultimately, I would suggest modifying the structure to this:
|
I like the idea of having a quickstart for each language. Another option is that the quickstart could be less of a quickstart to building components and more a quickstart to composing and using components. We could provide two already built components and walk through inspecting their interfaces with |
@kate-goldenring: Quickstart to composing & using components sounds like a really good proposal. It'd give the person reading our documentation a good feel about the value prop right at the outset. Of course, that'd mean fixing the prerequisites section as well. |
I'm dubious about this as a sole quick start until there is a sufficient repertoire of off-the-shelf components to make "I will build a thing by composing things from the registry" a reasonable way to get started. But alongside @ThorstenHans' per-language starter guides it would be good. Although I'm not sure how "quick" a start it becomes at that point...! grin |
@itowlson : Not trying to push the agenda here, but we can definitely make it something like the Quickstart dropdown we have on Rancher docs for deploying Rancher on various platforms. WDYT? |
We can, but with a quick start per language, it starts to look like the quick starts are part of the language docs - otherwise the (e.g.) Befunge docs get split across the Befunge quick start in the QS section and the Befunge detail in the language section. And then the global "quick start" becomes a page of links to the various language QS pages. Pulling the perspective out a bit, you originally created this issue as a proposal for the structure of the book as a whole, and I feel we have rather beached on the tricky detail of the quick start. What if we decoupled the quick start from the other changes so we could progress the larger work without waiting on the QS problem? |
That works for me if it's okay with everyone else. Would our next steps be to split this into smaller chunks of work with the help of issues and invite contributions? I can take on some of the rewriting. |
Sounds good - thanks! |
This is a suggestion for restructuring the documentation based on the Divio paradigm
The TOC ends up looking as below
The text was updated successfully, but these errors were encountered: