Skip to content

Commit

Permalink
fix(docs): fix prebuild documentation
Browse files Browse the repository at this point in the history
ref: MANAGER-14622

Signed-off-by: Alex Boungnaseng <[email protected]>
  • Loading branch information
aboungnaseng-ovhcloud committed Nov 14, 2024
1 parent fba9556 commit d716b2b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
Empty file added docs/.vitepress/.nojekyll
Empty file.
4 changes: 2 additions & 2 deletions docs/cli/prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
const pick = require('lodash/pick');

// Get all workspaces defined in the `package.json` file.
const { workspaces } = require('./../../package.json');
const { workspaces } = require('../../package.json');

// Keep the bare minimum entries from all package.json files.
const entries = ['name', 'version', 'description', 'repository'];
Expand All @@ -19,7 +19,7 @@ const packages = getMonorepoPackages(directoryPath).map(
);

// Group packages by their corresponding workspaces.
const groupedWorkspaces = workspaces.map((workspace) => {
const groupedWorkspaces = workspaces.packages.map((workspace) => {
const packagesList = packages.filter((pkg) => {
// Remove the pattern `/*` from the workspace name.
if (
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"docs:build": "yarn docs:build:manager-react-components && node cli/prebuild.js && vitepress build --base /manager/",
"docs:build:manager-react-components": "cd ../packages/manager-react-components && yarn build:storybook && rm -rf ../../docs/docs/public/storybook-static && mkdir -p ../../docs/docs/public/storybook-static && cp -r ./storybook-static/* ../../docs/docs/public/storybook-static",
"docs:deploy": "yarn run docs:build && gh-pages -d .vitepress/dist -m \"docs: update documentation [skip ci]\"",
"docs:deploy": "yarn run docs:build && touch .vitepress/dist/storybook-static/.nojekyll && touch .vitepress/dist/.nojekyll && gh-pages -d .vitepress/dist --dotfiles -m \"docs: update documentation [skip ci]\"",
"docs:dev": "node cli/prebuild.js && vitepress dev",
"docs:preview": "vitepress preview"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/manager-react-components/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: [
'../src/**/*.stories.@(js|jsx|ts|tsx|mdx)',
Expand All @@ -10,7 +11,7 @@ const config: StorybookConfig = {
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-styling',
'@storybook/addon-doc',
'@storybook/addon-docs',
],
framework: {
name: '@storybook/react-vite',
Expand Down
12 changes: 6 additions & 6 deletions packages/manager-react-components/.storybook/ovh.theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ export default create({
base: 'light',

// Brand
colorPrimary: '#004FD6',
colorSecondary: '#004FD6',
// colorPrimary: '#004FD6',
// colorSecondary: '#004FD6',

// UI
appBg: '#FF3358',
// appBg: '#FF3358',
appBorderColor: '#004FD6',
appBorderRadius: 0,
appContentBg: '#ffffff',
Expand All @@ -23,9 +23,9 @@ export default create({
textInverseColor: 'rgba(255,255,255,0.9)',

// Toolbar default and active colors
barBg: '#f3fcff',
barSelectedColor: '#004FD6',
barTextColor: '#202124',
// barBg: '#f3fcff',
// barSelectedColor: '#004FD6',
// barTextColor: '#202124',

// Form colors
inputBg: '#ffffff',
Expand Down

0 comments on commit d716b2b

Please sign in to comment.