docsify icon indicating copy to clipboard operation
docsify copied to clipboard

Why can't my search jump? Is there an error in my configuration?

Open Monster-DP opened this issue 2 years ago • 1 comments

Why can't my search jump? Is there an error in my configuration? image

<!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>

Monster-DP avatar Apr 11 '23 02:04 Monster-DP

image Should you use `/`?

sy-records avatar Apr 11 '23 06:04 sy-records