An open API service indexing awesome lists of open source software.

https://github.com/up9cloud/docsify-vssue


https://github.com/up9cloud/docsify-vssue

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# docsify-vssue

## Usage

- Follow this [guide](https://vssue.js.org/guide/github.html#create-a-new-oauth-app) to setup
- Add script to your docsify site's `index.html`

```html



let routerMode
if (location.hostname === 'localhost') {
routerMode = 'hash'
} else {
routerMode = 'history' // or 'hash', up to you
}
window.$docsify = {
routerMode,
vssue: {
// see https://vssue.js.org/options/#component-props
title: options => {
let title = `${options.prefix}${location.origin}` // share one issue for localhost
if (location.hostname !== 'localhost') {
title += location.pathname
if (routerMode !== 'hash') {
title += location.hash
}
}
return title
},
options: {
prefix: '',
labels: ['commenting-system'],

owner: 'up9cloud', // your github account
repo: '-o-', // your public repo name
clientId: 'daafa315ac375fc04445', // github oauth client id
clientSecret: 'dcc3bd1c99de59abe3258ad5a5f084b045cecd6e', // github oauth client secret
}
}
}






```