Fix: Mobile version

This commit is contained in:
Axorax
2025-01-14 22:20:09 +06:00
parent c025e3851c
commit 59bce9a69b
14 changed files with 3023 additions and 45 deletions

View File

@@ -109,7 +109,7 @@ function analyze(file = "README.md") {
console.log(`${file} Link Count: \x1b[32m${linkCount}\x1b[0m`);
}
function generateToc(filePath = 'README.md') {
function generateToc(filePath) {
const content = fs.readFileSync(filePath, 'utf-8');
const lines = content.split('\n');
@@ -166,8 +166,8 @@ function findAF(file, name, message, suffix) {
}
function createToC() {
findAF("README.md", "TOC", "\n\n" + generateToc() + "\n\n", `: ${new Date().toLocaleString('en-US', { timeZoneName: 'short', weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: true })}`);
findAF("MOBILE.md", "TOC", "\n\n" + generateToc() + "\n\n", `: ${new Date().toLocaleString('en-US', { timeZoneName: 'short', weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: true })}`);
findAF("README.md", "TOC", "\n\n" + generateToc("README.md") + "\n\n", `: ${new Date().toLocaleString('en-US', { timeZoneName: 'short', weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: true })}`);
findAF("MOBILE.md", "TOC", "\n\n" + generateToc("MOBILE.md") + "\n\n", `: ${new Date().toLocaleString('en-US', { timeZoneName: 'short', weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: true })}`);
}
function formatFiles() {