extend column names

This commit is contained in:
Trent Palmer 2021-08-14 08:01:41 -07:00
parent df277e86ce
commit 3eb9282438
2 changed files with 20 additions and 16 deletions

View File

@ -470,8 +470,10 @@ def generate_report():
if __name__ == "__main__":
'''
parse_themes_toml_for_each_hugo_themes()
generate_report()
or test with
`
python -c'import rank_hugo_themes; rank_hugo_themes.parse_themes_toml_for_each_hugo_themes() ; rank_hugo_themes.generate_report()''
`
'''
get_hugo_themes_list()
if len(THEMESLIST) > 300:

View File

@ -96,21 +96,23 @@ function buildResults() {
resultsDiv.appendChild(resultsTable);
resultsTable.appendChild(resultsTableHeadRow);
let themeTH = document.createElement("th");
themeTH.innerHTML = "theme";
resultsTableHeadRow.appendChild(themeTH);
let tableHeadingVals = [
{'headingName': 'cname', 'headingText': 'theme'},
{'headingName': 'date', 'headingText': 'date'},
{'headingName': 'num_stars', 'headingText': 'stars'},
{'headingName': 'commit', 'headingText': 'commit'},
{'headingName': 'min_ver', 'headingText': 'minVer'},
{'headingName': 'license', 'headingText': 'license'},
{'headingName': 'desc', 'headingText': 'desc'},
{'headingName': 'tags', 'headingText': 'tags'},
{'headingName': 'features', 'headingText': 'features'},
];
let dateTH = document.createElement("th");
dateTH.innerHTML = "date";
resultsTableHeadRow.appendChild(dateTH);
let starsTH = document.createElement("th");
starsTH.innerHTML = "stars";
resultsTableHeadRow.appendChild(starsTH);
let commitTH = document.createElement("th");
commitTH.innerHTML = "commit";
resultsTableHeadRow.appendChild(commitTH);
tableHeadingVals.forEach((x) => {
let xTH = document.createElement("th");
xTH.innerHTML = x.headingText;
resultsTableHeadRow.appendChild(xTH);
});
let selectedTags = getSelectedTags();
let selectedFeatures = getSelectedFeatures();