File tree Expand file tree Collapse file tree
src/Elastic.Documentation.Site Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ import('./web-components/AppliesToPopover')
4141import ( './web-components/FullPageSearch/FullPageSearchComponent' )
4242import ( './web-components/Diagnostics/DiagnosticsComponent' )
4343
44+ if ( config . buildType === 'isolated' ) {
45+ import ( './isolated' )
46+ } else if ( config . buildType === 'codex' ) {
47+ import ( './codex' )
48+ }
49+
4450const { getOS } = new UAParser ( )
4551
4652// eslint-disable-next-line @typescript-eslint/no-explicit-any
Original file line number Diff line number Diff line change 2727 }
2828 <script >window .__DOCS_CONFIG__ = @(new HtmlString (Model .FrontendConfigJson )); </script >
2929 <script src =" @Model.Static(" main.js " )" defer ></script >
30- @switch (Model.BuildType)
31- {
32- case BuildType .Isolated :
33- <script src =" @Model.Static(" isolated.js " )" defer ></script >
34- break ;
35- case BuildType .Codex :
36- <script src =" @Model.Static(" codex.js " )" defer ></script >
37- break ;
38- }
3930 @if (Model .CanonicalBaseUrl is not null )
4031 {
4132 <link rel =" canonical" href =" @Model.CanonicalUrl" />
Original file line number Diff line number Diff line change 4545 "codex-css" : {
4646 "distDir" : " _static" ,
4747 "source" : " Assets/codex.css"
48- },
49- "isolated-js" : {
50- "distDir" : " _static" ,
51- "source" : " Assets/isolated.ts"
52- },
53- "codex-js" : {
54- "distDir" : " _static" ,
55- "source" : " Assets/codex.ts"
5648 }
5749 },
5850 "alias" : {
You can’t perform that action at this time.
0 commit comments