@farming-labs/astro 0.0.60 → 0.0.62

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.
@@ -1,4 +1,4 @@
1
- import { buildApiReferenceHtmlDocument, resolveApiReferenceConfig, } from "@farming-labs/docs/server";
1
+ import { buildApiReferenceHtmlDocumentAsync, resolveApiReferenceConfig, } from "@farming-labs/docs/server";
2
2
  export function createAstroApiReference(config) {
3
3
  return async () => {
4
4
  const apiReference = resolveApiReferenceConfig(config.apiReference);
@@ -6,7 +6,7 @@ export function createAstroApiReference(config) {
6
6
  return new Response("Not Found", { status: 404 });
7
7
  }
8
8
  const rootDir = typeof config.rootDir === "string" ? config.rootDir : process.cwd();
9
- const html = buildApiReferenceHtmlDocument(config, {
9
+ const html = await buildApiReferenceHtmlDocumentAsync(config, {
10
10
  framework: "astro",
11
11
  rootDir,
12
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"api-reference.js","sourceRoot":"","sources":["../src/api-reference.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AAGnC,MAAM,UAAU,uBAAuB,CAAC,MAAwC;IAC9E,OAAO,KAAK,IAAI,EAAE;QAChB,MAAM,YAAY,GAAG,yBAAyB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACpE,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC1B,OAAO,IAAI,QAAQ,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;QACpF,MAAM,IAAI,GAAG,6BAA6B,CAAC,MAAM,EAAE;YACjD,SAAS,EAAE,OAAO;YAClB,OAAO;SACR,CAAC,CAAC;QAEH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE;YACxB,OAAO,EAAE;gBACP,cAAc,EAAE,0BAA0B;aAC3C;SACF,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"api-reference.js","sourceRoot":"","sources":["../src/api-reference.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AAGnC,MAAM,UAAU,uBAAuB,CAAC,MAAwC;IAC9E,OAAO,KAAK,IAAI,EAAE;QAChB,MAAM,YAAY,GAAG,yBAAyB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACpE,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC1B,OAAO,IAAI,QAAQ,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;QACpF,MAAM,IAAI,GAAG,MAAM,kCAAkC,CAAC,MAAM,EAAE;YAC5D,SAAS,EAAE,OAAO;YAClB,OAAO;SACR,CAAC,CAAC;QAEH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE;YACxB,OAAO,EAAE;gBACP,cAAc,EAAE,0BAA0B;aAC3C;SACF,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/astro",
3
- "version": "0.0.60",
3
+ "version": "0.0.62",
4
4
  "description": "Astro adapter for @farming-labs/docs — content loading and navigation utilities",
5
5
  "keywords": [
6
6
  "astro",
@@ -50,7 +50,7 @@
50
50
  "devDependencies": {
51
51
  "@types/node": "^22.10.0",
52
52
  "typescript": "^5.9.3",
53
- "@farming-labs/docs": "0.0.60"
53
+ "@farming-labs/docs": "0.0.62"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@farming-labs/docs": "*"