@linkdesk/plugin-docs 0.1.44 → 0.1.45
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.
|
@@ -13,9 +13,9 @@ The `README.md` in the plugin root directory is displayed in the **"Details" tab
|
|
|
13
13
|
| State | Where the README comes from | Relative-path media (assets shipped in the package) | https absolute-URL media |
|
|
14
14
|
|:--|:--|:--:|:--:|
|
|
15
15
|
| **Installed state** (the user downloaded and installed it, or it shipped with the shell, and then views the details) | Reads **the copy you packaged into the zip** | ✅ Shown | ✅ Shown |
|
|
16
|
-
| **Marketplace preview state** (not installed; the list/details read the remote README of the catalog entry) | Reads the **remote readmeUrl** |
|
|
16
|
+
| **Marketplace preview state** (not installed; the list/details read the remote README of the catalog entry) | Reads the **remote readmeUrl** | ✅ Shown (relative paths are resolved against the readmeUrl's own directory into same-directory https links; excepted when readmeUrl is not https or has no directory segment) | ✅ Shown |
|
|
17
17
|
|
|
18
|
-
> **What this means:**
|
|
18
|
+
> **What this means:** relative-path media and https absolute-URL media are **both shown** in either state — provided the readmeUrl and the in-package assets line up relatively (readmeUrl at the repo root, assets placed relative to the repo root). The only thing to avoid is an asset that exists **only inside the package but not in the repository**: the preview state has no way to fetch it.
|
|
19
19
|
|
|
20
20
|
---
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
| 态 | README 从哪来 | 相对路径媒体(随包资源) | https 绝对 URL 媒体 |
|
|
14
14
|
|:--|:--|:--:|:--:|
|
|
15
15
|
| **已装态**(用户下载安装 / 随壳发货后看详情) | 读**你打包进 zip 的那份** | ✅ 显示 | ✅ 显示 |
|
|
16
|
-
| **市场预览态**(未安装,列表/详情读目录条目的远程 README) | 读**远端 readmeUrl** |
|
|
16
|
+
| **市场预览态**(未安装,列表/详情读目录条目的远程 README) | 读**远端 readmeUrl** | ✅ 显示(相对路径按 readmeUrl 所在目录解析成同目录 https 直链;readmeUrl 非 https 或无目录段时例外) | ✅ 显示 |
|
|
17
17
|
|
|
18
|
-
> **含义:**
|
|
18
|
+
> **含义:** 相对路径媒体与 https 绝对 URL 媒体在两种态下**都显示**——前提是 readmeUrl 与包内资产的相对位置一致(readmeUrl 在仓库根、资产按仓库根相对摆放)。唯一要避免的是「**只在包内、仓库里没有**」的资产:预览态无从取到它。
|
|
19
19
|
|
|
20
20
|
---
|
|
21
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkdesk/plugin-docs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
4
4
|
"description": "LinkDesk 插件作者文档(离线包)——作者面文档树的发布产物(英文 `docs/03-plugin-authoring` 在包根、中文 `docs/03-插件制造` 在 `zh/`):从零学会做一个插件(导览 / 三档动线 / 区域地图 / 组件速查 / 主题 / API 入口)。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|