Skip to content

daidi/docsify-valine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docsify-valine

A fast, simple & powerful comment system for docsify.

docsify-valine will allow you to use a fast, simple & powerful comment system valine on your docsify pages.

Demo

we provide you a simple demo page here , so you can see how it works.

the code refers to demo folder which you can find in the GitHub repo.

🚧 Install

Get APP_ID and APP_Key

Click here to register or login in leancloud. (for Chinese user , click 这里 )

Click here Create new application in Leancloud, and you will get APP ID/APP Key. (for Chinese user , click 这里 )

JS structure

Please include the following JS code in the appropriate location on the article page that requires the comment box:

<body>
    ...
    <script>
        window.$docsify = {
          // docsify-valine (defaults)
          Valine: {
              appId: '<APP_ID>',
              appKey: '<APP_Key>',
              // docPath: 'hash', //default to `hash` ,or you can choose `full`
          }
        }
    </script>
    ...
    <script src='//unpkg.com/valine/dist/Valine.min.js'></script>
    <script src="//unpkg.com/docsify-valine/dist/docsify-valine.min.js"></script>
</body>

See the Config for more details.

About

🗯️A fast, simple & powerful comment system for docsify.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published