diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d9efb57..2ba298d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,7 +5,3 @@ updates: schedule: interval: "weekly" open-pull-requests-limit: 10 - groups: - docusaurus: - patterns: - - '@docusaurus/*' \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8b53528..2fb242d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,50 +2,32 @@ name: Deploy to GitHub Pages on: schedule: - - cron: "0 0 * * *" + - cron: '0 0 * * *' push: - branches: - - main + branches: [main] workflow_dispatch: +# Allow this job to clone the repo and create a page deployment +permissions: + contents: read + pages: write + id-token: write + jobs: build: - name: Build Docusaurus runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: npm - - - name: Install dependencies - run: npm ci - - name: Build website - run: npm run build - - - name: Upload Build Artifact - uses: actions/upload-pages-artifact@v3 - with: - path: build + - name: Checkout your repository using git + uses: actions/checkout@v4 + - name: Install, build, and upload your site + uses: withastro/action@v3 deploy: - name: Deploy to GitHub Pages needs: build - - # Grant GITHUB_TOKEN the permissions required to make a Pages deployment - permissions: - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source - - # Deploy to the github-pages environment + runs-on: ubuntu-latest environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - - runs-on: ubuntu-latest steps: - name: Deploy to GitHub Pages id: deployment diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index a2c0613..8de938e 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -6,19 +6,10 @@ on: - main jobs: - test-deploy: - name: Test deployment + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: npm - - - name: Install dependencies - run: npm ci - - name: Test build website - run: npm run build + - name: Checkout your repository using git + uses: actions/checkout@v4 + - name: Install, build, and upload your site + uses: withastro/action@v3 diff --git a/.gitignore b/.gitignore index 5ee8499..016b59e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,27 +1,24 @@ -# Dependencies -/node_modules +# build output +dist/ -# Production -/build +# generated types +.astro/ -# Generated files -.docusaurus -.cache-loader - -# Misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local +# dependencies +node_modules/ +# logs npm-debug.log* yarn-debug.log* yarn-error.log* +pnpm-debug.log* -# Hide preprocessing out -/preprocessing/out +# environment variables +.env +.env.production + +# macOS-specific files +.DS_Store -# Hide auto generated doc pages -/docs/jdks.mdx -/docs/sdks.mdx +# jetbrains setting folder +.idea/ diff --git a/.prettierrc b/.prettierrc index 0c68013..988807e 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,17 @@ { "singleQuote": true, - "proseWrap": "always" + "proseWrap": "always", + "plugins": [ + "prettier-plugin-astro", + "prettier-plugin-tailwindcss", + "prettier-plugin-astro-organize-imports" + ], + "overrides": [ + { + "files": "*.astro", + "options": { + "parser": "astro" + } + } + ] } diff --git a/README.md b/README.md index f9c6484..cdc6668 100644 --- a/README.md +++ b/README.md @@ -1,42 +1,25 @@
- SDKMAN! Website built using Docusaurus, a modern static website generator. + SDKMAN! Website
+
- Meet SDKMAN! – your reliable companion for - effortlessly managing multiple Software Development Kits on Unix - systems. Imagine having different versions of SDKs and needing a - stress-free way to switch between them. SDKMAN! steps in with its - easy-to-use Command Line Interface (CLI) and API. Formerly known as - GVM, the Groovy enVironment Manager, SDKMAN! draws inspiration from - familiar tools like apt, pip, RVM, and rbenv and even Git. Think of - it as your helpful toolkit friend, ready to streamline SDK - management for you. 🛠️ -
-Get started now!
- -- Go on then, paste and run the following in a terminal: -
- -
-
- );
-}
diff --git a/src/components/sections/OpenCollective/Buttons/OCButton/styles.module.scss b/src/components/sections/OpenCollective/Buttons/OCButton/styles.module.scss
deleted file mode 100644
index 8de5d70..0000000
--- a/src/components/sections/OpenCollective/Buttons/OCButton/styles.module.scss
+++ /dev/null
@@ -1,4 +0,0 @@
-.button {
- width: auto;
- height: 35px;
-}
diff --git a/src/components/sections/OpenCollective/Buttons/index.tsx b/src/components/sections/OpenCollective/Buttons/index.tsx
deleted file mode 100644
index 407762c..0000000
--- a/src/components/sections/OpenCollective/Buttons/index.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import Link from '@docusaurus/Link';
-
-import OCButton from './OCButton';
-import styles from './styles.module.scss';
-
-type Props = {
- showViewAll?: boolean;
-};
-
-export default function Buttons({ showViewAll = false }: Props) {
- return (
- - - Contribute to our collective - -
-+ Contribute to our collective +
++ Contribute to our collective +
++ SDKMAN! steps in with its easy-to-use + Command Line Interface (CLI) and API. +
+ ++ Formerly known as GVM, the Groovy enVironment Manager, SDKMAN! draws + inspiration from familiar tools like apt, pip, RVM, and rbenv and even + Git. Think of it as your helpful toolkit friend, ready to streamline SDK + management for you. 🛠️ +
++ SDKMAN! – your reliable companion for effortlessly + managing multiple Software Development Kits on Unix systems. +
++ Go on then, paste and run the following in a terminal: +
+ +
+ + Contribute to our collective +
++ Contribute to our collective +
+On This Page
+{JDK.data.description}
+ +
+ + We've chosen Eclipse Temurin as our default JDK because it's widely + recognized as the de facto standard for OpenJDK distributions. Trusted + for its reliability, stability, and performance, Temurin is ideal for + production-grade development. We ensure our default version aligns with + the latest stable release, so you're equipped with the best tools for + your JVM projects. +
+ ++ Looking ahead, we plan to give you the flexibility to track the latest + JDK releases from individual vendors, such as Oracle or Amazon Corretto. + While this isn't available yet, we're working to make it easier for you + to stay on top of the specific distributions you rely on. +
+{SDK.data.description}
+ +
+