mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2024-12-04 16:41:31 -08:00
extend column names
This commit is contained in:
parent
df277e86ce
commit
3eb9282438
@ -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:
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user