Skip to content

Commit

Permalink
guh
Browse files Browse the repository at this point in the history
  • Loading branch information
shysolocup authored Sep 26, 2024
1 parent 699408e commit 25313e7
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/logs/scripts/logref.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ let content = [

"# LogRef",
"this is where log references are for easier navigation<br>",
'<img height=22 src="https://github.com/ReRand/ACE-ULTRA/actions/workflows/logref.yml/badge.svg" alt="publish">'

'<img height=22 src="https://github.com/ReRand/ACE-ULTRA/actions/workflows/logref.yml/badge.svg" alt="publish">',
"",
"<br>",
""
];


Expand Down Expand Up @@ -91,7 +93,7 @@ groups.forEach((group, gi) => {
});

v = {
header: `### [${group}](${treelink}) (#${gi})`,
header: `### [${group}](${treelink}) (group #${gi})`,
content: []
}

Expand Down Expand Up @@ -127,26 +129,41 @@ versionnames.forEach((vn, i) => {
let ventry = versions[vn];
let vsubs = ventry.subs;

stuff.push(versions[vn].header);
let start = [
"",
"---",
"",
ventry.header
];

start.forEach( s => stuff.push(s) );

vsubs = vsubs.sort( (a, b) => {
return a.header.localeCompare(b.header);
});

vsubs = (config.reverseSort) ? vsubs.reverse() : vsubs
console.log(vsubs);

vsubs.forEach( (sub) => {
let { header, content } = sub;
let sheader = sub.header;
let scontent = sub.content;

content = (config.reverseSort) ? content.reverse() : content;
scontent = (config.reverseSort) ? scontent.reverse() : scontent;

stuff.push(header);
content.forEach(c => stuff.push(c));
stuff.push(sheader);
scontent.forEach(c => stuff.push(c));
});

/*v = v.content.sort();
v = (config.reverseSort) ? v.reverse() : v;*/

let ends = [
"",
"---",
""
];

ends.forEach( e => stuff.push(e) );

content = content.concat(stuff);
}
Expand Down

0 comments on commit 25313e7

Please sign in to comment.