Skip to content

Post-Europa docs.dagger.io #1804

Closed
Closed

Description

@gerhard

Having spent a significant amount of my last six weeks on #1327, I thought that it would help to share my learnings, current state and the steps that I see us taking next.

While this is the continuity that I imagine, now is a good time to share your perspectives and drive the improvements that you would like to see in https://docs.dagger.io as we open up Dagger to the world.

Learnings worth sharing

It served me well to have a clear user in mind and focus on her need to get started with Dagger Europa. It enabled me to keep content cohesive, single-threaded and write less of it. Less content meant a clearer view of what is missing, both while I was writing it and after the fact.

I genuinely believe that what we leave out is more important than what we put in, and I would love us to continue with this approach.

Some past learnings from our users have been lost in the new docs. The absence of the CUE page was the first one to be noticed. A few of our users went out of their way to mention how useful this page was in pre-Europa, 0.1.0. A CUE primer which is focused on Dagger is an absolute must, and we have a few follow-up PRs that address this (more info below).

The other learning that was missed is to show users how to build a Dagger config from scratch. While our pre-Europa Getting Started section had this, I considered that it was more important to show users how the pieces fit together locally, and how to transition that to a CI environment. I still think that showing the high-level mechanics, and then diving into the from scratch config, is the right approach.

The last learning that helped me was to think about content via the following categories:

  1. Getting Started
  2. Core Concepts
  3. Use Cases
  4. Reference

While the current version of Getting Started is missing a few pages, Core Concepts is missing dagger project and how to create packages, Use Cases are missing completely and we have a single beginning of a page for Reference, what we have currently is a step in the right direction. If this was a car, it may not have all the doors, windows, seats, etc. but it works.

In my mind, the current version of the docs is our "John":

image

The original John from the Grand Tour Mongolia Special

What is the current state?

Having less content that flows well and is focused on solving user needs was my key focus for the 0.2.0 docs. I would very much like us to continue on this trajectory with the new doc pages that we add. If you give 10 minutes to Beth Aitman, a technical writer for Google, she will expand on why this is important:

Screenshot 2022-03-15 at 11 34 48

👆🏻 If you like this and would like to read / listen / watch more, you will find more references here #1327 (comment) 👆🏻

With this principle in mind, I would like to list the things which I am aware we are missing:

I would like to write more about Use Cases and pilots as these two are related. I expect this to be the bulk of my effort over the next few weeks. Since each of us holds specific context for pilots (I own the changelog.com and rakwode.dev context), I expect us to come together and work on this as a team, with each of us contributing their context. This is not just about docs content, but about helping others use Dagger Europa to solve their specific CI/CD issues. When they are successful, I would expect you to summarise the work that you have done with them in a doc page. The only example that we have so far is not complete, but it is sufficient to show the end-result that we are aiming for: https://docs.dagger.io/1211/go-docker-swarm/

While I know that the above list is incomplete, my intention is to share enough information so that you all can get involved and continue the https://docs.dagger.io momentum in the way that you feel is valuable. Remember, we favour intent-lead actions.

My last point would be to encourage you to be aware of tangents. While exploring unknowns and contributing other content are great ideas in principle, each of us should be aware of:

  1. Keeping docs consistent and to-the-point
  2. What actually matters to our users - Getting Started and solving specific issues via Core Concepts
  3. Show the world what Dagger helped others achieve - Use Cases

What happens next?

Share your thoughts and, if you feel courageous (today is a great day for that!), perhaps share what you intend to do via a comment below. The goal that we are working towards is to share and then implement the changes that we would like to see in https://docs.dagger over the next two weeks, before we launch.

I have added the PRs that I have in flight to the Delivery plan below, and will continue doing so as I become aware of other PRs.

If you open a PR which is related to this issue, remember to add Part of #1804 in the description. This will automatically link it to this issue, which will greatly help with visibility.

If you want, you can CC @gerhard and/or @shykes on PRs which are related to this. Since we have the most https://docs.dagger.io context, we are most likely to know what needs to happen for those PRs to get merged.

Delivery plan

Activity

  1. self-assigned this
    on Mar 15, 2022
  2. gerhard commented on Mar 15, 2022

    @gerhard
    Author
  3. helderco commented on Mar 17, 2022

    @helderco
    Contributor

    Maybe we could have a common pitfalls page. Examples would be recommending disjunctions over if conditions and templates over for loops. We can leave in draft and add to it until it's mature enough to publish.

    Also, sometimes I feel docs are too basic and need more examples (in general). Maybe a section for more in-depth or advanced concepts? React has a Main Concepts section and an Advanced Guides and I've found those helpful. You can go to the basics if you're starting out, but if you're further along and need more, you have that as well. I'm saying later on, after the basics are solid.

    Where would you put a page on How to debug? This is something I jotted down when I was starting out. You pick up a few "tricks" along the way that I think are useful to someone starting out.

    To finish, I can contribute the Create your own package page since I'm reusing a private package for a while now. I can also help with the Swarm use case.

  4. gerhard commented on Mar 18, 2022

    @gerhard
    ContributorAuthor

    All excellent ideas @helderco!

    This is the https://docs.dagger.io that I imagine us all working towards over the coming weeks:

    DOCS STRUCTURE TODAY                        DOCS STRUCTURE TOMORROW
    --------------------                        -----------------------
    
    ⬅️ Dagger 0.1                                ⬅️ Dagger 0.1
    Migrate from Dagger 0.1                     Migrate from Dagger 0.1
    
    Getting Started                             Getting Started
    |- CI/CD in your local dev                  |- CI/CD in your local dev
    |- From local dev to CI environment         |- From local dev to CI environment ✨ new CI envs
                                                |- 🆕 todoapp the hard way ✨ build the config line-by-line and go deep
                                                |- 🆕 helloworld the easy way ✨ this is the first thing that some community members do → https://github.com/dagger/dagger/pull/1817
    
    Core Concepts                               Core Concepts
    |- It all starts with a plan                |- It all starts with a plan
    |- Interacting with the client              |- Interacting with the client
    |- How to use secrets                       |- How to use secrets
    |- Building container images                |- Building container images
                                                |- 🆕 Make your builds fast ✨ BuildKit caching
                                                |- 🆕 Create your own package
    |- What is CUE?                             |- What is CUE?
    |- Dagger CUE API                           |- Dagger CUE API
    
                                                🆕 Advanced Concepts
                                                |- 🆕 Dagger architecture
                                                |- 🆕 How to debug?
                                                |- 🆕 Remote Docker on Linux ✨ fastest Docker experience
                                                |- 🆕 Share remote Docker on Linux with CI ✨ free shared cache, Tailscale integration (exactly what we did for changelog.com in https://github.com/thechangelog/changelog.com/pull/395)
                                                |- 🆕 Multi-platform builds
    
                                                🆕 Use Cases
                                                |- 🆕 Dagger with Dagger → https://github.com/dagger/dagger/issues/1522
                                                |- 🆕 Next.js on Netlify ✨ dagger.io → https://github.com/dagger/dagger.io/pull/117
                                                |- 🆕 Docusaurus on Netlify ✨ docs.dagger.io
                                                |- 🆕 .NET on Vercel ✨ nabeel.dev
                                                |- 🆕 Svelte on Vercel with Pulumi ✨ rawkode.dev
                                                |- 🆕 Symfony on Docker Swarm ✨ huma-hum.fr
                                                |- 🆕 Go on Docker Swarm ✨ particubes.com migrated to Europa
                                                |- 🆕 Go on Docker Hub → https://github.com/dagger/dagger/pull/1805
                                                |- 🆕 Phoenix on Kubernetes → https://github.com/dagger/dagger/issues/1336
                                                |- 🆕 Phoenix on fly.io → https://github.com/thechangelog/changelog.com/pull/407
    

    🙋‍♂️ @dagger/team @maert @nabsul @aduermael @rawkode ☝🏻

  5. helderco commented on Mar 18, 2022

    @helderco
    Contributor

    What about Manage packages using the package manager? It's the next logical step to Create your own package (Develop a new CUE package for Dagger).

    I'll write both.

    Note: Using the package manager can be used standalone if you're reusing packages from others, but there's no sense in creating a package for yourself without using the package manager to install/update. I've found before (in Discord) confusion on this. Makes me wonder if it would be best to show the package manager first (we need a simple dagger repo for this, where you can just follow the doc examples and it would work), and then how to create one for yourself. I think this would be clearer.

    Feature idea: We could have a dagger project edit <repo> to automatically pull and symlink. This is what we do in python.

  6. gerhard commented on Mar 18, 2022

    @gerhard
    ContributorAuthor

    @talentedmrjones I think that it will help to have the above context for when we talk docs next 🙂

  7. pinned this issue on Mar 18, 2022
  8. locked and limited conversation to collaborators on Apr 8, 2022
  9. converted this issue into a discussion #2085 on Apr 8, 2022
  10. unpinned this issue on Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions