Skip to content

Commit

Permalink
Merge pull request #62 from kube-green/upgrade-docusaurus
Browse files Browse the repository at this point in the history
upgrade docusaurus
  • Loading branch information
davidebianchi authored Jan 21, 2024
2 parents 858c1d5 + 17c1ef2 commit a0fd039
Show file tree
Hide file tree
Showing 7 changed files with 9,661 additions and 18,753 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
Expand All @@ -19,7 +18,8 @@
},
"plugins": [
"react",
"@typescript-eslint"
"@typescript-eslint",
"import"
],
"ignorePatterns": [
"*.css",
Expand All @@ -36,6 +36,9 @@
".tsx"
]
}
},
"react": {
"version": "detect"
}
},
"rules": {
Expand Down
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_position: 3

## Prerequisite

*kube-green* support all Kubernetes cluster versions >= 1.19 <= 1.28 and OpenShift Container Platform v4.
*kube-green* support all Kubernetes cluster versions >= 1.19 &lt;= 1.28 and OpenShift Container Platform v4.

Supported architectures are: amd64, arm64.

Expand Down
5 changes: 3 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const {themes} = require('prism-react-renderer');
const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;

const LOGO_IMAGE = 'img/logo.svg';
const GITHUB_BASE_URL = 'https://github.com/kube-green/kube-green.github.io/'
Expand Down
28,352 changes: 9,630 additions & 18,722 deletions package-lock.json

Large diffs are not rendered by default.

41 changes: 18 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,29 @@
"lint": "eslint 'src/**/*' 'scripts/**/*.js'"
},
"dependencies": {
"@docusaurus/core": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^6.5.1",
"clsx": "^1.2.1",
"@docusaurus/core": "^3.1.0",
"@docusaurus/preset-classic": "^3.1.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.1.0",
"decimal.js-light": "^2.5.1",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-player": "^2.12.0",
"url-loader": "^4.1.1"
"prism-react-renderer": "^2.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-player": "^2.14.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.4.1",
"@tsconfig/docusaurus": "^1.0.7",
"@types/js-yaml": "^4.0.5",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.49.0",
"cspell": "^7.2.0",
"eslint": "^8.42.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"@docusaurus/module-type-aliases": "^3.1.0",
"@types/js-yaml": "^4.0.9",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"cspell": "^8.3.2",
"eslint": "^8.56.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"js-yaml": "^4.1.0",
"typescript": "^5.1.3"
"typescript": "^5.3.3"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/api-reference/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
{
"typeMatchPrefix": "^k8s\\.io/(api|apimachinery/pkg/apis)/",
"docsURLTemplate": "https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}"
"docsURLTemplate": "https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}"
}
],
"typeDisplayNamePrefixOverrides": {
Expand Down
5 changes: 3 additions & 2 deletions scripts/api-reference/templates/type.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<h3 id="{{ anchorIDForType . }}">
{{- .Name.Name }}
{{ if eq .Kind "Alias" }}(<code>{{.Underlying}}</code> alias)</p>{{ end -}}
{{- if eq .Kind "Alias" }}(<code>{{.Underlying}}</code> alias)</p>{{ end -}}
</h3>
{{ with (typeReferences .) }}
<p>
Expand Down Expand Up @@ -35,7 +35,8 @@
<tr>
<td>
<code>apiVersion</code><br></br>
string</td>
string
</td>
<td>
<code>
{{apiGroup .}}
Expand Down

0 comments on commit a0fd039

Please sign in to comment.