@dominikcz/greg 0.9.27 → 0.9.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/init.js
CHANGED
|
@@ -186,8 +186,9 @@ async function main() {
|
|
|
186
186
|
|
|
187
187
|
// ── Derive values ─────────────────────────────────────────────────────────
|
|
188
188
|
const docsDir = docsPath.replace(/^\.\//, '').replace(/\/$/, '');
|
|
189
|
+
const rootPath = '';
|
|
189
190
|
const ext = useTS ? 'ts' : 'js';
|
|
190
|
-
const vars = { TITLE: title, DESCRIPTION: desc, DOCS_DIR: docsDir, EXT: ext };
|
|
191
|
+
const vars = { TITLE: title, DESCRIPTION: desc, DOCS_DIR: docsDir, ROOT_PATH: rootPath, EXT: ext };
|
|
191
192
|
|
|
192
193
|
p.log.step('Creating files…');
|
|
193
194
|
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from '@dominikcz/greg/plugins'
|
|
10
10
|
|
|
11
11
|
const docsDir = process.env.GREG_DOCS_DIR || '{{DOCS_DIR}}'
|
|
12
|
-
const docsBase = process.env.GREG_DOCS_BASE || '
|
|
12
|
+
const docsBase = process.env.GREG_DOCS_BASE || ''
|
|
13
13
|
|
|
14
14
|
export default defineConfig({
|
|
15
15
|
plugins: [
|