@raycast/generate-docs
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -172,6 +172,10 @@ #!/usr/bin/env node | ||
const imageRegex = /!\[.*?\]\((.+?)\)/gm; | ||
const markdownImageRegex = /!\[.*?\]\((.+?)\)/gm; | ||
const htmlImageRegex = /<img src="(.+?)".*?>/gm; | ||
/** check that every images points to an image that's present in the assets */ | ||
function checkImages(filepath, content, assets) { | ||
const images = [...content.matchAll(imageRegex)].map((x) => ({ | ||
const images = [ | ||
...content.matchAll(markdownImageRegex), | ||
...content.matchAll(htmlImageRegex), | ||
].map((x) => ({ | ||
file: filepath, | ||
@@ -178,0 +182,0 @@ link: x[1], |
{ | ||
"name": "@raycast/generate-docs", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -40,13 +40,8 @@ const { is } = require("./utils"); | ||
.filter((y) => !is.ReactComponentType(y)) | ||
.map(({ id }) => idsMap.get(id)) | ||
.forEach((y) => { | ||
if (y.type === "reference") { | ||
y = idsMap.get(y.id); | ||
} else if (y.type === "reflection") { | ||
y = y.declaration; | ||
} else { | ||
value.push(y); | ||
if (!y) { | ||
console.log(y, x); | ||
} | ||
value.push(y); | ||
if (y.children) { | ||
@@ -53,0 +48,0 @@ y.children.forEach((z) => iterate(z, `${key}.`)); |
888
29313