2022-01-23 16:21:01 -03:00

27 lines
593 B
JavaScript

function editThisPage(_, vm) {
var btn = document.getElementById('edit-this-page');
btn.onclick = function (event) {
event.preventDefault();
window.open(
'https://github.com/arthurfiorette/axios-cache-interceptor/tree/main/docs/' +
vm.route.file,
'_blank'
);
};
}
window.$docsify = {
name: '🚀 Axios Cache Interceptor',
loadSidebar: 'config/sidebar.md',
notFoundPage: 'config/404.md',
homepage: 'pages/homepage.md',
themeColor: 'hsl(275, 100%, 50%)',
subMaxLevel: 2,
search: 'auto',
plugins: [editThisPage, window.runkitDocsify]
};