From 39fb6be9d76ffd5673d26e85a911e08d5c06f0b8 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Tue, 28 Mar 2023 17:54:30 +0800 Subject: [PATCH] ph-bookshelf update --- .../enhanced-frontend/test-code-highlight.md | 39 +++++++++++-------- ph-bookshelf | 2 +- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/%root/test-collection/enhanced-frontend/test-code-highlight.md b/%root/test-collection/enhanced-frontend/test-code-highlight.md index db6a8b7..3377f54 100644 --- a/%root/test-collection/enhanced-frontend/test-code-highlight.md +++ b/%root/test-collection/enhanced-frontend/test-code-highlight.md @@ -1,3 +1,8 @@ +--- +configurations: + prism.plugins: "treeview" +--- + 代码纯手打,没有经过 IDE 查错,如发现错误还请立即 issue ## 创建资源文件索引对象 @@ -18,14 +23,14 @@ ResourcesPackage pack = new ResourcesPackage(Test.class, "assets"); 第二个参数是在项目文件为根目录的路径下,你的资源文件的位置。 一般来说,在IDE等项目管理环境下,一个项目的源文件路径如下: -```tree -src - ╠═main - ║ ╟─java - ║ ╙─resources - ╚═test - ╟─java - ╙─resources +```treeview +src/ +|-- main/ +| |-- java/ +| └── resources/ +└── test/ + |-- java/ + └── resources/ ``` 这个路径指的就是在{.lang-url}`src/main/resources`目录下的{.lang-url}`assets`文件夹。 @@ -47,15 +52,15 @@ public ResDir getResDir (String path) throws IOException; 例如如果一个项目的 resources结构如下: -```tree -resources - ╠═assets - ║ ╟─propertes.io - ║ ╚═lang - ║ ╚═default.lang - ╚═idn - ╟─ios - ╙─windows +```treeview +resources/ +|-- assets/ +| |-- propertes.io +| └── lang/ +| └── default.lang +└── idn/ + |-- ios/ + └── windows/ ``` 若要获取`default.lang`文件,则使用以下方法: diff --git a/ph-bookshelf b/ph-bookshelf index 1e56cbb..4d442fe 160000 --- a/ph-bookshelf +++ b/ph-bookshelf @@ -1 +1 @@ -Subproject commit 1e56cbb6342caa770b2df6dcc84d66b6bee0b06f +Subproject commit 4d442fee379788ea285667bf0b5ad8a7d1c4735a