Firstly, make sure that the loadSidebar config is enabled,and the Markdown file _sidebar.md is provided in the root directory.
Then insert script into document just like the official plugins's usage
reference docsify-search
<script>window.$docsify={// Complete configuration parameterssearch: {// Location in sidebar (default: prepended as first child)// Optionally specify insertAfter or insertBefore (not both)insertAfter: ".app-name",// CSS selector in .sidebar scopeinsertBefore: ".sidebar-nav",// CSS selector in .sidebar scopemaxAge: 86400000,// Expiration time, the default one daypaths: [],// or 'auto'placeholder: "Type to search",// Localizationplaceholder: {"/zh-cn/": "搜索","/": "Type to search",},noData: "No Results!",// LocalizationnoData: {"/zh-cn/": "找不到结果","/": "No Results",},foundNumText: {"/zh-cn/": (num)=>`找到 ${num} 个结果`,"/": (num)=>`Found ${num} results`,},// Headline depth, 1 - 6depth: 2,hideOtherSidebarContent: true,// Deprecated as of v5// To avoid search index collision// between multiple websites under the same domainnamespace: "website-1",// Use different indexes for path prefixes (namespaces).// NOTE: Only works in 'auto' mode.//// When initialiazing an index, we look for the first path from the sidebar.// If it matches the prefix from the list, we switch to the corresponding index.pathNamespaces: ["/zh-cn","/ru-ru","/ru-ru/v1"],// You can provide a regexp to match prefixes. In this case,// the matching substring will be used to identify the indexpathNamespaces: /^(\/(zh-cn|ru-ru))?(\/(v1|v2))?/,// 'sidebar' | 'modal', Default is sidebar, modalModal will use pop-up modemode: "sidebar",},};</script><scriptsrc="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script><!-- plugins --><scriptsrc="https://unpkg.com/@remloyal/docsify-plugins@latest/dist/flexsearch/docsify-flexsearch.min.js"></script><linkrel="stylesheet"
href="https://unpkg.com/@remloyal/docsify-plugins@latest/dist/flexsearch/docsify-flexsearch.min.css"
/>reference docsify-sidebar-collapse
<script>window.$docsify={loadSidebar: true,alias: {'/.*/_sidebar.md': '/_sidebar.md',},subMaxLevel: 3,
...
sidebarDisplayLevel: 1,// set sidebar display level}</script><scriptsrc="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script><!-- plugins --><scriptsrc="https://unpkg.com/@remloyal/docsify-plugins@latest/dist/sidebar-collapse/docsify-sidebar-collapse.min.js"></script>