Skip to content

Create basic template for Getting Started pages #11951

Closed

Description

@inventarSarah

SDK

All JavaScript SDKs

Description

Since it is easy to get lost in the details of the individual SDKs and their Getting Started pages, we want to create/revise the foundation first. To do this, we want to create a template that defines the minimum amount of content that the Getting Started pages of each SDK should have. Using this template, we can then ensure that our Getting Started pages are consistent -- in structure and content -- which should help in writing documentation and ultimately supports the reader/user to extract information from the page.

Suggested Solution

create a template that serves as the basis -- we can then build upon this base in follow-up issues/tasks

Activity

  1. inventarSarah commented on Dec 3, 2024

    @inventarSarah
    CollaboratorAuthor

    I created two basic templates (one for wizard install, one without) as a base for next discussion;

    The structure is similar to what we had before but it includes more (but smaller) steps to help organize information and provide a better overiew of the content. I also think that the structure is still fairly flexible for any framework-specific additions.
    We could use toggle boxes/expandables (like here) to wrap any information that is important to have in the quick start but is not important for all users. This way, we can provide the info without disturbing the flow or "cluttering" the instructions.

    React SDK Quick Start Guide (no wizard)

    State the goal of the page; What will the reader achieve

    Prerequisites

    What does the reader need to succeed

    1. Install

    • installation command(s)

    2. Initialize/Configure

    • show code and briefly explain

    Configure Tracing (optional)

    • explain the "ideal/most generic" setup for tracing
    • add important related information (consider toggle box)
      • eg, "Set up react router" (add info/link for users who use backend routing)

    Configure Session Replay (optional)

    Other Configurations (optional)

    • link to docs to learn more about config options;
    • add some examples (make sure to wrap these config examples in usage examples to show real-world applications and help understanding)

    3. Any other framework-specific steps

    • for example, Add Error Boundary for React

    4. Verify your setup

    • explain how to verify the basic setup + example code
    • add screenshots/video of how the test looks like in Sentry

    5. Add readable stack traces to errors (optional)

    • show code and briefly explain

    6. Instrument your backend (if applicable)

    • briefly explain what and why; guide user to quick start guide of their backend

    Next steps

    React SDK Quick Start Guide (Wizard)

    State the goal of the page; What will the reader achieve
    Mention here that there's an installation wizard

    Prerequisites

    What does the reader need to succeed

    1. Install

    • installation command(s)
    • add summary of what the wizard did (toggle box)

    2. Configure (optional)

    • link to docs to learn more about config options;
    • add some examples (make sure to wrap these config examples in usage examples to show real-world applications and help understanding)

    3. Any other framework-specific steps

    • for example, Add Error Boundary for React

    4. Verify your setup

    • explain how to verify the basic setup + example code (refer to examples generated by wizard but keep in mind that user may have not used them)
    • add screenshots/video of how the test looks like in Sentry

    Next steps

  2. inventarSarah commented on Dec 5, 2024

    @inventarSarah
    CollaboratorAuthor

    Integrating the onboarding options into the non-wizard install templates

    The earlier versions of the template for the non-wizard installation did not include the "onboarding options" checkboxes.
    However, these are super useful and clever: The user can use them to get customized instructions, and code snippets based on the Sentry features they want to use. While for JS SDKs, this usually affects the Configure part of the guide, it can affect other/additional sections in other SDKs as well.

    The main challenge here is: How can we present this to users in a way that is understandable and also doesn't require too much space? (we want to show code snippets and terminal commands as soon as possible)

    This is a mockup with a possible solution I created:
    Image

    In words:

    • The first step in the guide is to choose your features similar to how it is now but framing it as a part of the instructions makes it a bit clearer.
    • Then we should display some info text -- why choose the features here (because they affect the guide) and also reassure the user (you can still add this later)
    • To save space I think boxes could be a good solution -- these contain a short description that is understandable even if you're new to Sentry. Also, I would put the onboarding boxes right with the features
    • I'm sure this could look really good with the right design!

    Updated template version

    I've updated the non-wizard template from my previous comment to include the feature selection described earlier. The wizard installation guides do not have onboarding options, so it gets no updates for now.

    React SDK Quick Start Guide (no wizard)

    State the goal of the page; What will the reader achieve

    Prerequisites

    • What does the reader need to succeed

    1. Choose your Sentry features (Optional)

    • explain why to do this and how the onboarding options impact the quick start guide
    • list features (for example in boxes) including a short description and helpful use case example
    • the onboarding option should be here as well

    2. Install

    • installation command(s)
    • add installation commands for features if applicable

    3. Initialize/Configure

    • show code and briefly explain
    • code snippet should include config for added features

    Subsection: Configure Tracing (if applicable)

    • it can make sense to create a dedicated subsection if the content is a bit longer
    • add important related information (consider toggle box)
      • eg, "Set up react router" (add info/link for users who use backend routing)

    Subsection: Configure Session Replay (if applicable)

    • see subsection above

    Other Configurations (optional)

    • link to docs to learn more about config options;
    • add some examples (make sure to wrap these config examples in usage examples to show real-world applications and help understanding)

    4. Any other framework-specific steps

    • for example, Add Error Boundary for React

    5. Add readable stack traces to errors (optional)

    • show code and briefly explain

    6. Verify your setup

    • explain how to verify the basic setup + example code
    • add screenshots/video of how the test looks like in Sentry

    7. Instrument your backend (if applicable)

    • briefly explain what and why; guide user to quick start guide of their backend

    Next steps

  3. codyde commented on Jan 11, 2025

    @codyde
    Contributor

    Something I wrote down on some of my "first experiences" notes that I thought would be cool is if at the top of our quickstart guides, we had a checkbox style question (like we do elsewhere for the config file setup, like you mention above) on what items you wanted configured (Errors, Replay, Traces) and if those were checked, the configuration steps would adjust to include those items as part of the quick start. Would make for really smooth DX since a user could define what they wanted as part of their quickstart, and errors would be the default checked.

    You kind of do these with the larger boxes right now that you mocked up - but if im understanding right, those would send you out to different docs, right? If we went this path - the footprint would still be pretty small, the smooth path of errors would be preserved - but the user would have a choice in how they wanted to customize.

    Food for thought 😄

  4. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jan 11, 2025
  5. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jan 13, 2025
  6. inventarSarah commented on Jan 13, 2025

    @inventarSarah
    CollaboratorAuthor

    @codyde Do you mean to design it more like the installation wizard where it leads the user through a couple of "Do you want to install XY"? > yes/no questions?

    The big boxes in my mockup shouldn't necessarily lead the user away (only if they click on the links to the product feature). What I've tried to do here is add more information to the onboarding options (the checkboxes) that we already have on non-wizard pages. The quick start guide is primarily for new users who probably don't know much about Sentry yet and may not even be aware of the additional features they can enable. We want users to get a basic idea of each feature and point out what else is possible besides error monitoring. Ofc, we also want users to use the checkboxes, which is more likely if they know what they are doing :)

  7. inventarSarah commented on Mar 25, 2025

    @inventarSarah
    CollaboratorAuthor

    You can find the current templates in Contributing to the Docs - How to write: Quick Start

  8. locked and limited conversation to collaborators on Apr 10, 2025
  9. added
    javascript
    and removed on May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

SDKsjavascript

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions