Skip to content

Commit

Permalink
fix: add documentation search namespace and expiration time
Browse files Browse the repository at this point in the history
  • Loading branch information
sf-v committed Jun 23, 2023
1 parent 7278fae commit ccd284a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions docs/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,18 @@

search: {
hideOtherSidebarContent: true,
noData: 'No Results. :(',
placeholder: 'Search documentation'
placeholder: 'Search documentation',

// Expiration time: 1 day.
maxAge: 86400000,

/**
* Avoid search index collision between multiple websites
* under the same domain.
*/

namespace: 'best',
noData: 'No Results. :('
},

/*
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><meta charset="utf-8"><title>Best - Docs</title><meta http-equiv="x-ua-compatible"content="ie=edge"><meta name="viewport"content="width=device-width"><link rel="stylesheet"href="_assets/styles.css"><link rel="icon"href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22><text y=%2230%22 font-size=%2230%22>📚</text></svg>"><style>#main h1{font-size:3em}.content{align-items:center}.content{bottom:auto}.markdown-section{flex:1 1 0;max-width:800px;padding:0 15px 100px}.nav{width:var(--toc-width,250px);align-self:flex-start;flex:0 0 auto}.page_toc{overflow-y:auto;height:90%;padding:0 15px 0 5px}.page_toc ul a:hover{border-bottom:none!important;text-decoration:none!important}.page_toc li{padding-left:5px}.sidebar{background:#fafafa;overflow-y:scroll}.sidebar .sidebar-nav{padding:0 0 40px 15px}.sidebar-nav li{cursor:pointer}.app-name-link img{margin:20px 5px 20px;width:30%}.app-sub-sidebar li:before{content:"•"}.edit-page-button{display:inline-block;float:right;margin:10px 0}@media only screen and (max-width:1300px){.edit-page-button{float:none}}</style><div id="app"></div><script>(()=>{const e="https://github.com/salesforce/best";window.$docsify={alias:{"/.*/_sidebar.md":"/_sidebar.md"},auto2top:!0,loadSidebar:!0,logo:"_assets/logo.svg",name:"Best - Documentation",relativePath:!0,repo:e,search:{hideOtherSidebarContent:!0,noData:"No Results. :(",placeholder:"Search documentation"},subMaxLevel:1,toc:{headings:"h2, h3",scope:".markdown-section",title:"Table of Contents"},plugins:[(a,o)=>{a.beforeEach((a=>`${(a=>`\n<div class="edit-page-button">\n 📝 <a href="${e}/edit/main/docs/${a.route.file} "target="_blank" rel="noopener">Edit this page</a>\n</div>`)(o)}\n\n${a}`)),a.afterEach((function(e,a){a(e.replace(/<img/gi,'<img loading="lazy" decoding="async"').replace(/<iframe/gi,'<iframe loading="lazy"'))}))}]}})()</script><script src="_assets/scripts.js"></script>
<!doctype html><html lang="en"><meta charset="utf-8"><title>Best - Docs</title><meta http-equiv="x-ua-compatible"content="ie=edge"><meta name="viewport"content="width=device-width"><link rel="stylesheet"href="_assets/styles.css"><link rel="icon"href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22><text y=%2230%22 font-size=%2230%22>📚</text></svg>"><style>#main h1{font-size:3em}.content{align-items:center}.content{bottom:auto}.markdown-section{flex:1 1 0;max-width:800px;padding:0 15px 100px}.nav{width:var(--toc-width,250px);align-self:flex-start;flex:0 0 auto}.page_toc{overflow-y:auto;height:90%;padding:0 15px 0 5px}.page_toc ul a:hover{border-bottom:none!important;text-decoration:none!important}.page_toc li{padding-left:5px}.sidebar{background:#fafafa;overflow-y:scroll}.sidebar .sidebar-nav{padding:0 0 40px 15px}.sidebar-nav li{cursor:pointer}.app-name-link img{margin:20px 5px 20px;width:30%}.app-sub-sidebar li:before{content:"•"}.edit-page-button{display:inline-block;float:right;margin:10px 0}@media only screen and (max-width:1300px){.edit-page-button{float:none}}</style><div id="app"></div><script>(()=>{const e="https://github.com/salesforce/best";window.$docsify={alias:{"/.*/_sidebar.md":"/_sidebar.md"},auto2top:!0,loadSidebar:!0,logo:"_assets/logo.svg",name:"Best - Documentation",relativePath:!0,repo:e,search:{hideOtherSidebarContent:!0,placeholder:"Search documentation",maxAge:864e5,namespace:"best",noData:"No Results. :("},subMaxLevel:1,toc:{headings:"h2, h3",scope:".markdown-section",title:"Table of Contents"},plugins:[(a,t)=>{a.beforeEach((a=>`${(a=>`\n<div class="edit-page-button">\n 📝 <a href="${e}/edit/main/docs/${a.route.file} "target="_blank" rel="noopener">Edit this page</a>\n</div>`)(t)}\n\n${a}`)),a.afterEach((function(e,a){a(e.replace(/<img/gi,'<img loading="lazy" decoding="async"').replace(/<iframe/gi,'<iframe loading="lazy"'))}))}]}})()</script><script src="_assets/scripts.js"></script>

0 comments on commit ccd284a

Please sign in to comment.