1.0.0 • Published 4 years ago
docsify-envdot v1.0.0
docsify-envdot
A docsify plugin that load different parameters according to different environments and use {{}} or cunstom
Installation
<!-- Latest v2.x.x -->
<script src="https://cdn.jsdelivr.net/gh/shijf/docsify-envdot/docsify-envdot.min.js"></script>
Use
Env can be customized as follows:
window.$docsify = {
env: {
current: 'pro', // Here you fill in the specified environment
interpolate: { // Here you fill in the interpolate if you want
startSymbol: '{{',
endSymbol: '}}'
},
// eg: 'test'
test: {
a: 'test a'
},
// production
pro: {
a: 'pro a',
b: 'pro b',
c: 'pro c'
}
},
}
Options
- current (required)
- interpolate
Example
- code
- show
1.0.0
4 years ago