From fa8c13957e8477baaa804a0e756018937f0be263 Mon Sep 17 00:00:00 2001 From: akiraueno Date: Thu, 3 Sep 2026 16:37:20 +0900 Subject: [PATCH] docs: split repository guidance by directory Keep the root overview concise and move template-specific listings and usage instructions into templates/README.md. --- README.md | 69 --------------------------------------------- examples/README.md | 2 +- templates/README.md | 61 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 70 deletions(-) create mode 100644 templates/README.md diff --git a/README.md b/README.md index 5475ab5..64276b6 100644 --- a/README.md +++ b/README.md @@ -13,72 +13,3 @@ for metatell. The plugin frontends are written in TypeScript and React. Each project is self-contained and has its own package manager configuration and README. This repository intentionally does not define a root package-manager workspace. - -## Plugin templates - -- [AdditionalToolbarButton](./templates/AdditionalToolbarButton): Add a toolbar - button. -- [CustomChatButton](./templates/CustomChatButton): Replace the chat button and - modal. -- [CustomEntryPanel](./templates/CustomEntryPanel): Replace the room entry - panel. -- [CustomExitScreen](./templates/CustomExitScreen): Replace the room exit - screen. -- [CustomLeaveButton](./templates/CustomLeaveButton): Replace the leave button - and modal. -- [CustomMegaphoneButton](./templates/CustomMegaphoneButton): Replace the - megaphone button. -- [CustomNearestUserProfile](./templates/CustomNearestUserProfile): Replace the - nearest-user profile UI. -- [CustomOverlay](./templates/CustomOverlay): Add a custom overlay. -- [CustomProfileModal](./templates/CustomProfileModal): Replace the profile - modal. -- [CustomTutorial](./templates/CustomTutorial): Add a custom tutorial. -- [CustomWebCameraButton](./templates/CustomWebCameraButton): Replace the web - camera button and popup. - -## Plugin examples - -- [password-collection-modal](./examples/password-collection-modal): A - `CustomOverlay` example for a password collection flow. -- [external-api-auth](./examples/external-api-auth): An end-to-end example that - calls an external API with a plugin API token and verifies it in a sample - backend. - -## Start from a template - -Clone this repository and copy the template that matches the plugin type you -want to implement. For example: - -```bash -git clone git@github.com:urth-inc/metatell-plugins.git -cp -R metatell-plugins/templates/AdditionalToolbarButton /path/to/your/plugin -cd /path/to/your/plugin -git init -git add . -git commit -m "Initial commit" -``` - -Each template README describes its interface and development workflow. - -## Develop a template locally - -Run commands from the selected template directory: - -```bash -cd templates/AdditionalToolbarButton -npm install -npm run dev -``` - -Template development servers use `http://localhost:3004` by default. Running -`npm run dev` or `npm run build` generates a new plugin version ID in -`.uuid.env`. - -Use the template's build command to create the upload artifact: - -```bash -npm run build -``` - -The generated plugin archive is written to `dist/plugin.zip`. diff --git a/examples/README.md b/examples/README.md index fc719e9..10dee7d 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,4 +1,4 @@ -# Plugin examples +# Examples This directory contains runnable reference implementations for metatell plugin use cases. diff --git a/templates/README.md b/templates/README.md new file mode 100644 index 0000000..503c527 --- /dev/null +++ b/templates/README.md @@ -0,0 +1,61 @@ +# Templates + +This directory contains copyable starter projects for each supported metatell +plugin type. + +- [AdditionalToolbarButton](./AdditionalToolbarButton/README.md): Add a toolbar + button. +- [CustomChatButton](./CustomChatButton/README.md): Replace the chat button and + modal. +- [CustomEntryPanel](./CustomEntryPanel/README.md): Replace the room entry panel. +- [CustomExitScreen](./CustomExitScreen/README.md): Replace the room exit screen. +- [CustomLeaveButton](./CustomLeaveButton/README.md): Replace the leave button + and modal. +- [CustomMegaphoneButton](./CustomMegaphoneButton/README.md): Replace the + megaphone button. +- [CustomNearestUserProfile](./CustomNearestUserProfile/README.md): Replace the + nearest-user profile UI. +- [CustomOverlay](./CustomOverlay/README.md): Add a custom overlay. +- [CustomProfileModal](./CustomProfileModal/README.md): Replace the profile + modal. +- [CustomTutorial](./CustomTutorial/README.md): Add a custom tutorial. +- [CustomWebCameraButton](./CustomWebCameraButton/README.md): Replace the web + camera button and popup. + +## Start from a template + +Clone this repository and copy the template that matches the plugin type you +want to implement. For example: + +```bash +git clone git@github.com:urth-inc/metatell-plugins.git +cp -R metatell-plugins/templates/AdditionalToolbarButton /path/to/your/plugin +cd /path/to/your/plugin +git init +git add . +git commit -m "Initial commit" +``` + +Each template README describes its interface and development workflow. + +## Develop locally + +Run commands from the selected template directory: + +```bash +cd templates/AdditionalToolbarButton +npm install +npm run dev +``` + +Template development servers use `http://localhost:3004` by default. Running +`npm run dev` or `npm run build` generates a new plugin version ID in +`.uuid.env`. + +Use the template's build command to create the upload artifact: + +```bash +npm run build +``` + +The generated plugin archive is written to `dist/plugin.zip`.