mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
47 lines
1.2 KiB
JavaScript
47 lines
1.2 KiB
JavaScript
|
const {
|
|||
|
enrich,
|
|||
|
mapObject,
|
|||
|
modifyContent,
|
|||
|
getRepoData,
|
|||
|
getUrls,
|
|||
|
} = require('./shared');
|
|||
|
|
|||
|
const DOCS = mapObject(enrich)({
|
|||
|
'unleash-proxy': {
|
|||
|
sidebarName: 'Unleash Proxy',
|
|||
|
slugName: 'unleash-proxy',
|
|||
|
},
|
|||
|
'unleash-edge': {
|
|||
|
sidebarName: 'Unleash Edge',
|
|||
|
slugName: 'unleash-edge',
|
|||
|
},
|
|||
|
});
|
|||
|
|
|||
|
const getAdmonitions = (data) => {
|
|||
|
const admonitions = {
|
|||
|
'unleash-proxy': `:::tip
|
|||
|
|
|||
|
Looking for how to run the Unleash proxy? Check out the [_how to run the Unleash proxy_ guide](../how-to/how-to-run-the-unleash-proxy.mdx)!
|
|||
|
|
|||
|
:::`, 'unleash-edge': `:::caution 🏗️ Under construction!
|
|||
|
Unleash Edge is currently considered very experimental. Use it at your own risk.
|
|||
|
|
|||
|
|
|||
|
Share your comments in [🗣️ GitHub Discussions](https://github.com/Unleash/unleash/discussions) or the [💬 Unleash community Slack](https://slack.unleash.run/).
|
|||
|
:::`
|
|||
|
}
|
|||
|
|
|||
|
return [admonitions[data.slugName]]
|
|||
|
};
|
|||
|
|
|||
|
const modifyContent2 = modifyContent({
|
|||
|
getRepoDataFn: getRepoData(DOCS),
|
|||
|
urlPath: '/reference/',
|
|||
|
getAdditionalAdmonitions: getAdmonitions,
|
|||
|
});
|
|||
|
|
|||
|
module.exports.docs = {
|
|||
|
urls: getUrls(DOCS),
|
|||
|
modifyContent: modifyContent2,
|
|||
|
};
|