Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拡張プラグインのURLを省略記述できる仕組みを追加 #1574

Closed
kujirahand opened this issue Nov 24, 2023 · 4 comments
Closed

Comments

@kujirahand
Copy link
Owner

kujirahand commented Nov 24, 2023

以下、一番簡単なサンプルなんですが、長いですよね。

# 拡張プラグインの取り込み --- (*1)
!『https://cdn.jsdelivr.net/npm/nadesiko3-music@1.0.2/nadesiko3-music.js』を取り込む

# --- 音楽を再生 --- (*2)
「音階5 ド」をMML演奏。

リンクする拡張子を考慮して下記のような省略記法を用意する。

!『拡張プラグイン:music.js』を取り込む # jsdelivrにリンク
!『拡張プラグイン:music.js@1.0.2』を取り込む # jsdelivrにリンク
!『拡張プラグイン:hello.nako3』を取り込む # なでしこ貯蔵庫にリンク
@kujirahand
Copy link
Owner Author

マニュアルに追記する

@kujirahand kujirahand changed the title 外部プラグインのURLが長いので、拡張プラグインのURIならjsdelivrに自動リンクする 拡張プラグインのURLを省略記述できる仕組みを追加 Nov 26, 2023
@kujirahand
Copy link
Owner Author

kujirahand commented Jan 1, 2024

そして、貯蔵庫にも簡単にリンクしたい!ということで、以下のように記述できるようにします!

!『貯蔵庫:ojyo-sama.nako3』を取り込む
!『https://n3s.nadesi.com/plain/ojyo-sama.nako3』を取り込む

@kujirahand kujirahand reopened this Jan 1, 2024
@kujirahand
Copy link
Owner Author

以下が動くようにする

!「貯蔵庫:nako3hello.nako3」を取り込む。
挨拶テスト。

@kujirahand
Copy link
Owner Author

「"貯蔵庫:xxx"を取り込む」を実装してリリースした。マニュアルにも追記した。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant