Repository navigation
docs: Add API and CLI documentation - #3917
Conversation
2a029f0 to
0355ab1
Compare
|
the linter is failing with I'm not sure we can avoid these duplicates for the reference page. Should we disable this check for this page, or for this PR? |
|
Feedback from 11/22 meeting with @shykes @kpenfound @jpadams @vikram-dagger @marcosnils Overall feedback:
Command guides needed in the CLI section:
Here are some shell examples to pull from: Next steps: |
0355ab1 to
8d4c583
Compare
There was a problem hiding this comment.
I read through #3555, and I understand this might change. I'm assuming it's correct for now, but let me know if not. Also, is there a way for a user to identify in the API reference which fields trigger execution? If not, can you please provide a short list of common ones here?
There was a problem hiding this comment.
There isn't a list of fields that trigger execution. But it would be useful to define a simple rule that people can memorize.
The rule I've been using so far is something like:
The Dagger API is data-oriented. You query for data, and dagger returns that data. If executing a command is necessary to return that data, it will do so. When crafting a pipeline, ask yourself: what data do you need that pipeline to return? Is it an artifact? The result or standard output of a command? Most of the time, actually executing a command is just an implementation detail of what you actually want
8d4c583 to
a21cbd4
Compare
shykes
left a comment
There was a problem hiding this comment.
Looking good. I left some comments and edits.
There was a problem hiding this comment.
There isn't a list of fields that trigger execution. But it would be useful to define a simple rule that people can memorize.
The rule I've been using so far is something like:
The Dagger API is data-oriented. You query for data, and dagger returns that data. If executing a command is necessary to return that data, it will do so. When crafting a pipeline, ask yourself: what data do you need that pipeline to return? Is it an artifact? The result or standard output of a command? Most of the time, actually executing a command is just an implementation detail of what you actually want
There was a problem hiding this comment.
A simple stack diagram here would be useful.
There was a problem hiding this comment.
a21cbd4 to
844a3aa
Compare
|
@vikram-dagger did a first pass and left some comments. LMK if you need to sync. |
8ddd994 to
b61a312
Compare
7092bc1 to
965b42b
Compare
965b42b to
c372dbb
Compare
|
Should the "Try It!" button instead be the same as "Try it in the API Playground!" button in #3745 ? |
c372dbb to
9994713
Compare
9994713 to
48667c2
Compare
c4a0f35 to
f3f4afd
Compare
This commit adds documentation for the API and the CLI. This includes reference documentation for both, installation steps for the CLI, tutorials and guides for both, and an introduction to the API Playground. This commit also updates the general FAQ with entries related to the GraphQL API. This commit updates the website navigation to include links to the above documentation. This commit also adds a new component that produces a button linking to ia Playground URL and opening that URL in a separate tab/window. Signed-off-by: Vikram Vaswani <[email protected]>
09c72a5 to
ebc748b
Compare
Signed-off-by: Vikram Vaswani <[email protected]>
This commit adds documentation for the API and the CLI. This commit includes reference documentation for both, installation
steps for the CLI, tutorials and guides for both, and an introduction to the API Playground. This commit also updates the general FAQ with entries related to the GraphQL API.
This commit also adds a new ExternalButton component that produces a button linking to an external URL and opening that URL in a separate tab/window.
Closes #3741 , #3622, #4024
Signed-off-by: Vikram Vaswani [email protected]