@dogsbay/format-astro 0.2.0-beta.45 → 0.2.0-beta.46
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/dist/base-path.d.ts +19 -7
- package/dist/base-path.d.ts.map +1 -1
- package/dist/base-path.js +19 -7
- package/dist/base-path.js.map +1 -1
- package/package.json +4 -4
package/dist/base-path.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Single source of truth for the `basePath` URL prefix.
|
|
3
3
|
*
|
|
4
|
-
* `basePath` is the path-under-host where docs are served.
|
|
5
|
-
*
|
|
6
|
-
* `site.basePath: ""` in `dogsbay.config.yml`
|
|
7
|
-
*
|
|
4
|
+
* `basePath` is the path-under-host where docs are served. The default
|
|
5
|
+
* is `""` (host root, matching every other SSG); set
|
|
6
|
+
* `site.basePath: "/docs"` in `dogsbay.config.yml` for the legacy
|
|
7
|
+
* "docs nested under marketing site" shape, or `"/handbook"` (etc.)
|
|
8
|
+
* for any other prefix. See plans/default-basepath-root.md for the
|
|
9
|
+
* rationale behind the default flip in v0.3.
|
|
8
10
|
*
|
|
9
11
|
* Every emitter that builds URLs, file paths, or rewrites links
|
|
10
12
|
* reads from `AstroProjectOptions.basePath` and runs it through
|
|
@@ -22,8 +24,18 @@
|
|
|
22
24
|
*
|
|
23
25
|
* See plans/configurable-base-path.md.
|
|
24
26
|
*/
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Default `basePath` when no override is supplied.
|
|
29
|
+
*
|
|
30
|
+
* Changed in v0.3 from `"/docs"` to `""` (host root) so the default
|
|
31
|
+
* matches the plurality of doc-site deployments (GH Pages project
|
|
32
|
+
* sites, `docs.acme.com` subdomains, standalone wikis) and aligns
|
|
33
|
+
* with peer SSGs (Astro, Next, MkDocs, Docusaurus). The `cli`'s
|
|
34
|
+
* `site build` emits a one-shot migration warning when this default
|
|
35
|
+
* is hit so users from the `/docs` era can opt in to either value
|
|
36
|
+
* explicitly. See plans/default-basepath-root.md.
|
|
37
|
+
*/
|
|
38
|
+
export declare const DEFAULT_BASE_PATH = "";
|
|
27
39
|
/**
|
|
28
40
|
* Normalize a user-supplied `basePath` to canonical form.
|
|
29
41
|
*
|
|
@@ -33,7 +45,7 @@ export declare const DEFAULT_BASE_PATH = "/docs";
|
|
|
33
45
|
* non-empty prefix.
|
|
34
46
|
*
|
|
35
47
|
* Examples:
|
|
36
|
-
* - `undefined` → `"/docs"`
|
|
48
|
+
* - `undefined` → `""` (default in v0.3+; was `"/docs"` previously)
|
|
37
49
|
* - `""` → `""`
|
|
38
50
|
* - `"/"` → `""`
|
|
39
51
|
* - `"docs"` → `"/docs"`
|
package/dist/base-path.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-path.d.ts","sourceRoot":"","sources":["../src/base-path.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"base-path.d.ts","sourceRoot":"","sources":["../src/base-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKnE;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAE3D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,IAAI,EAAE,MAAM,GACX,MAAM,CAMR;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAGxE;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG;IACzD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB,CAiBA;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMvE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B;IACD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CASA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,IAAI,EAAE,MAAM,GACX,MAAM,CAMR"}
|
package/dist/base-path.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Single source of truth for the `basePath` URL prefix.
|
|
3
3
|
*
|
|
4
|
-
* `basePath` is the path-under-host where docs are served.
|
|
5
|
-
*
|
|
6
|
-
* `site.basePath: ""` in `dogsbay.config.yml`
|
|
7
|
-
*
|
|
4
|
+
* `basePath` is the path-under-host where docs are served. The default
|
|
5
|
+
* is `""` (host root, matching every other SSG); set
|
|
6
|
+
* `site.basePath: "/docs"` in `dogsbay.config.yml` for the legacy
|
|
7
|
+
* "docs nested under marketing site" shape, or `"/handbook"` (etc.)
|
|
8
|
+
* for any other prefix. See plans/default-basepath-root.md for the
|
|
9
|
+
* rationale behind the default flip in v0.3.
|
|
8
10
|
*
|
|
9
11
|
* Every emitter that builds URLs, file paths, or rewrites links
|
|
10
12
|
* reads from `AstroProjectOptions.basePath` and runs it through
|
|
@@ -22,8 +24,18 @@
|
|
|
22
24
|
*
|
|
23
25
|
* See plans/configurable-base-path.md.
|
|
24
26
|
*/
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Default `basePath` when no override is supplied.
|
|
29
|
+
*
|
|
30
|
+
* Changed in v0.3 from `"/docs"` to `""` (host root) so the default
|
|
31
|
+
* matches the plurality of doc-site deployments (GH Pages project
|
|
32
|
+
* sites, `docs.acme.com` subdomains, standalone wikis) and aligns
|
|
33
|
+
* with peer SSGs (Astro, Next, MkDocs, Docusaurus). The `cli`'s
|
|
34
|
+
* `site build` emits a one-shot migration warning when this default
|
|
35
|
+
* is hit so users from the `/docs` era can opt in to either value
|
|
36
|
+
* explicitly. See plans/default-basepath-root.md.
|
|
37
|
+
*/
|
|
38
|
+
export const DEFAULT_BASE_PATH = "";
|
|
27
39
|
/**
|
|
28
40
|
* Normalize a user-supplied `basePath` to canonical form.
|
|
29
41
|
*
|
|
@@ -33,7 +45,7 @@ export const DEFAULT_BASE_PATH = "/docs";
|
|
|
33
45
|
* non-empty prefix.
|
|
34
46
|
*
|
|
35
47
|
* Examples:
|
|
36
|
-
* - `undefined` → `"/docs"`
|
|
48
|
+
* - `undefined` → `""` (default in v0.3+; was `"/docs"` previously)
|
|
37
49
|
* - `""` → `""`
|
|
38
50
|
* - `"/"` → `""`
|
|
39
51
|
* - `"docs"` → `"/docs"`
|
package/dist/base-path.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-path.js","sourceRoot":"","sources":["../src/base-path.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"base-path.js","sourceRoot":"","sources":["../src/base-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,i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AC;IAC9B,OAAO,GAAG,OAAO,GAAG,QAAQ,EAAE,CAAC;AACjC,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,eAAe,CAC7B,OAA2B,EAC3B,QAA4B;IAO5B,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAClD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IACvD,OAAO;QACL,MAAM;QACN,OAAO;QACP,QAAQ,EAAE,kBAAkB;QAC5B,QAAQ,EAAE,aAAa,CAAC,OAAO,EAAE,kBAAkB,CAAC;KACrD,CAAC;AACJ,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gBAAgB,CAC9B,QAAgB,EAChB,OAA2B,EAC3B,IAAY;IAEZ,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,GAAG,IAAI,gBAAgB,CAAC,QAAQ,CAAC;QAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9D,IAAI,OAAO;QAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACjC,IAAI,IAAI;QAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAC1D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dogsbay/format-astro",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.46",
|
|
4
4
|
"description": "Astro format plugin for Dogsbay — export TreeNode[] to Astro component markup",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@dogsbay/types": "0.2.0-beta.
|
|
30
|
-
"@dogsbay/
|
|
31
|
-
"@dogsbay/
|
|
29
|
+
"@dogsbay/types": "0.2.0-beta.46",
|
|
30
|
+
"@dogsbay/ui": "0.2.0-beta.46",
|
|
31
|
+
"@dogsbay/format-dogsbay-md": "0.2.0-beta.46"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|