File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 - ' 0.5'
1111 - ' 0.6'
1212- group : v1.x
13- baseurl : ' https://web.unified-design-system.orange.com/docs'
13+ baseurl : ' https://web.unified-design-system.orange.com/[brand]/ docs'
1414 description : ' Current major release. Last update was v1.2.0'
1515 versions :
1616 - ' 1.0'
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export function getStaticPaths() {
4242 ' list-group-item list-group-item-action py-sm' ,
4343 isCurrentVersion && ' d-flex justify-content-between align-items-center'
4444 ]}
45- href = { ` ${docsVersion .baseurl }/${version }/ ` }
45+ href = { ` ${docsVersion .baseurl . replaceAll ( ' [brand] ' , getConfig (). brand ) }/${version }/ ` }
4646 >
4747 { version }
4848 { isCurrentVersion && <span class = " tag tag-accent" >Latest</span >}
Original file line number Diff line number Diff line change 1+ ---
2+ import RedirectLayout from ' @layouts/RedirectLayout.astro'
3+ import { getConfig } from ' @libs/config'
4+ ---
5+
6+ <RedirectLayout path ={ ` /${getConfig ().brand }/docs/versions/ ` } />
You can’t perform that action at this time.
0 commit comments