描述
*このプラグインはグーテンベルグの見出しブロックから目次を作成します
*管理画面の設定に「ROOTS-index」が追加されます
*ショートコード[roots_index]を埋め込むことで目次を表示できます
*アコーディオン機能を実装するための最小限のCSSとJavaScriptを使用することができます
*アコーディオンメニューを最初から開いた状態にすることができます
*目次ラベルの文字列を変更することができます
*目次の色を変更することが出来ます
*目次のborderの角丸サイズを変更することができます
*This plugin creates a table of contents from Gutenberg heading blocks
*”ROOTS-index” will be added to the settings of the admin screen
*You can display the table of contents by embedding the shortcode [roots_index]
*You can apply your own theme
*You can use minimal CSS and JavaScript to implement the accordion function
*You can set the accordion menu to be open from the beginning
*You can change the string of the table of contents label
*You can change the color of the table of contents
*You can change the rounded corner size of the border of the table of contents
Short Description
*このプラグインはグーテンベルグの見出しブロックから目次を作成します
*管理画面の設定に「ROOTS-index」が追加されます
*ショートコード[roots_index]を埋め込むことで目次を表示できます
*This plugin creates a table of contents from Gutenberg heading blocks
*”ROOTS-index” will be added to the settings of the admin screen
*You can display the table of contents by embedding the shortcode [roots_index]
Arbitrary section 1
安装
- WP 管理パネルから、「プラグイン」->「新規追加」をクリックします。
- ブラウザの入力ボックスに「ROOTS-index」と入力します。
- 「ROOTS-index」プラグインを選択し、「インストール」をクリックします。
-
プラグインを有効化します。
-
From the WP admin panel, click “Plugins” -> “Add new”.
- In the browser input box, type “ROOTS-index”.
- Select the “ROOTS-index” plugin and click “Install”.
- Activate the plugin.
常见问题
-
プラグインアセットをローカルでビルドするにはどうすればよいですか?
-
このプラグインは、最終的な JavaScript および CSS アセットをビルドするために webpack と npm を使用します。
ソースファイルは
src/
ディレクトリにあります。コンパイルされたアセットは
assets/js/
とassets/css/
にあります。プラグインアセットをローカルでビルドするには:
-
依存関係をインストールします:
npm i’- アセットをウォッチします:
npm run watch’
これは編集されたファイルを保存すると自動でコンパイルされます
- アセットをウォッチします:
または、GitHub でソースコードとビルド手順を参照することもできます:
https://github.com/14-chan/ROOTS-index -
-
How do I build the plugin assets locally?
-
This plugin uses webpack and npm to build the final JavaScript and CSS assets.
Source files are located in the
src/
directory.
Compiled assets are located inassets/js/
andassets/css/
.To build the plugin assets locally:
-
Install dependencies:
npm i -
Watch assets:
npm run watchThis will be automatically compiled when you save the edited file.
Alternatively, you can find the source code and build instructions on GitHub:
https://github.com/14-chan/ROOTS-index -
评价
此插件暂无评价。