@@ -16,7 +16,7 @@ import {zrokDocsPluginConfig} from "./_remotes/zrok/website/docusaurus-plugin-zr
1616
1717// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
1818const frontdoor = `./_remotes/frontdoor` ;
19- const onprem = `./_remotes/onprem ` ;
19+ const selfhosted = `./_remotes/selfhosted ` ;
2020const openziti = `./_remotes/openziti` ;
2121const zrokRoot = `./_remotes/zrok/website` ;
2222const zlan = `./_remotes/zlan` ;
@@ -36,7 +36,7 @@ const BUILD_FLAGS = {
3636 NONE : 0x0 ,
3737 OPENZITI : 0x1 ,
3838 FRONTDOOR : 0x2 ,
39- ONPREM : 0x4 ,
39+ SELFHOSTED : 0x4 ,
4040 ZROK : 0x8 ,
4141 ZLAN : 0x10 ,
4242} ;
@@ -82,13 +82,13 @@ const prod: PublishConfig = {
8282const cfg : PublishConfig = process . env . DOCUSAURUS_PUBLISH_ENV === 'prod' ? prod : staging ;
8383
8484const REMARK_MAPPINGS = [
85- { from : '@onpremdocs ' , to : `${ docsBase } onprem ` } ,
85+ { from : '@selfhosteddocs ' , to : `${ docsBase } selfhosted ` } ,
8686 { from : '@openzitidocs' , to : `${ docsBase } openziti` } ,
8787 { from : '@zrokdocs' , to : `${ docsBase } zrok` } ,
8888 { from : '@static' , to : docsBase } ,
8989 { from : '/openziti/' , to : `${ docsBase } /openziti/` } ,
9090 { from : '/frontdoor/' , to : `${ docsBase } /frontdoor/` } ,
91- { from : '/onprem /' , to : `${ docsBase } /onprem /` } ,
91+ { from : '/selfhosted /' , to : `${ docsBase } /selfhosted /` } ,
9292 { from : '/zrok/' , to : `${ docsBase } /zrok/` } ,
9393 { from : '/zlan/' , to : `${ docsBase } /zlan/` } ,
9494] ;
@@ -199,7 +199,7 @@ const config: Config = {
199199 staticDirectories : [
200200 'static' ,
201201 '_remotes/frontdoor/docusaurus/static/' ,
202- '_remotes/onprem /docusaurus/static/' ,
202+ '_remotes/selfhosted /docusaurus/static/' ,
203203 '_remotes/openziti/docusaurus/static/' ,
204204 '_remotes/zlan/docusaurus/static/' ,
205205 `${ zrokRoot } /static/` ,
@@ -232,7 +232,7 @@ const config: Config = {
232232 alias : {
233233 '@openziti' : path . resolve ( __dirname , `${ openziti } /docusaurus` ) ,
234234 '@frontdoor' : path . resolve ( __dirname , `${ frontdoor } /docusaurus` ) ,
235- '@onprem ' : path . resolve ( __dirname , `${ onprem } /docusaurus` ) ,
235+ '@selfhosted ' : path . resolve ( __dirname , `${ selfhosted } /docusaurus` ) ,
236236 '@zlan' : path . resolve ( __dirname , `${ zlan } /docusaurus` ) ,
237237 '@zrok' : path . resolve ( __dirname , `${ zrokRoot } ` ) ,
238238 '@zrokroot' : path . resolve ( __dirname , `${ zrokRoot } ` ) ,
@@ -254,17 +254,18 @@ const config: Config = {
254254
255255 [ '@docusaurus/plugin-content-pages' , { path : 'src/pages' , routeBasePath : '/' } ] ,
256256 build ( BUILD_FLAGS . FRONTDOOR ) && [ '@docusaurus/plugin-content-pages' , { id : `frontdoor-pages` , path : `${ frontdoor } /docusaurus/src/pages` , routeBasePath : '/frontdoor' } ] ,
257- build ( BUILD_FLAGS . ONPREM ) && [ '@docusaurus/plugin-content-pages' , { id : `onprem -pages` , path : `${ onprem } /docusaurus/src/pages` , routeBasePath : '/onprem ' } ] ,
257+ build ( BUILD_FLAGS . SELFHOSTED ) && [ '@docusaurus/plugin-content-pages' , { id : `selfhosted -pages` , path : `${ selfhosted } /docusaurus/src/pages` , routeBasePath : '/selfhosted ' } ] ,
258258 build ( BUILD_FLAGS . OPENZITI ) && [ '@docusaurus/plugin-content-pages' , { id : `openziti-pages` , path : `${ openziti } /docusaurus/src/pages` , routeBasePath : '/openziti' } ] ,
259259 build ( BUILD_FLAGS . ZLAN ) && [ '@docusaurus/plugin-content-pages' , { id : `zlan-pages` , path : `${ zlan } /docusaurus/src/pages` , routeBasePath : '/zlan' } ] ,
260260 build ( BUILD_FLAGS . ZROK ) && [ '@docusaurus/plugin-content-pages' , { id : `zrok-pages` , path : `${ zrokRoot } /src/pages` , routeBasePath : '/zrok' } ] ,
261- build ( BUILD_FLAGS . ONPREM ) && [
261+ build ( BUILD_FLAGS . ZROK ) && extendDocsPlugins ( zrokDocsPluginConfig ( zrokRoot , REMARK_MAPPINGS , routeBase ( 'zrok' ) ) ) ,
262+ build ( BUILD_FLAGS . SELFHOSTED ) && [
262263 '@docusaurus/plugin-content-docs' ,
263264 {
264- id : 'onprem' , // do not change - affects algolia search
265- path : `${ onprem } /docusaurus/docs` ,
266- routeBasePath : routeBase ( 'onprem ' ) ,
267- sidebarPath : `${ onprem } /docusaurus/sidebars.ts` ,
265+ id : 'selfhosted' ,
266+ path : `${ selfhosted } /docusaurus/docs` ,
267+ routeBasePath : routeBase ( 'selfhosted ' ) ,
268+ sidebarPath : `${ selfhosted } /docusaurus/sidebars.ts` ,
268269 includeCurrentVersion : true ,
269270 beforeDefaultRemarkPlugins : [
270271 remarkGithubAdmonitionsToDirectives ,
@@ -345,27 +346,14 @@ const config: Config = {
345346 blogSidebarTitle : 'All posts' ,
346347 } ,
347348 ] ,
348- build ( BUILD_FLAGS . ZROK ) && extendDocsPlugins ( zrokDocsPluginConfig ( zrokRoot , REMARK_MAPPINGS , routeBase ( 'zrok' ) ) ) ,
349- // Fallback redirects for JSX pages with hardcoded /docs/ paths (from upstream repos)
350- isVercel && [
351- '@docusaurus/plugin-client-redirects' ,
352- {
353- createRedirects ( existingPath : string ) {
354- // Redirect /docs/X → /X for all doc paths
355- return existingPath . match ( / ^ \/ ( o n p r e m | f r o n t d o o r | o p e n z i t i | z r o k | z l a n ) / )
356- ? [ `/docs${ existingPath } ` ]
357- : undefined ;
358- } ,
359- } ,
360- ] ,
361349 [ '@docusaurus/plugin-sitemap' , { changefreq : "daily" , priority : 0.8 } ] ,
362350 [ pluginHotjar , { } ] ,
363351 [ '@docusaurus/plugin-google-tag-manager' , { id : `openziti-gtm` , containerId : cfg . google . tag } ] ,
364352 ] . filter ( Boolean ) ,
365353 themeConfig : {
366354 docs : {
367355 sidebar : {
368- hideable : false ,
356+ hideable : false ,
369357 autoCollapseCategories : true
370358 }
371359 } ,
@@ -386,7 +374,7 @@ const config: Config = {
386374 label : 'Docs' ,
387375 position : 'left' ,
388376 items : [
389- { to : '/onprem /intro' , label : 'On-Prem ' } ,
377+ { to : '/selfhosted /intro' , label : 'Self-Hosted ' } ,
390378 { to : '/frontdoor/intro' , label : 'Frontdoor' } ,
391379 { to : '/openziti/learn/introduction' , label : 'OpenZiti' } ,
392380 ] ,
0 commit comments