Skip to content

Commit

Permalink
chore(website): upgrade docusaurus to v3
Browse files Browse the repository at this point in the history
Closes #62
  • Loading branch information
alirezamirian committed Jan 26, 2025
1 parent 4a0fe78 commit cb429fb
Show file tree
Hide file tree
Showing 20 changed files with 16,118 additions and 12,144 deletions.
8 changes: 4 additions & 4 deletions packages/jui/src/Theme/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export interface IconResolver {
resolve(iconPath: string): Promise<SvgString>;
}

type ThemeProperties = Record<string, ThemePropertyRawValue>;
type ThemeProperties = {
[key: string]: ThemePropertyRawValue | ThemeProperties;
};

export type ThemeJson = {
name: string;
Expand All @@ -35,9 +37,7 @@ export type ThemeJson = {

colors?: Record<string, string>;
iconColorsOnSelection?: Record<string, string>;
ui: { "*": ThemeProperties } & {
[key: string]: ThemeProperties | ThemePropertyRawValue;
};
ui: { "*": ThemeProperties } & ThemeProperties;
};

export type KnownThemePropertyPath =
Expand Down
2 changes: 1 addition & 1 deletion packages/website/docs/components/Balloon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ A tiny wrapper around [Link](./Link) component, to be used for actions in Balloo

:::info Note
How balloon notifications are stacked and positioned in bottom right, and an imperative API for triggering notifications
is outside the scope of what this component is about. Use [BalloonManager](#baloonmanager) and
is outside the scope of what this component is about. Use [BalloonManager](#balloonmanager) and
[useBalloonManager](#useballoonmanager) for that.
:::

Expand Down
3 changes: 2 additions & 1 deletion packages/website/docs/components/Menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,12 @@ to place a menu in an overlay that's positioned based on a pointer event, which
```tsx live noPadding
function ContextMenuExample() {
const [origin, setOrigin] = React.useState(null);
const defaultValue = "\nRight click somewhere to open the context menu.\n";
return (
<>
<MonacoEditor
height={200}
defaultValue="\nRight click somewhere to open the context menu.\n"
defaultValue={defaultValue}
options={{ contextmenu: false }}
onMount={(monacoEditor) => {
monacoEditor.focus();
Expand Down
4 changes: 2 additions & 2 deletions packages/website/docs/components/SpeedSearch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ original implementation.
- Highlighting matches in items
- Showing search query as an overlay at the top left, with visual feedback about search result.
- [Low level](#low-level-speed-search-api) API for implementing speed search for any UI component.
- [Higher level API](#collcetion-speed-search-API) for integrating speed search with Collection components, such as `List`, `Tree`, etc.
- [Higher level API](#collection-speed-search-api) for integrating speed search with Collection components, such as `List`, `Tree`, etc.

## Integration with other components

Normally, you don't need to use speed search hooks and components directly. Collection component like `List` or `Tree`
come with a version with built-in support for speed search.

See [SpeedSearchList](./list#speedsearchlist), [SpeedSearchTree](./Tree#speedsearchtree).
See [SpeedSearchList](./List#speedsearchlist), [SpeedSearchTree](./Tree#speedsearchtree).

## Advanced use

Expand Down
2 changes: 1 addition & 1 deletion packages/website/docs/components/ToolWindows.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ render(<App />);
### MultiViewToolWindow

Built on top of [DefaultToolWindow](#defaulttoolwindow), extends it to support multiple views within the same tool
window, switched by either [Tabs](./tabs#tool-window-theme) or a dropdown.
window, switched by either [Tabs](./Tabs#tool-window-theme) or a dropdown.

:::warning tab grouping
Grouping tabs in a dropdown is not implemented at the moment, and passing `true` to `groupTabs` will throw a warning.
Expand Down
2 changes: 1 addition & 1 deletion packages/website/docs/guides/ActionSystem.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ An ActionGroup is a special type of action with a list of children actions. An a

### Default action group

A default implementation of action group is available, which when performed, opens a [Popup](../components/popup),
A default implementation of action group is available, which when performed, opens a [Popup](../components/Popup),
presenting the children actions in a [SpeedSearchMenu](../components/Menu#speedsearchmenu). The default action
group requires [PopupManager](../components/Popup#popupmanager), for opening the popup.

Expand Down
183 changes: 0 additions & 183 deletions packages/website/docusaurus.config.js

This file was deleted.

Loading

0 comments on commit cb429fb

Please sign in to comment.