Skip to content
Snippets Groups Projects
Commit c14cb6c3 authored by Ilya Zhukov's avatar Ilya Zhukov
Browse files

Update docusaurus.config.ts

parent dfd3c995
No related branches found
No related tags found
No related merge requests found
Pipeline #222294 passed
...@@ -3,7 +3,7 @@ import type {Config} from '@docusaurus/types'; ...@@ -3,7 +3,7 @@ import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic'; import type * as Preset from '@docusaurus/preset-classic';
const branchName = process.env.CI_COMMIT_REF_NAME || 'main'; // Default to 'main' if undefined const branchName = process.env.CI_COMMIT_REF_NAME || 'main'; // Default to 'main' if undefined
const branchSuffix = branchName.match(/^instances\/(.*)$/); const branchSuffix = branchName.match(/^instances\/(.*)$/)[1];
const url = branchName === 'main' ? '/intro2sc-handson' :`/intro2sc-handson/${branchSuffix}/`; // Adjust as needed const url = branchName === 'main' ? '/intro2sc-handson' :`/intro2sc-handson/${branchSuffix}/`; // Adjust as needed
...@@ -16,7 +16,6 @@ const config: Config = { ...@@ -16,7 +16,6 @@ const config: Config = {
url: 'https://your-docusaurus-site.example.com', url: 'https://your-docusaurus-site.example.com',
// Set the /<baseUrl>/ pathname under which your site is served // Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/' // For GitHub pages deployment, it is often '/<projectName>/'
//baseUrl: '/intro2sc-handson/2024_11',
baseUrl: url, baseUrl: url,
// GitHub pages deployment config. // GitHub pages deployment config.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment