
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
A examples page which powered by kokk.
Create a beautiful doc for your project.
The design is inspired by Ant Design! I like the elegant design to display a demo.
The name is inspired by Kokkoku 💃
yarn add kokk --save
CDN: UNPKG | jsDelivr (available as window.kokk
)
import Kokk as a component in a .vue file.
Then mkdir a directory of your markdown files, the path defaults to /docs/
.
The populate a index.md in the directory, which is your main markdown file.
The populate a list of example markdown files in the directory. And implement the doc-list
prop. The order of the prop is the display order.
The write the live demo as a slot in <kokk></kokk>
, use demo-${index}
as the slot name. The index is the same as the order of doc-list
.
Write <!-- DEMO -->
on where you want them to be on the index markdown file. Demos will be rendered here.
e.g.
## Install
<!-- DEMO -->
## Options
You can use following html comment marks in each example markdown file to set costom title and description of it.
<!-- title-start -->
title: Half star
<!-- title-stop -->
<!-- desc-start -->
desc: Support select half star.
<!-- desc-stop -->
Property | Description | type | Default |
---|---|---|---|
title-classname | The custom classname of title. The title defaults to the value of h1 title in the index markdown file. | string | '' |
demo-title | The title of the demo part. | string | 'Examples' |
root | The path of the markdown file. | string | '/docs/' |
index-doc | The main markdown file. | string | 'index.md' |
doc-list | Array of the example markdown files. | array | ['demo.md'] |
highlight | Whether to highlight code blocks, you can supply a function to customize this, use prismjs to highlight code by default. | boolean / function | true |
The live demo which you want to display, make sure to use demo-${index}
as the slot name, and use the same index as the order of the makedown file in docList.
Here is a simple example:
<template>
<div id="app">
<kokk :doc-list="['demo.md']">
<star-rate slot="demo-0" :value="4"/>
</kokk>
</div>
</template>
<script>
import kokk from '../src'
import StarRate from 'vue-cute-rate'
export default {
components: {
kokk,
StarRate
}
}
</script>
MIT © luyilin
minemine.cc · GitHub @luyilin · Twitter @luyilin12
FAQs
A beautiful way to create a documentation from markdown, and insert a vue component into the doc as well.
The npm package kokk receives a total of 129 weekly downloads. As such, kokk popularity was classified as not popular.
We found that kokk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.