Skip to content

Commit

Permalink
Merge pull request #10042 from hakman/fix-docs-feature-table
Browse files Browse the repository at this point in the history
Fix docs feature table not being rendered
  • Loading branch information
k8s-ci-robot authored Oct 12, 2020
2 parents 6f85cd9 + e6e3fc1 commit f0382be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 0 additions & 4 deletions docs/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@
.hidden {
display: none;
}

.kops_feature_table .md-typeset__table table{
max-width: fit-content;
}
10 changes: 4 additions & 6 deletions hack/mkdocs_macros/feature_stability_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def kops_feature_table(**kwargs):
}

# Create the initial strings to which we'll concatenate the relevant columns
title = '** FEATURE STATE **\n\n|'
title = '|'
separators = '|'
values = '|'

Expand All @@ -51,9 +51,9 @@ def kops_feature_table(**kwargs):
title += f' {header} |'
separators += ' :-: |'
if arg == 'k8s_min':
values += f' K8s {kwargs[arg]} |'
values += f' K8s {kwargs[arg]} |'
else:
values += f' Kops {kwargs[arg]} |'
values += f' Kops {kwargs[arg]} |'

# Create a list object containing all the table rows,
# Then return a string object which contains every list item in a new line.
Expand All @@ -62,9 +62,7 @@ def kops_feature_table(**kwargs):
separators,
values
]
table = '\n'.join(table)
table = f'<div class="kops_feature_table">{table}</div>'
return table
return '\n'.join(table)


def main():
Expand Down

0 comments on commit f0382be

Please sign in to comment.