mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	- Upgrades to latest Docusaurus - Upgrades our OpenAPI plugin to latest too - Removes old, unneeded dependencies - Our configs and sidebar files now use TypeScript [Preview link](https://unleash-docs-git-alvin-docusaurus-v3-unleash-team.vercel.app/) --------- Co-authored-by: melindafekete <melinda.fekete@getunleash.io> Co-authored-by: Christopher Kolstad <chriswk@getunleash.io>
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import {
 | |
|     enrich,
 | |
|     mapObject,
 | |
|     modifyContent,
 | |
|     getRepoData,
 | |
|     getUrls,
 | |
| } from './shared';
 | |
| 
 | |
| const DOCS = mapObject(enrich)({
 | |
|     'unleash-proxy': {
 | |
|         sidebarName: 'Unleash Proxy',
 | |
|         slugName: 'unleash-proxy',
 | |
|     },
 | |
|     'unleash-edge': {
 | |
|         sidebarName: 'Unleash Edge',
 | |
|         slugName: 'unleash-edge',
 | |
|         subPages: {
 | |
|             'docs/concepts.md': {
 | |
|                 sidebarName: 'Concepts',
 | |
|                 slugName: 'concepts',
 | |
|             },
 | |
|             'docs/deploying.md': {
 | |
|                 sidebarName: 'Deploying',
 | |
|                 slugName: 'deploying',
 | |
|             },
 | |
|         },
 | |
|     },
 | |
| });
 | |
| 
 | |
| 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': ``,
 | |
|     };
 | |
| 
 | |
|     return [admonitions[data.slugName]];
 | |
| };
 | |
| 
 | |
| const modifyContent2 = modifyContent({
 | |
|     getRepoDataFn: getRepoData(DOCS),
 | |
|     urlPath: '/reference/',
 | |
|     getAdditionalAdmonitions: getAdmonitions,
 | |
| });
 | |
| 
 | |
| export const docs = {
 | |
|     urls: getUrls(DOCS),
 | |
|     modifyContent: modifyContent2,
 | |
| };
 |