This commit is contained in:
parent
9d0a823351
commit
d74495ddef
936 changed files with 80 additions and 69 deletions
|
|
@ -2,7 +2,7 @@ import fs from "node:fs";
|
|||
import path from "node:path";
|
||||
|
||||
const repoRoot = process.cwd();
|
||||
const websiteRoot = path.join(repoRoot, "website");
|
||||
const legacyHtmlRoot = path.join(repoRoot, "archive-source");
|
||||
const cssRoot = path.join(repoRoot, "css");
|
||||
|
||||
const themeCssPath = path.join(cssRoot, "theme.css");
|
||||
|
|
@ -40,8 +40,8 @@ function extractAnonymousShortcodeCss(html) {
|
|||
}
|
||||
|
||||
function buildCssFiles() {
|
||||
const aboutHtml = read(path.join(websiteRoot, "about.html"));
|
||||
const indexHtml = read(path.join(websiteRoot, "index.html"));
|
||||
const aboutHtml = read(path.join(legacyHtmlRoot, "about.html"));
|
||||
const indexHtml = read(path.join(legacyHtmlRoot, "index.html"));
|
||||
|
||||
const aboutTheme = extractStyle(aboutHtml, "parabola-style-inline-css");
|
||||
const indexTheme = extractStyle(indexHtml, "parabola-style-inline-css");
|
||||
|
|
@ -116,7 +116,7 @@ const wroteCssFiles = buildCssFiles();
|
|||
|
||||
let updated = 0;
|
||||
|
||||
for (const filePath of walkHtml(websiteRoot)) {
|
||||
for (const filePath of walkHtml(legacyHtmlRoot)) {
|
||||
const original = read(filePath);
|
||||
const next = removeExtractedInlineStyles(ensureThemeLinks(original));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue