-
Notifications
You must be signed in to change notification settings - Fork 153
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
Add page to list all KEPs #324
Conversation
/assign @sftim @mrbobbytables (since you reviewed #222) |
Some of the approach in kubernetes/website#35228 might be useful for generating a list of KEPs. |
@sftim -- we are generating anything here. The KEPs list is pre-generated using a post submit for k/enhancements. We just consume the JSON here. Not generating anything at build time for contributor-site reduces the complexity. |
I think this is OK. /hold There might be other pieces that need to land before this goes in.
/lgtm |
content/en/resources/keps/_index.md
Outdated
linktitle: Enhancements | ||
title: Kubernetes Enhancement Proposals (KEPs) | ||
description: | | ||
List of enhancements that are proposed |
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.
List of enhancements that are proposed | |
List of Kubernetes enhancements. |
“proposed” doesn't capture that some of these are fully implemented.
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.
In essence, all enhancements are proposals in various states of implementation, but I agree that the language can create some confusion.
/lgtm Can we skip KEPS with a KEP ID < 1? |
The selector contains a "All" option now to cater to this.
I like this idea. I would prefer keeping just the SIG name though in this form "Node" since the table header is itself SIG. Let me try something here.
Moved to https://features.k8s.io/ to resolve this for now. |
I am going to fix those. Those KEPs needs to have their metadata updated. There's also a KEP with number "NNNN". |
Tried a middle ground solution. |
For commit 98ba82d, please (this is important) explain why you are setting a different build interval. |
Try |
Using either of them wouldn't have solved the problem since I solved the problem by using both in order. |
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.
This is great. Just a couple of minor suggestion (okay to skip making those changes before merging)
howdy folks! how far away are we from merging this and then iterating? 🙏🏾 |
The one thing I'd like to see added is the comment I asked for in https://github.com/kubernetes/contributor-site/pull/324/files#r945321372 Other details we could fix post-merge. I'm asking for the comment because if that post-merge tidying never happens, we actually lose some important context. |
9c7cc02
to
137b312
Compare
I have catered to all the suggestions except the one about the location of the stylesheet and scripts specific to the shortcode. @sftim -- I agree that having the stylesheet and scripts in the body is an antipattern and shouldn't be done. On checking where the header is defined, it's in the theme layouts. So, moving the stylesheet and scripts there would mean replicating the |
Can you remove the top-level menu item on the home page? |
There are some ways in Hugo to implement code reuse. If we find there's a lot of maintenance overhead, we can consider that. https://github.com/kubernetes/website/ uses the same Docsy theme (much more customized) and you might find some tips there about how to override just part of an inherited partial. For scripts, you can often trigger these to load from the page footer. |
A tip: edit the PR description to include a link to the preview |
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
337b27f
to
24b8002
Compare
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.
/lgtm
|
||
{{% alert title="Note" color="info" %}} | ||
If you notice an empty cell in the table, the KEP may not have updated information. | ||
Please raise <a href="https://github.com/kubernetes/enhancements/issues">an issue in the kubernetes/enhancemenets</a> repository. |
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.
Please raise <a href="https://github.com/kubernetes/enhancements/issues">an issue in the kubernetes/enhancemenets</a> repository. | |
Please raise <a href="https://github.com/kubernetes/enhancements/issues">an issue in the kubernetes/enhancements</a> repository. |
@@ -0,0 +1,25 @@ | |||
{{/* | |||
This file is a 1:1 copy of the one in docsy but with adding scripts |
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.
nit: which Docsy release / commit is this from?
|
||
<div> | ||
<table id="keps-table" class="table table-hover mt-2 col-md-12 table-sm"> | ||
<thead class="thead-light"> |
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.
Optionally: add a table caption.
*/}} | ||
|
||
<div> | ||
<table id="keps-table" class="table table-hover mt-2 col-md-12 table-sm"> |
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.
nit: If someone were to use that shortcode twice in one page, the output would have a duplicated id
. I think this is low risk low impact.
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mrbobbytables, palnabarun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Let's ship it /hold cancel |
Part of kubernetes/enhancements#2095
The proposed change now uses Datatables for table search, pagination and sorting. No additional custom JS is required. Also, there is no change done to the content generator hack script.
Here is how the page looks:
Supersedes #222 (Thanks, @shekhar-rajak for the initial work 🎉 )