Skip to content

Include What is CUE? in Europa docs sidebar, Core Concepts - #1758

Closed
gerhard wants to merge 1 commit into
dagger:mainfrom
gerhard:europa-docs-include-cue-page
Closed

gerhard wants to merge 1 commit into
dagger:mainfrom
gerhard:europa-docs-include-cue-page

Conversation

@gerhard

@gerhard gerhard commented Mar 10, 2022 •

Copy link
Copy Markdown
Contributor

Also replace all occurences of Cue with CUE.

Solves #1753

@gerhard
gerhard requested a review from shykes March 10, 2022 19:12
@netlify

netlify Bot commented Mar 10, 2022 •

Copy link
Copy Markdown

@shykes shykes 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 think this might break navigation. When you navigate to "what is cue" from 0.2 docs, doesn't it change the navbar to 0.1, effectively "ejecting" you from 0.2 docs?

@gerhard

gerhard commented Mar 10, 2022

Copy link
Copy Markdown
Contributor Author

I think this might break navigation. When you navigate to "what is cue" from 0.2 docs, doesn't it change the navbar to 0.1, effectively "ejecting" you from 0.2 docs?

When you navigate to "what is cue" from 0.2 docs it keeps the sidebar as is.

When you navigate to "what is cue" from 0.1 docs it updates the sidebar to 0.2.

Is that OK?

@gerhard

gerhard commented Mar 10, 2022

Copy link
Copy Markdown
Contributor Author

If it is not OK, maybe we should go to the next improvement instead and break down that large What is CUE? page into multiple smaller pages for 0.2?

It does feel that we are working around a Docusaurus limitation...

@shykes

shykes commented Mar 10, 2022

Copy link
Copy Markdown
Contributor

I think this might break navigation. When you navigate to "what is cue" from 0.2 docs, doesn't it change the navbar to 0.1, effectively "ejecting" you from 0.2 docs?

When you navigate to "what is cue" from 0.2 docs it keeps the sidebar as is.

When you navigate to "what is cue" from 0.1 docs it updates the sidebar to 0.2.

Is that OK?

Not ideal but, in this specific case, I would say acceptable. wdyt @aluzzardi ?

@shykes

shykes commented Mar 10, 2022

Copy link
Copy Markdown
Contributor

If it is not OK, maybe we should go to the next improvement instead and break down that large What is CUE? page into multiple smaller pages for 0.2?

Actually a better incremental plan B would be to just duplicate the content into different pages. Refactoring the content as you propose feels out of scope - better kept for a separate PR to be reviewed on its own terms.

In any case, your plan A is fine IMO (see other comment).

@aluzzardi

Copy link
Copy Markdown
Contributor

Both Plan A and B are fine by me.

I wouldn't worry too much about duplicate contents in Plan B -- IMHO 0.1 docs should go away soon (the user base doesn't justify the cost), so it's acceptable to copy that file over and delete 0.1 docs in a couple of months or so.

@shykes

shykes commented Mar 10, 2022

Copy link
Copy Markdown
Contributor

Both Plan A and B are fine by me.

I wouldn't worry too much about duplicate contents in Plan B -- IMHO 0.1 docs should go away soon (the user base doesn't justify the cost), so it's acceptable to copy that file over and delete 0.1 docs in a couple of months or so.

I agree but we will have to deal with multiple versions of the docs soon enough. So we can (and should) kick the can down the road, but also need to start thinking about longer-term solution too IMO.

@shykes

shykes commented Mar 10, 2022

Copy link
Copy Markdown
Contributor

Both Plan A and B are fine by me.
I wouldn't worry too much about duplicate contents in Plan B -- IMHO 0.1 docs should go away soon (the user base doesn't justify the cost), so it's acceptable to copy that file over and delete 0.1 docs in a couple of months or so.

I agree but we will have to deal with multiple versions of the docs soon enough. So we can (and should) kick the can down the road, but also need to start thinking about longer-term solution too IMO.

Also the whole point of the ID-based system is that we never have to delete anything: URLs and content can remain immutable, with potentially a "archived / deprecated" warning on top.

@gerhard

gerhard commented Mar 11, 2022

Copy link
Copy Markdown
Contributor Author

Based on your comments above, this is what I intend to do next:

  • Duplicate What is CUE? to a new ID for 0.2.0 - it will start with 12xx - and preserve the existing sidebar behaviour
  • Create an issue with the Docusaurus team and ask their opinion on our sidebar issue

My understanding is that we don't make use of the built-in Docusaurus versioning support, and instead use unique article IDs. In other words, we are off the beaten track and support may be limited. I still think that unique article IDs is a good idea, and with that in mind, we are OK to solve this our own way, which implies duplicating content for now, and may require a better approach in the future.

@gerhard

gerhard commented Mar 11, 2022

Copy link
Copy Markdown
Contributor Author

While duplicating the existing CUE page was a good first step, it didn't feel good enough for the 0.2.0 docs. For the new docs we have adopted a more direct language and slightly different formatting:

  • shorter sentences
  • more lists
  • and a story-like approach to encourage users to navigate from doc to doc

While our primary aim is to help users achieve specific goals (e.g. use secrets, build container images etc.), the secondary aim is to share the the Dagger philosophy and link different concepts into a whole which is greater than the sum of its parts. Given this perspective, it is easy to understand why rewriting the CUE page for 0.2.0 and linking it to the Dagger CUE API was the right next step. That is what this change does.

Part of this change, I have dropped the DRAFTS section since the only page was a pre-Europa use-case. In my mind, the post-Europa docs effort will be all about Use Cases, so it would make sense to defer this page when we start that, instead of keeping around something half-implemented. The cost of inventory is underrated IMO.

I have also updated the only two occurrences of 0.2.0-beta.1 to 0.2.0.

@gerhard
gerhard requested a review from shykes March 11, 2022 15:42
@gerhard

gerhard commented Mar 11, 2022 •

Copy link
Copy Markdown
Contributor Author

On top of the primary goal, this drops Knowledge Base and restructures the nav.

Let's talk if you would like to see more changes before this gets merged @shykes @aluzzardi.

If you are happy with this as is, please merge.

image

@TomChv TomChv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's a great job! I added some comments to improve the doc, feel free to take it in account or no 🚀

Comment thread docs/core-concepts/1213-dagger-cue.md Resolved
Comment thread docs/core-concepts/1213-dagger-cue.md Resolved
Comment thread docs/core-concepts/1213-dagger-cue.md Resolved
Comment thread docs/core-concepts/1213-dagger-cue.md Resolved
Comment thread docs/core-concepts/1213-dagger-cue.md Resolved
Comment thread docs/core-concepts/1213-dagger-cue.md Resolved
Comment thread docs/core-concepts/1213-dagger-cue.md Resolved
Comment thread docs/core-concepts/1215-cue.md Resolved
Comment thread docs/core-concepts/1215-cue.md Resolved
@shykes

shykes commented Mar 11, 2022

Copy link
Copy Markdown
Contributor

Thanks. Can you split out the content edits, if not in a separate PR, then at least in separate commits? As is, we can't review the changes to "what is CUE" because it's tracked as an entirely new file, changes and all.

Also, we had at least one user go out of their way to tell us they loved this page and found it great. This tells me that it doesn't need to be heavily edited.

@gerhard

gerhard commented Mar 11, 2022 •

Copy link
Copy Markdown
Contributor Author

Thanks. Can you split out the content edits, if not in a separate PR, then at least in separate commits? As is, we can't review the changes to "what is CUE" because it's tracked as an entirely new file, changes and all.

The proposal was for this to be a duplicate, so cp learn/1005-what_is_cue.md core-concepts/1215-cue.md

While that is how this started, I edited the new CUE file. I don't think nvim -d learn/1005-what_is_cue.md core-concepts/1215-cue.md does a good job, but opening the 2 docs side-by-side works better IMO:

image

image

Also, we had at least one user go out of their way to tell us they loved this page and found it great. This tells me that it doesn't need to be heavily edited.

You have a fresh pair of eyes. If you do not think that the new page is clearer and more to-the-point than the previous one, it can always be reverted via cp learn/1005-what_is_cue.md core-concepts/1215-cue.md

@gerhard

gerhard commented Mar 11, 2022

Copy link
Copy Markdown
Contributor Author

@TomChv thank you for the great comments, I addressed them in the last force push.

I will comment on the changes not made next.

While the CUE doc page was not on my radar for the 0.2.0 release, it
became obvious that we would do our users a dis-service if we didn't add it.

The initial idea was to just include the existing page, from the 0.1.0
docs, but then we have hit a few issues and concluded that duplicating
this page with a new ID is a reasonable compromise:
#1758 (comment)

This was a good first step, but not good enough for the 0.2.0 docs. For
the new docs we have adopted a more direct language and slightly
different formatting:
- shorter sentences
- more lists
- and a story-like approach to encourage users to navigate from doc to doc

While our primary aim is to help users achieve specific goals (e.g. use
secrets, build container images etc.), the secondary aim is to share the
the Dagger philosophy and link different concepts into a whole which is
greater than the sum of its parts. Given this perspective, it is easy to
understand why rewriting the CUE page for 0.2.0 and linking it to the
Dagger CUE API was the right next step. That is what this change does.

As I was taking a closer look at the Dagger CUE API page, I realised
that linking to the specific 0.2.0 cue pages for dagger.io/dagger would
help users discover them and understand better CUE packages. I also
added some definitions which we have missed.

Part of this change, I have dropped the DRAFTS section since the only
page was a pre-Europa use-case. In my mind, the post-Europa docs effort
will be all about Use Cases, so it would make sense to defer this page
when we start that, instead of keeping around something
half-implemented. The cost of inventory is underrated IMO.

I have also updated the only two occurrences of 0.2.0-beta.1 to 0.2.0

This is part of #1327

Signed-off-by: Gerhard Lazu <[email protected]>
@gerhard

gerhard commented Mar 14, 2022

Copy link
Copy Markdown
Contributor Author

@shykes if this needs more consensus, I'm happy to continue that discussion.

@gerhard

gerhard commented Mar 14, 2022

Copy link
Copy Markdown
Contributor Author

I can see how splitting this PR into multiple smaller PRs will help move this along.

Thank you for the feedback @shykes!

@gerhard gerhard closed this Mar 14, 2022
@shykes

shykes commented Mar 14, 2022

Copy link
Copy Markdown
Contributor

Sorry for not merging as I promised, we got distracted by something else, then I forgot...

FYI my comments can be addressed in follow-up PRs.

@gerhard

gerhard commented Mar 14, 2022 •

Copy link
Copy Markdown
Contributor Author

That's not a problem, seriously 🙂

I have slept on it and realised that this could have been at least 3 smaller PRs which would have flowed through easier. You were suggesting this, but I didn't see it as clearly as I do now.

Will break this down into smaller PRs so that we can track the changes easier 💪🏻

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.

4 participants