Merge pull request #10042 from hakman/fix-docs-feature-table

Fix docs feature table not being rendered
This commit is contained in:
Kubernetes Prow Robot 2020-10-11 22:18:47 -07:00 committed by GitHub
commit f0382bed2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 10 deletions

View File

@ -7,7 +7,3 @@
.hidden {
display: none;
}
.kops_feature_table .md-typeset__table table{
max-width: fit-content;
}

View File

@ -37,7 +37,7 @@ def define_env(env):
}
# Create the initial strings to which we'll concatenate the relevant columns
title = '** FEATURE STATE **\n\n|'
title = '|'
separators = '|'
values = '|'
@ -51,9 +51,9 @@ def define_env(env):
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.
@ -62,9 +62,7 @@ def define_env(env):
separators,
values
]
table = '\n'.join(table)
table = f'<div class="kops_feature_table">{table}</div>'
return table
return '\n'.join(table)
def main():