mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	In preparation for Edge's stabilization, this PR removes the "under construction" admonition that was placed on the edge docs.
		
			
				
	
	
		
			43 lines
		
	
	
		
			917 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			917 B
		
	
	
	
		
			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': ``,
 | 
						|
    };
 | 
						|
 | 
						|
    return [admonitions[data.slugName]];
 | 
						|
};
 | 
						|
 | 
						|
const modifyContent2 = modifyContent({
 | 
						|
    getRepoDataFn: getRepoData(DOCS),
 | 
						|
    urlPath: '/reference/',
 | 
						|
    getAdditionalAdmonitions: getAdmonitions,
 | 
						|
});
 | 
						|
 | 
						|
module.exports.docs = {
 | 
						|
    urls: getUrls(DOCS),
 | 
						|
    modifyContent: modifyContent2,
 | 
						|
};
 |