diff --git a/.prettierrc b/.prettierrc index adc6cbc..1d5daee 100644 --- a/.prettierrc +++ b/.prettierrc @@ -3,7 +3,7 @@ "singleQuote": true, "trailingComma": "all", "printWidth": 100, - "plugins": ["prettier-plugin-svelte"], + "plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"], "svelteSortOrder": "options-scripts-styles-markup", "svelteBracketNewLine": true, "svelteIndentScriptAndStyle": true, diff --git a/.vscode/settings.json b/.vscode/settings.json index e18140a..886822e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -24,5 +24,6 @@ "problems.sortOrder": "severity", "todo-tree.tree.scanMode": "workspace only", "javascript.preferences.importModuleSpecifier": "relative", - "typescript.preferences.importModuleSpecifier": "relative" + "typescript.preferences.importModuleSpecifier": "relative", + "files.associations": { ".env*": "dotenv", "*.svx": "mdx", "*.md": "mdx" } } diff --git a/README.md b/README.md index 7c249cd..8931eec 100644 --- a/README.md +++ b/README.md @@ -39,13 +39,13 @@ In no particular order, here are some of the things I'm confident will be added ```bash # with npm -npm install svelte-podcast +npm install svelte-podcast@latest # with yarn -yarn add svelte-podcast +yarn add svelte-podcast@latest # with pnpm -pnpm add svelte-podcast +pnpm add svelte-podcast@latest ``` You must add one instance of the `` to your app. This should be places as high as possible, ideally in your root `+layout,svelte` file. @@ -62,129 +62,10 @@ You must add one instance of the `` to your app. This should be p #### Basic usage -You will likely be interacting with svelte-podcast via one of the stores it exports. - -```html - -``` - -#### `audio` store - -##### `subscribe` - -```html - -``` - -##### methods - -###### play / pause - -`audio.play()` to play the currently loaded audio, or `audio.play("toggle")` to toggle play/pause. - -`audio.pause()` to pause the currently loaded audio, or `audio.pause("toggle")` to toggle play/pause. - -###### mute / unmute - -`audio.mute()` to mute the audio for the `