From 558bc8474d2cf915e941c1f2e43c3cb715795a6e Mon Sep 17 00:00:00 2001 From: reuixiy Date: Sat, 2 Jul 2022 21:36:46 +0800 Subject: docs: fix notes of params.lib.host --- config-examples/en/config.toml | 7 +++---- config-examples/zh-cn/config.toml | 8 ++++---- config-examples/zh-tw/config.toml | 8 ++++---- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/config-examples/en/config.toml b/config-examples/en/config.toml index 132ab4c..a387e09 100644 --- a/config-examples/en/config.toml +++ b/config-examples/en/config.toml @@ -1418,11 +1418,10 @@ uglyURLs = false [params.lib] host = "https://cdn.jsdelivr.net" - # Note: leave it empty("") and set - # the path below to absolute - # path if you want to host + # Note: set it to root("/") and set + # the path below if you want to host # the lib directly from “local”. - # I.e. set path to "/js/lib.min.js", + # I.e. set path to "js/lib.min.js", # and put this file to your # /static/js/lib.min.js [params.lib.path] diff --git a/config-examples/zh-cn/config.toml b/config-examples/zh-cn/config.toml index 0a8cce7..f739e42 100644 --- a/config-examples/zh-cn/config.toml +++ b/config-examples/zh-cn/config.toml @@ -1387,10 +1387,10 @@ uglyURLs = false [params.lib] host = "https://cdn.jsdelivr.net" - # 说明:留空("")且将下方对应 path 设 - # 置为绝对路径,如果你想要直接从 - # 「本地」加载某个库的话。比如: - # 将 path 设置为 "/js/lib.min.js", + # 说明:设置为根("/")且将下方对应 path + # 设置,如果你想要直接从「本地」 + # 加载某个库的话。比如: + # 将 path 设置为 "js/lib.min.js", # 并将文件放到你的 /static/js/lib.min.js [params.lib.path] clipboard = "/npm/clipboard-polyfill@2.8.6/dist/clipboard-polyfill.min.js" diff --git a/config-examples/zh-tw/config.toml b/config-examples/zh-tw/config.toml index ed0150b..446786d 100644 --- a/config-examples/zh-tw/config.toml +++ b/config-examples/zh-tw/config.toml @@ -1387,10 +1387,10 @@ uglyURLs = false [params.lib] host = "https://cdn.jsdelivr.net" - # 說明:留空("")且將下方對應 path 設 - # 置為絕對路徑,如果你想要直接從 - # 「本地」加載某個庫的話。比如: - # 將 path 設置為 "/js/lib.min.js", + # 說明:設置為根("/")且將下方對應 path + # 設置,如果你想要直接從「本地」 + # 加載某個庫的話。比如: + # 將 path 設置為 "js/lib.min.js", # 並將文件放到你的 /static/js/lib.min.js [params.lib.path] clipboard = "/npm/clipboard-polyfill@2.8.6/dist/clipboard-polyfill.min.js" -- cgit v1.2.3