Comments (2)
I delved into Koishi's documentation and the market code and found that they are in the form of SVGs within Vue files. This leads to two possible solutions:
- Copy the icons from the market into the documentation and then register these components in the
enhanceApp
function. - Keep the icons in the market project. I'll write a component that imports Vue components from the market project and then displays the appropriate icons based on parameters.
Currently, I think option 2 would be more suitable. What do you think?
我深入研究了 Koishi 的文档和市场代码,发现它们在 Vue 文件中采用 SVG 的形式。这导致两种可能的解决方案:
- 将市场上的图标复制到文档中,然后将这些组件注册到
enhanceApp
函数中。 - 保留市场项目中的图标。我将编写一个组件,从市场项目中导入 Vue 组件,然后根据参数显示适当的图标。
目前,我认为方案2更合适。你怎么认为?
from docs.
from docs.
Related Issues (20)
- 添加基础使用说明 HOT 4
- 有些地方少点东西加上
- 文档搜索跳转问题
- Shortcut 已过时,应当替换为 Alias API HOT 2
- 提供「国际化的服务开发」相关文档
- 微信公众号插件文档中URL描述错误 HOT 1
- Crowdin 文档中关于项目结构的部分未配合现有实践
- Add section for unpublishing a plugin
- 注明插件对 server 服务的依赖
- 自定义服务部分文档使用了过时的 API
- 搜索框文本颜色辨识度低 HOT 1
- 移动端 container 包含 code block 显示异常
- 开发文档添加 token 或 otp 发版教程
- 去除跳转锚点中的吧唧 HOT 1
- 亮色模式下紫色吧唧配黑色字体不可读 HOT 1
- Bug:配置构型页面异常(?)
- 文档搜索功能没有根据文档语言对搜索结果分类 HOT 1
- de-DE页面的的左上角图标点击后会跳转到koishi.chat的问题
- 希望搜索能够根据当前的语言 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.