From 722fbfd7eefe48ebce280ae137a71f9973d00578 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 22 Nov 2023 15:00:49 +0800 Subject: [PATCH] chore: transfer ownship --- README.md | 41 +++++++++++++++++++++++++---------------- package.json | 8 ++++---- 2 files changed, 29 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index d8e43b2..1e56948 100644 --- a/README.md +++ b/README.md @@ -20,23 +20,31 @@ npm install remark-docusaurus --save-dev ## Usage -```cjs -// docusaurus.config.cjs -module.exports = async () => { - const { autoTabs, docCardList } = await import('remark-docusaurus'); - - return { - presets: [ - [ - 'classic', - { - docs: { - beforeDefaultRemarkPlugins: [autoTabs, docCardList] - } +```mjs +// docusaurus.config.mjs +import { + autoTabs, + docCardList, + draftSAdmonition, + svgToObject +} from 'remark-docusaurus'; + +export default { + presets: [ + [ + 'classic', + { + docs: { + beforeDefaultRemarkPlugins: [ + autoTabs, + docCardList, + draftSAdmonition, + svgToObject + ] } - ] + } ] - }; + ] }; ``` @@ -96,10 +104,11 @@ import TabItem from '@theme/TabItem'; ## Tips -This plugin only compatible with `docusaurus@2/remark@^12/mdx@1` and `docusaurus@3/remark@^13+/mdx@3+`. +This plugin only compatible with `docusaurus@3/remark@^13+/mdx@3+`. ## Related - [markdown-code-block-meta](https://github.com/nice-move/markdown-code-block-meta) +- [rehype-extended-table](https://github.com/nice-move/rehype-extended-table) - [remark-code-example](https://github.com/nice-move/remark-code-example) - [remark-kroki](https://github.com/nice-move/remark-kroki) diff --git a/package.json b/package.json index 01b9ffe..dc80ee8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "remark-docusaurus", - "version": "0.4.0", + "version": "0.4.1", "description": "Remark plugin for docusaurus features", "license": "MIT", "author": { @@ -20,13 +20,13 @@ "site-generator", "tabs" ], - "homepage": "https://github.com/nice-move/remark-docusaurus", + "homepage": "https://github.com/show-docs/remark-docusaurus", "repository": { "type": "git", - "url": "https://github.com/nice-move/remark-docusaurus.git" + "url": "https://github.com/show-docs/remark-docusaurus.git" }, "bugs": { - "url": "https://github.com/nice-move/remark-docusaurus/issues" + "url": "https://github.com/show-docs/remark-docusaurus/issues" }, "main": "lib/index.mjs", "files": [