docsify
docsify copied to clipboard
Why can't my search jump? Is there an error in my configuration?
Why can't my search jump? Is there an error in my configuration?

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
// 加载 _sidebar.md
loadSidebar: true,
subMaxLevel: 6,
search: {
// paths: ['/','/url1','/url2','/url2'],
paths: [], // or 'auto'
placeholder: '搜索',
depth: 3,
}, // 默认值
}
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
</body>
</html>
Should you use `/`?