@levino/shipyard-docs 0.7.5 → 0.7.6-rc-20260316173717

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.
@@ -8,7 +8,7 @@ import Layout from './Layout.astro'
8
8
  export async function getStaticPaths() {
9
9
  // Get all configured docs collections
10
10
  const allPaths = await Promise.all(
11
- Object.entries(docsConfigs).map(async ([routeBasePath, config]) => {
11
+ Object.entries(docsConfigs).map(async ([basePath, config]) => {
12
12
  const docs = await getCollection(config.collectionName as CollectionKey)
13
13
 
14
14
  const getParams = (slug: string) => {
@@ -26,9 +26,9 @@ export async function getStaticPaths() {
26
26
  }
27
27
  }
28
28
 
29
- return docs.map((entry) => ({
30
- params: getParams(entry.id),
31
- props: { entry, routeBasePath },
29
+ return docs.map((doc) => ({
30
+ params: getParams(doc.id),
31
+ props: { entry: doc, routeBasePath: basePath },
32
32
  }))
33
33
  }),
34
34
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levino/shipyard-docs",
3
- "version": "0.7.5",
3
+ "version": "0.7.6-rc-20260316173717",
4
4
  "description": "Documentation plugin for shipyard with automatic sidebar, pagination, and git metadata",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -27,7 +27,7 @@
27
27
  "effect": "^3.12.5",
28
28
  "ramda": "^0.31",
29
29
  "unist-util-visit": "^5.0.0",
30
- "@levino/shipyard-base": "^0.7.5"
30
+ "@levino/shipyard-base": "0.7.6-rc-20260316173717"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@tailwindcss/typography": "^0.5.16",