@dominikcz/greg 0.9.28 → 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,7 +186,7 @@ async function main() {
186
186
 
187
187
  // ── Derive values ─────────────────────────────────────────────────────────
188
188
  const docsDir = docsPath.replace(/^\.\//, '').replace(/\/$/, '');
189
- const rootPath = '/' + docsDir.replace(/\\/g, '/').replace(/^\/+/, '');
189
+ const rootPath = '';
190
190
  const ext = useTS ? 'ts' : 'js';
191
191
  const vars = { TITLE: title, DESCRIPTION: desc, DOCS_DIR: docsDir, ROOT_PATH: rootPath, EXT: ext };
192
192
 
@@ -5,7 +5,7 @@ export default {
5
5
  // VitePress-compatible build options:
6
6
  // base: '/',
7
7
  // outDir: 'dist',
8
- srcDir: '{{DOCS_DIR}}',
8
+ srcDir: '',
9
9
  docsBase: '',
10
10
  mainTitle: '{{TITLE}}',
11
11
  sidebar: 'auto',
@@ -4,7 +4,7 @@ export default {
4
4
  // VitePress-compatible build options:
5
5
  // base: '/',
6
6
  // outDir: 'dist',
7
- srcDir: '{{DOCS_DIR}}',
7
+ srcDir: '',
8
8
  docsBase: '',
9
9
  mainTitle: '{{TITLE}}',
10
10
  sidebar: 'auto',
@@ -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 || '{{ROOT_PATH}}'
12
+ const docsBase = process.env.GREG_DOCS_BASE || ''
13
13
 
14
14
  export default defineConfig({
15
15
  plugins: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dominikcz/greg",
3
- "version": "0.9.28",
3
+ "version": "0.9.29",
4
4
  "type": "module",
5
5
  "types": "./types/index.d.ts",
6
6
  "bin": {