Skip to content

Go sdk preview docs - #3431

Closed
shykes wants to merge 16 commits into
dagger:mainfrom
shykes:go-sdk-preview-docs
Closed

shykes wants to merge 16 commits into
dagger:mainfrom
shykes:go-sdk-preview-docs

Conversation

@shykes

@shykes shykes commented Oct 19, 2022 •

Copy link
Copy Markdown
Contributor
  • Update README in preparation for Go SDK preview
  • Update copy in Go SDK introduction page, started by @vikram-dagger
  • Remove redundant "docs-0.3" docs, deprecated by Vikram's PR
  • NEW: incorporate CUE and GO SDK into unified docs. this is work in progress

@shykes
shykes force-pushed the go-sdk-preview-docs branch from f5bead1 to 9ce4e36 Compare October 19, 2022 06:41
@shykes
shykes requested a review from vikram-dagger October 19, 2022 08:46
Comment thread docs/v0.3/sdk/go/fssrz-index.md Resolved
Signed-off-by: Solomon Hykes <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
@shykes
shykes marked this pull request as ready for review October 19, 2022 09:33
@shykes
shykes requested a review from mircubed October 19, 2022 09:33
Comment thread docs/new.sh
fi
local next
next=$(LC_ALL=C tr -dc 'a-z0-9' < /dev/urandom | head -c5)
next=$(LC_ALL=C tr -dc '0-9' < /dev/urandom | head -c6)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious about the reason for this change. Could you please add some context?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the non-numerical IDs look like garbled words,. my brain keeps trying to parse them which trips me up ever so slightly each time I glance at the url.

Basically: nitpicking :)

Comment thread docs/v0.3/partials/_what-is-dagger.md Resolved
Comment thread docs/v0.3/sdk/go/fssrz-index.md Resolved
Comment thread docs/v0.3/sdk/go/fssrz-index.md Resolved
Comment thread docs/v0.3/sdk/go/fssrz-index.md Resolved
Comment thread docs/v0.3/sdk/go/fssrz-index.md Resolved
Comment thread docs/v0.3/sdk/go/fssrz-index.md Outdated
```

## Next Steps
1. Your Go program imports the Dagger go library

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we replace "go library" with "Go SDK" in this list?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Until yesterday I would have said “yes”
  • But yesterday @aluzzardi shared concern about us maybe conflating “library” and “sdk” to the point of maybe not matching the conventions of Go developers. This is an attempt at reconciling Andrea’s concern while continuing to use the SDK terminology.

TLDR: it’s still a fine point under discussion but shouldn’t affect the overall structure.

Comment thread docs/v0.3/sdk/go/fssrz-index.md Resolved
Comment thread docs/v0.3/sdk/go/fssrz-index.md Resolved

This tutorial teaches you the basics of using Dagger in Go. You will learn how to:

- Install the Go SDK

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we replace "Go tool" in this guide with "Go program" for consistency with what is used in other docs in this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean remove “program” to write “tool” instead? Or the opposite?

shykes and others added 5 commits October 19, 2022 09:06
Co-authored-by: vikram-dagger <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Co-authored-by: vikram-dagger <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Co-authored-by: vikram-dagger <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Co-authored-by: vikram-dagger <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Co-authored-by: vikram-dagger <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
shykes and others added 2 commits October 19, 2022 09:12
Co-authored-by: vikram-dagger <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Co-authored-by: vikram-dagger <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
@mircubed

Copy link
Copy Markdown
Contributor

nitpicking, but the "Go SDK" and the "introduction" headers are the only ones that are clickable, so it feels weird since the other headers with the same weight aren't clickable.

@mircubed

Copy link
Copy Markdown
Contributor

When I click on the preview, I get this page first....
Screen Shot 2022-10-19 at 9 33 22 AM

but then I click introduction and I see this...

Screen Shot 2022-10-19 at 9 35 45 AM

Not sure why the old introduction is coming up first in the preview, but worth checking out to make sure that the users don't see it when we merge.

@shykes

shykes commented Oct 19, 2022

Copy link
Copy Markdown
Contributor Author

nitpicking, but the "Go SDK" and the "introduction" headers are the only ones that are clickable, so it feels weird since the other headers with the same weight aren't clickable.

Absolutely, that’s just me not having finished the implementation 👍

@shykes

shykes commented Oct 19, 2022

Copy link
Copy Markdown
Contributor Author

When I click on the preview, I get this page first.... Screen Shot 2022-10-19 at 9 33 22 AM

but then I click introduction and I see this...

Screen Shot 2022-10-19 at 9 35 45 AM

Not sure why the old introduction is coming up first in the preview, but worth checking out to make sure that the users don't see it when we merge.

Yeah that’s leftover from original sidebar.

That part of the PR (cue sdk, merge sidebars) is not nearly as finished as the rest of the PR. Maybe I should separate but I didn’t want to over complicate right away. Wanted to get a general sense.

@vito vito left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like the "Get Started" page; it's awesome seeing a "CI/CD as a CLI" come together like that! The code needs to be updated to use the new dagger.Connect() API though. It'll make the code nicer too since you can get rid of the whole engine.Start + indented callback.

Context switching back to code for now. :)

Comment thread docs/v0.3/sdk/go/fssrz-index.md Resolved
gerhard pushed a commit to slumbering/dagger that referenced this pull request Oct 19, 2022
website-0.3 was a temporary directory and will be deleted with PR dagger#3431

Signed-off-by: jffarge <[email protected]>
gerhard pushed a commit that referenced this pull request Oct 19, 2022
* website: add posthog-docusaurus plugin
* move posthog config into website directory
* website: remove posthog from website-0.3 directory (tmp dir, will be deleted with PR #3431)

Signed-off-by: jffarge <[email protected]>
Co-authored-by: Alex Suraci <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
@shykes

shykes commented Oct 20, 2022

Copy link
Copy Markdown
Contributor Author

Thanks all for the feedback, I have split up the contents from this PR into smaller, more focused ones.

@shykes shykes closed this Oct 20, 2022
@shykes
shykes deleted the go-sdk-preview-docs branch October 20, 2022 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants