Skip to content

Commit

Permalink
Upgrade Docusaurus to version 3 (#49)
Browse files Browse the repository at this point in the history
* Cleaned up source for reducing dependencies

* Upgraded Docusaurus and dependencies

* Remove trailingSlash

* Fixed broken anchors

* Removed old prism-react-renderer
  • Loading branch information
merll authored Jan 26, 2024
1 parent 5b9bfa1 commit 2368cef
Show file tree
Hide file tree
Showing 21 changed files with 9,010 additions and 17,469 deletions.
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

11 changes: 0 additions & 11 deletions README copy.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/apps/ingress-nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Teams will be be automatically given a git repository in Gitea named `team-$team

## Integrations

Otomi integrated NGINX Ingress Controller into an advanced [ingress architecture](/product/architecture#ingress--sso).
Otomi integrated NGINX Ingress Controller into an advanced [ingress architecture](/product/architecture#advanced-ingress-architecture-as-its-core).

## Instructions

Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/activation.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ alias chrome-insecure='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ C
We strongly advise to not use the default `otomi-admin` account after activation and to not change the password. Store it somewhere safe and only use it in case absolutely required.
:::

[Create a new user account in Keycloak](/docs/apps/keycloak#step-2-create-a-user-in-keycloak) and add the new user to the `otomi-admin` and `team-admin` group.
[Create a new user account in Keycloak](/docs/apps/keycloak#create-a-user-in-keycloak) and add the new user to the `otomi-admin` and `team-admin` group.

## Step 5 (Optional): Add the URL of the Kubernetes API

Expand Down
6 changes: 1 addition & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ module.exports = {
backgroundColor: "#0d47a1",
textColor: "#ffd700",
},
prism: {
theme: require("prism-react-renderer/themes/github"),
darkTheme: require("prism-react-renderer/themes/dracula"),
},
theme: "github",
image: "img/otomi-logo.svg",
algolia: {
appId: "U3MTGFO19C",
Expand Down Expand Up @@ -197,7 +194,6 @@ module.exports = {
],
},
},
trailingSlash: true,
presets: [
[
isBootstrapPreset
Expand Down
26,226 changes: 8,994 additions & 17,232 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 12 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,20 @@
]
},
"dependencies": {
"@docusaurus/core": "^2.2.0",
"@docusaurus/plugin-client-redirects": "^2.2.0",
"@docusaurus/preset-classic": "^2.2.0",
"@material-ui/icons": "^4.11.2",
"@mdx-js/react": "^1.6.21",
"clsx": "^1.1.1",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-material-ui-carousel": "^3.1.1",
"@docusaurus/core": "^3.1.0",
"@docusaurus/plugin-client-redirects": "^3.1.0",
"@docusaurus/preset-classic": "^3.1.0",
"@mdx-js/react": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"upgrade": "^1.1.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.2.0",
"@tsconfig/docusaurus": "^1.0.4",
"cspell": "^5.18.0",
"husky": "^7.0.4",
"typescript": "^4.5.2"
"@docusaurus/module-type-aliases": "^3.1.0",
"@docusaurus/tsconfig": "^3.0.0-beta.0",
"cspell": "^8.3.2",
"husky": "^8.0.3",
"typescript": "^5.3.3"
},
"name": "redkubes-github-io",
"private": true,
Expand All @@ -52,5 +48,5 @@
"write-heading-ids": "docusaurus write-heading-ids",
"write-translations": "docusaurus write-translations"
},
"version": "0.15.3"
"version": "0.16.0"
}
10 changes: 0 additions & 10 deletions src/components/Carousel.module.css

This file was deleted.

36 changes: 0 additions & 36 deletions src/components/Carousel.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions src/data/carousel.js

This file was deleted.

20 changes: 0 additions & 20 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,13 @@
* LICENSE file in the root directory of this source tree.
*/

// import React from 'react';
// import {Redirect} from '@docusaurus/router';
// const Home = () => {
// return <Redirect to="/docs" />;
// };

import React from "react";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import useBaseUrl from "@docusaurus/useBaseUrl";
import Layout from "@theme/Layout";
import clsx from "clsx";
import styles from "./index.module.css";
import apps from "../data/apps";

function Home() {
const context = useDocusaurusContext();
Expand Down Expand Up @@ -70,19 +63,6 @@ function Home() {
/>
</div>
</div>
{/* <div className={clsx(styles.announcement, styles.announcementBanner)}>
<div className={styles.announcementInner}>
<h1>FEATURE OVERVIEW</h1> <h4>Install Otomi and deploy your app in just a couple of minutes</h4>
</div>
</div>
<div
id="carousel"
className={clsx(styles.announcement, styles.announcementDark)}
>
<div className={styles.announcementInner}>
<Carousel items={carouselItems} />
</div>
</div> */}
</main>
</Layout>
);
Expand Down
Binary file removed static/carousel/item-1.png
Binary file not shown.
Binary file removed static/carousel/item-2.png
Binary file not shown.
Binary file removed static/carousel/item-3.png
Binary file not shown.
Binary file removed static/carousel/item-4.png
Binary file not shown.
Binary file removed static/carousel/item-5.png
Binary file not shown.
Binary file removed static/carousel/item-6.png
Binary file not shown.
Binary file removed static/carousel/item-7.png
Binary file not shown.
Binary file removed static/carousel/item-8.png
Binary file not shown.
108 changes: 0 additions & 108 deletions tem..txt

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@tsconfig/docusaurus/tsconfig.json",
"extends": "@docusaurus/tsconfig",
"compilerOptions": {
"baseUrl": "."
}
Expand Down

0 comments on commit 2368cef

Please sign in to comment.