-
Notifications
You must be signed in to change notification settings - Fork 270
Documentation pre-review #219
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
Comments
Consider a non-animated logo. It's mildly distracting for me, and may be more so for others. |
Introduction page on the sidebar should not redirect to |
Sidebar should scroll independently of the main content. |
In prose, |
Current page should be highlighted on the sidebar. |
How early in the docs should we mention "what it works with today"? |
For the quick start, there should be some information about prerequisites. E.g. "If you want to build the example applications yourself, see the Rust language guide for what you'll need." |
Quickstart: "focusing first on |
(Longer term - probably too late for 0.1) We might want to consider |
"spin" as a Rust crate is already taken — https://crates.io/crates/spin |
The Rust language guide should mention the need to add the |
The quickstart also mentions building the sample component, so would be good to link to that from there. |
I would really like to see some "if something went wrong..." pointers - not necessarily breaking the flow, but just linking off in case people get lost. |
Configuration: "Spin applications are comprised of general information" - didn't quite know what to make of this. |
The app level fields in the config reference are in a different order to in the sample, which is not a problem but requires more attention to follow along. |
For the future, maybe, but I would break out the different trigger types and their fields, rather than putting them three levels down in the bullet list. ETA: We could have the trigger-specific component settings in the same sections. I.e. a section on the HTTP trigger which includes both app and component level settings. |
In config > source, I would make the "not implemented" part of the bindle bit more prominent and not specify the detail e.g. "[Planned} In future, you'll be able to reference a Wasm module parcel in a remote bindle" |
In config > files, the placement notation example shows an absolute source. The source should be relative. |
In config > WAGI: "${SCRIPT_NAME} will be replaced with the script name". What is 'the script name'? |
The HTTP and Redis triggers section need to come out of the Advanced section and be linked from the config section. The stuff about SCRIPT_NAME and all that being in config risks spreading information across multiple places. Users are going to need a clear, complete reference location. |
There's nothing about creating new applications from templates? |
Is it the case that only one function in a Rust module can have the |
On the "likely mistakes" front mention that the default spin.toml only picks up release builds. |
Http trigger page: |
Http trigger page:
|
Really make the docs for the various bits of the URL more prominent. There are so many and their names are not intuitive. Brian and I were struggling to figure out the right one for something this morning. Consider a table for the examples. |
Related: we must document the dreaded |
Tutorial needs a prerequisites link too |
We might need a bit of discussion somewhere about what the WIT files mean, and how they are projected into languages. But that might indeed be an advanced topic. |
Here is a first pass at addressing some of the comments — #220 |
(we will want to revisit a lot of the topics discussed here, but the PR linked here tries to address the most critical things that we want in the short term in the docs) |
Do we need the layout to be |
The prominence and position of the "Edit on GitHub" link is a little intense. Maybe it could live just below the content? |
"Configuration" page should explicitly mention that the config is TOML (and maybe link to https://toml.io?). |
|
Rust guide under "HTTP components" mentions "Rust SDK" but not how to get it as a dependency. Maybe just needs a snippet like: # Cargo.toml
[dependencies]
spin-sdk = { git = "https://github.com/fermyon/spin/sdk/rust", version = "0.1.0" } |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Slightly confusing: that link doesn't mention WASI |
Given #209 should we |
In Go / Sending outbound HTTP requests, it might be worth calling out explicitly that the stdlib http client doesn't work (and why: #206). |
|
Broken link in |
Running into errors on M1 Macbook, noticed the note about I think the note here may be missing something. When I looked in Cellar I noticed my directory structure was |
On the quickstart page, at the end of "Building the example applications", there's a command line to build the sample app. This can go wrong, spectacularly and undiagnosably so if you are a bearded idiot who forgot to install the WASI target. Could we prominently link to the "common build problems" section from here please? |
In the Rust troubleshooting section, it says
Should we say how to ensure it's installed (rustup target list --installed)? Or are we just just YOLO ADD IT ANYWAY |
|
Rust lang guide - what is my |
Rust lang guide - need to know what crate to |
This was extremely helpful, everyone, thank you! |
Creating this thread to jot down things I notice as I read the Spin docs.
The text was updated successfully, but these errors were encountered: