mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-28 11:46:02 +08:00
Adds search to documentation (#280)
This commit is contained in:
parent
f918b0b066
commit
56ad60cef7
4 changed files with 39 additions and 1 deletions
|
@ -148,7 +148,7 @@ const subscriptionPreferencesTemplate = compileTemplate<SubscriptionPreferencesA
|
|||
<p>Choose which notifications you would like to continue to receive.</p>
|
||||
{{#if showUpdatedMessage}}
|
||||
<div class="alert-success">
|
||||
Preferenced Saved Successfully!
|
||||
Your preferences have been updated!
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#each subscriptions}}
|
||||
|
|
|
@ -8,4 +8,14 @@ module.exports = function(app) {
|
|||
changeOrigin: true,
|
||||
}),
|
||||
)
|
||||
app.use(
|
||||
'/unsubscribe',
|
||||
createProxyMiddleware({
|
||||
pathRewrite: (path) => {
|
||||
return path.replace('/unsubscribe', '/api/unsubscribe')
|
||||
},
|
||||
target: process.env.REACT_APP_PROXY_URL,
|
||||
changeOrigin: true,
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -82,6 +82,26 @@ const config = {
|
|||
darkTheme: darkCodeTheme,
|
||||
additionalLanguages: ['swift', 'json', 'kotlin'],
|
||||
},
|
||||
algolia: {
|
||||
// The application ID provided by Algolia
|
||||
appId: '8ZOD0Z0X8I',
|
||||
|
||||
// Public API key: it is safe to commit it
|
||||
apiKey: '0a521d036d0eeb2ac5c8bafbcfe5b830',
|
||||
|
||||
indexName: 'parcelvoy',
|
||||
|
||||
// Optional: see doc section below
|
||||
contextualSearch: true,
|
||||
|
||||
// Optional: Algolia search parameters
|
||||
searchParameters: {},
|
||||
|
||||
// Optional: path for search page that enabled by default (`false` to disable it)
|
||||
searchPagePath: 'search',
|
||||
|
||||
//... other Algolia params
|
||||
},
|
||||
}),
|
||||
};
|
||||
|
||||
|
|
|
@ -85,6 +85,14 @@ h1, h2, h3, h4, h5, h6 {
|
|||
border-bottom: 1px solid var(--color-grey);
|
||||
}
|
||||
|
||||
.navbar__inner .DocSearch-Button-Keys {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.DocSearch.DocSearch-Button {
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.theme-doc-sidebar-container {
|
||||
border-right-color: var(--color-grey-soft) !important;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue