Skip to content

Commit

Permalink
Adds search functionality to https://gp2040-ce.info/ (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelsin authored Sep 15, 2023
1 parent f31223e commit e471ff6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ window.$docsify = {
name: 'GP2040-CE',
repo: 'https://github.com/OpenStickCommunity/GP2040-CE',
homepage: 'https://raw.githubusercontent.com/OpenStickCommunity/GP2040-CE/main/README.md',
search: {
maxAge: 86400000, // Expiration time, the default one day
placeholder: 'Type to search',
depth: 6,
hideOtherSidebarContent: false,
},
logo: 'assets/images/gp2040-ce-logo.png',
loadSidebar: '_sidebar.md',
auto2top: true,
Expand Down
5 changes: 3 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/vue-sticky-element.min.js"></script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>

<!-- docsify-themeable (latest v0.x.x) -->
<script src="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/components/prism-c.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/components/prism-cpp.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/components/prism-ini.min.js"></script>
<!-- Font Awesome -->
<script src="//cdn.jsdelivr.net/gh/zignis/docsify-fa/script.min.js"></script>

<script src="app.js"></script>
<!-- Docsify Search -->
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.min.js"></script>

</body>
</html>
4 changes: 4 additions & 0 deletions docs/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ hr {
margin-bottom: 4px;
}

.sidebar .search .clear-button {
margin: auto;
}

/*************/
/* Downloads */
/*************/
Expand Down

0 comments on commit e471ff6

Please sign in to comment.