Новый лендинг

This commit is contained in:
2026-07-31 06:06:07 -07:00
parent 8b2af4db62
commit 871c84cedd
8 changed files with 1873 additions and 18 deletions

View File

@@ -5,7 +5,7 @@ import { isMap, isSeq, parseDocument, stringify } from 'yaml';
const projectRoot = resolve(fileURLToPath(new URL('..', import.meta.url)));
const sourceDirectory = resolve(
process.env.ROSETTA_PROTO_DIR || resolve(projectRoot, '../rcc/proto'),
process.env.ROSETTA_PROTO_DIR || resolve(projectRoot, 'proto'),
);
const outputPath = resolve(projectRoot, 'src/generated/protoDocs.ts');
@@ -139,7 +139,7 @@ async function readLayer(path) {
let sourceFiles = [];
try {
sourceFiles = (await readdir(sourceDirectory))
.filter((file) => /\.ya?ml$/i.test(file))
.filter((file) => /^layer\..+\.ya?ml$/i.test(file))
.sort((a, b) => a.localeCompare(b, undefined, { numeric: true }))
.map((file) => resolve(sourceDirectory, file));
} catch {