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 { .hidden {
display: none; 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 # Create the initial strings to which we'll concatenate the relevant columns
title = '** FEATURE STATE **\n\n|' title = '|'
separators = '|' separators = '|'
values = '|' values = '|'
@ -51,9 +51,9 @@ def define_env(env):
title += f' {header} |' title += f' {header} |'
separators += ' :-: |' separators += ' :-: |'
if arg == 'k8s_min': if arg == 'k8s_min':
values += f' K8s {kwargs[arg]} |' values += f' K8s {kwargs[arg]} |'
else: else:
values += f' Kops {kwargs[arg]} |' values += f' Kops {kwargs[arg]} |'
# Create a list object containing all the table rows, # Create a list object containing all the table rows,
# Then return a string object which contains every list item in a new line. # Then return a string object which contains every list item in a new line.
@ -62,9 +62,7 @@ def define_env(env):
separators, separators,
values values
] ]
table = '\n'.join(table) return '\n'.join(table)
table = f'<div class="kops_feature_table">{table}</div>'
return table
def main(): def main():