-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use k8s.website.tabs to show different installation types #3139
Conversation
Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>
Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>
278a016
to
a53f6e0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3139 +/- ##
==========================================
+ Coverage 66.51% 66.53% +0.02%
==========================================
Files 161 161
Lines 22673 22693 +20
==========================================
+ Hits 15080 15098 +18
- Misses 6720 6722 +2
Partials 873 873 ☔ View full report in Codecov by Sentry. |
Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>
@@ -47,10 +47,16 @@ consideration when debugging. | |||
|
|||
## Testing the Configuration | |||
|
|||
{{< tabs name="tabs_test_the_configuration" >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imo we need to flip this
- With External LoadBalancer Support
- Without External LoadBalancer Support
cc @eitansuez
Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>
export ENVOY_SERVICE= \ | ||
$(kubectl get svc -n envoy-gateway-system \ | ||
--selector=gateway.envoyproxy.io/owning-gateway-namespace=default,gateway.envoyproxy.io/owning-gateway-name=eg \ | ||
-o jsonpath='{.items[0].metadata.name}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even the curl
needs to be part of the tab because its using different ports
thanks @yuluo-yx, added some comments ! |
/retest |
if i'm not mistaken this pr will not only apply tabs to the quickstart, but more generally enable the use of tabs in the documentation. once it's merged i'll work on using this feature in additional contexts. |
yep, This is mentioned in #3133. |
i just checked out this PR, the tabs render correctly, but the functionality (switching between tabs) doesn't appear to work: clicking on the currently-selected tab has this undesirable scroll effect, while clicking on the other tab (to switch to it) does nothing. has anyone else tried it and gotten it to work? |
my bad, let me check |
hi, @eitansuez . I fixed , pls review again. tks 🫡 |
Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>
/retest |
Is that right? I'm not sure I understand what you're saying. 🥲🥲 |
Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>
site/static/js/dismiss_banner.js
Outdated
@@ -0,0 +1,41 @@ | |||
$(document).ready(function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think https://www.docsy.dev/docs/adding-content/shortcodes/#tabbed-panes is enough or what I missed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this
Without these js files, the tab switching action may not be possible, I have streamlined the files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think https://www.docsy.dev/docs/adding-content/shortcodes/#tabbed-panes is enough or what I missed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we only add what's required to create tabs e.g. https://learn.netlify.app/en/shortcodes/tabs/
we dont need to copy the k8s theme
I linked k8s as an example to show how tabs were being used in other projects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we only add what's required to create tabs e.g. https://learn.netlify.app/en/shortcodes/tabs/ we dont need to copy the k8s theme I linked k8s as an example to show how tabs were being used in other projects
yep, I understand that if I delete these js files locally, the toggle between tabs will not work, so I added these CSS and js files to achieve the toggle effect and did not copy the k8s theme file.
Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>
yes, that's right. sorry for the late reply. |
/retest |
Is there another implementation of this feat or are there any other problems with it, if there is an alternative I can close. |
Hey @yuluo-yx, can you please rebase, we can merge post that |
Signed-off-by: YuLuo <yuluo08290126@gmail.com>
this PR is far away than my expected, PTAL #3208 |
maybe you can rebase your work base on #3208 ? |
It is merged, I will close it. |
you can rebase with main branch, you did a lot of around better display/html/css, those are very valuable. |
current pr is too confusing, I will resubmit a pr to update the existing file style, thank you for recognizing my work! 🫡 |
before:
after:
show: