mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
add comment
This commit is contained in:
@@ -29,7 +29,6 @@ let buildContexts = {
|
||||
const debugPerf = process.env.DEBUG_PERFORMANCE === '1';
|
||||
|
||||
const isDeveloping = process.argv.includes('--develop');
|
||||
// const isIncremental = process.argv.includes('--incremental');
|
||||
|
||||
/**
|
||||
* @typedef {Object} BuildOptions
|
||||
|
||||
@@ -60,16 +60,12 @@ export async function generateDocs(options = {}) {
|
||||
|
||||
spinner?.start?.('Writing the docs');
|
||||
|
||||
if (isIncremental) {
|
||||
} else {
|
||||
}
|
||||
|
||||
const output = [];
|
||||
|
||||
try {
|
||||
if (isIncremental) {
|
||||
// no-op.
|
||||
globalThis.eleventy ||= await createEleventy(options);
|
||||
// eleventy incremental does its own writing, so we just kinda trust it for right now.
|
||||
} else {
|
||||
// Cleanup
|
||||
await deleteAsync(getSiteDir());
|
||||
|
||||
Reference in New Issue
Block a user