mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2025-04-17 19:32:48 -07:00
extend column names
This commit is contained in:
parent
df277e86ce
commit
3eb9282438
@ -470,8 +470,10 @@ def generate_report():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
'''
|
'''
|
||||||
parse_themes_toml_for_each_hugo_themes()
|
or test with
|
||||||
generate_report()
|
`
|
||||||
|
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()
|
get_hugo_themes_list()
|
||||||
if len(THEMESLIST) > 300:
|
if len(THEMESLIST) > 300:
|
||||||
|
@ -96,21 +96,23 @@ function buildResults() {
|
|||||||
resultsDiv.appendChild(resultsTable);
|
resultsDiv.appendChild(resultsTable);
|
||||||
resultsTable.appendChild(resultsTableHeadRow);
|
resultsTable.appendChild(resultsTableHeadRow);
|
||||||
|
|
||||||
let themeTH = document.createElement("th");
|
let tableHeadingVals = [
|
||||||
themeTH.innerHTML = "theme";
|
{'headingName': 'cname', 'headingText': 'theme'},
|
||||||
resultsTableHeadRow.appendChild(themeTH);
|
{'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");
|
tableHeadingVals.forEach((x) => {
|
||||||
dateTH.innerHTML = "date";
|
let xTH = document.createElement("th");
|
||||||
resultsTableHeadRow.appendChild(dateTH);
|
xTH.innerHTML = x.headingText;
|
||||||
|
resultsTableHeadRow.appendChild(xTH);
|
||||||
let starsTH = document.createElement("th");
|
});
|
||||||
starsTH.innerHTML = "stars";
|
|
||||||
resultsTableHeadRow.appendChild(starsTH);
|
|
||||||
|
|
||||||
let commitTH = document.createElement("th");
|
|
||||||
commitTH.innerHTML = "commit";
|
|
||||||
resultsTableHeadRow.appendChild(commitTH);
|
|
||||||
|
|
||||||
let selectedTags = getSelectedTags();
|
let selectedTags = getSelectedTags();
|
||||||
let selectedFeatures = getSelectedFeatures();
|
let selectedFeatures = getSelectedFeatures();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user