{"id":29275876,"url":"https://github.com/peterroe/docusaurus-plugin-usevue","last_synced_at":"2025-07-05T07:11:27.470Z","repository":{"id":43072856,"uuid":"415508159","full_name":"peterroe/docusaurus-plugin-usevue","owner":"peterroe","description":"A plugin of docusaurus that provide vue-loader !⚡","archived":false,"fork":false,"pushed_at":"2023-12-15T08:34:47.000Z","size":75,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-12-15T09:39:32.433Z","etag":null,"topics":["docusaurus","plugin","vue2"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterroe.png","metadata":{"files":{"readme":"readme.en.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-10T06:47:32.000Z","updated_at":"2023-08-30T08:37:32.000Z","dependencies_parsed_at":"2022-09-06T03:21:48.748Z","dependency_job_id":null,"html_url":"https://github.com/peterroe/docusaurus-plugin-usevue","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/peterroe/docusaurus-plugin-usevue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fdocusaurus-plugin-usevue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fdocusaurus-plugin-usevue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fdocusaurus-plugin-usevue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fdocusaurus-plugin-usevue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterroe","download_url":"https://codeload.github.com/peterroe/docusaurus-plugin-usevue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fdocusaurus-plugin-usevue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263699785,"owners_count":23497963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docusaurus","plugin","vue2"],"created_at":"2025-07-05T07:11:23.850Z","updated_at":"2025-07-05T07:11:27.465Z","avatar_url":"https://github.com/peterroe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![asdfdsf](https://img.shields.io/badge/docusaurus-\u003e=2.0.0--beta.6-success)\n![asdfdsf](https://img.shields.io/badge/Vue-2.6.14-brightgreen)\n\n🧐 [Docusaurus](https://www.docusaurus.cn/docs/) is a **static-site generator**. It builds a single-page application with a fast client-side navigation, leveraging the full power of **React** to make your site interactive. It provides out-of-the-box **documentation features**, but can be used to create **any kind of site** (personal website, product, blog, marketing landing pages, etc).\n\nIn terms of components, docusaurus only supports native rendering **react components**\n\n**This plugin will help you render Vue components you write in docusaurus**\n\n[中文](https://github.com/peterroe/docusaurus-plugin-usevue/blob/master/readme.md)｜ English\n\n# ⚡install\n\nTwo **NPM packages** need to be installed:\n\n```shell\nyarn add docusaurus-plugin-usevue use-vue-component\n```\n\nAnother plugin address:\n\n[https://github.com/peterroe/use-vue-component](https://github.com/peterroe/use-vue-component)\n\n# Import\n\nIn the **docusaurus.config.js** file, add the following configuration:\n\n```js\nmodule.exports = {\n  // ...\n    plugins: [\n        //...\n        'docusaurus-plugin-usevue'\n    ],\n};\n```\n\n# Usage\n\nFor example, there are the following scenarios:\n\n**directory structure:**\n\n```shell\n+-- docs\n|   +-- test.vue\n|   +-- intro.mdx\n```\n\n**test.vue** content：\n\n```vue\n\u003ctemplate\u003e\n    \u003cdiv class=\"red\"\u003e\n        hello world, this is {{name}}\n    \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nexport default {\n    data() {\n        return {\n            name: 'peter'\n        }\n    }\n}\n\u003c/script\u003e\n\n\u003cstyle\u003e\n    .red {\n        color: red\n    }\n\u003c/style\u003e\n```\n\n**intro.mdx** content:\n\n```js\n---\nsidebar_position: 1\n---\n\n## Getting Started\n\nimport {uvc} from 'use-vue-component'  //Import conversion package\nimport test from './text.vue'  //Import Vue components\n\nexport const HelloWorld = uvc(test)  //transform\n\n\u003cHelloWorld/\u003e\n```\n\n# Render results\n\n![image](https://img-blog.csdnimg.cn/a08bd8b839f44074a3f8b60da8af6e59.png)\n\n# Update the log\n\n* :tada: V1.0.0 official version - support vue2","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterroe%2Fdocusaurus-plugin-usevue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterroe%2Fdocusaurus-plugin-usevue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterroe%2Fdocusaurus-plugin-usevue/lists"}