diff --git a/.forgejo/workflows/build-docusaurus.yml b/.forgejo/workflows/build-docusaurus.yml index 50cea33..407605c 100644 --- a/.forgejo/workflows/build-docusaurus.yml +++ b/.forgejo/workflows/build-docusaurus.yml @@ -27,17 +27,15 @@ jobs: - name: install dependencies run: npm install --frozen-lockfile - working-directory: docusaurus - name: build project run: npm run build - working-directory: docusaurus - name: capture build artifacts uses: https://code.forgejo.org/forgejo/upload-artifact@v4 with: - name: docusaurus-artifacts.zip - path: docusaurus/build/ + name: docusaurus-build-artifacts.zip + path: build if-no-files-found: error - name: cache downloaded dependencies diff --git a/.github/workflows/build-docusaurus.yml b/.github/workflows/build-docusaurus.yml new file mode 100644 index 0000000..f69dc3a --- /dev/null +++ b/.github/workflows/build-docusaurus.yml @@ -0,0 +1,45 @@ +name: build-sveltekit + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Restore npm cache + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm- + + - name: Install dependencies + run: npm install --frozen-lockfile + + - name: Build Docusaurus site + run: npm run build + + - name: capture build artifacts + uses: actions/upload-artifact@v4 + with: + name: docusaurus-build-artifacts + path: build + + - name: Save npm cache + if: ${{ github.ref_name == github.event.repository.default_branch }} + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} diff --git a/docs/betterconsolemc/_category_.json b/docs/betterconsolemc/_category_.json index 2818c16..10d89c1 100644 --- a/docs/betterconsolemc/_category_.json +++ b/docs/betterconsolemc/_category_.json @@ -7,4 +7,4 @@ "type": "generated-index", "description": "Documentation for the BetterConsoleMC mod" } - } \ No newline at end of file +} \ No newline at end of file diff --git a/docs/mcwebserver/_category_.json b/docs/mcwebserver/_category_.json index c1429b4..7dfb4da 100644 --- a/docs/mcwebserver/_category_.json +++ b/docs/mcwebserver/_category_.json @@ -7,4 +7,4 @@ "type": "generated-index", "description": "Documentation for the McWebServer mod" } - } \ No newline at end of file +} \ No newline at end of file diff --git a/docs/mcwebserver/api/_category_.json b/docs/mcwebserver/api/_category_.json index 40b4c5c..0a534e7 100644 --- a/docs/mcwebserver/api/_category_.json +++ b/docs/mcwebserver/api/_category_.json @@ -7,4 +7,4 @@ "type": "generated-index", "description": "The API is split into two parts, the Simple API and the Advanced API." } - } \ No newline at end of file +} \ No newline at end of file diff --git a/docs/mcwebserver/api/advanced/_category_.json b/docs/mcwebserver/api/advanced/_category_.json index 35edb72..39fcb69 100644 --- a/docs/mcwebserver/api/advanced/_category_.json +++ b/docs/mcwebserver/api/advanced/_category_.json @@ -7,4 +7,4 @@ "type": "generated-index", "description": "The Advanced API documentation." } - } \ No newline at end of file +} \ No newline at end of file diff --git a/docs/mcwebserver/api/simple/_category_.json b/docs/mcwebserver/api/simple/_category_.json index 2088ea5..18dea2d 100644 --- a/docs/mcwebserver/api/simple/_category_.json +++ b/docs/mcwebserver/api/simple/_category_.json @@ -7,4 +7,4 @@ "type": "generated-index", "description": "The Simple API documentation." } - } \ No newline at end of file +} \ No newline at end of file diff --git a/docs/turbo-octo-potato/_category_.json b/docs/turbo-octo-potato/_category_.json index e4ae9d5..0f1bc80 100644 --- a/docs/turbo-octo-potato/_category_.json +++ b/docs/turbo-octo-potato/_category_.json @@ -7,4 +7,4 @@ "type": "generated-index", "description": "Documentation for my random script dump repository" } - } \ No newline at end of file +} \ No newline at end of file diff --git a/docs/turbo-octo-potato/spotify-scripts/_category_.json b/docs/turbo-octo-potato/spotify-scripts/_category_.json index 0ebe0eb..90d2b4c 100644 --- a/docs/turbo-octo-potato/spotify-scripts/_category_.json +++ b/docs/turbo-octo-potato/spotify-scripts/_category_.json @@ -7,4 +7,4 @@ "type": "generated-index", "description": "Documentation for the Spotify scripts" } - } \ No newline at end of file +} \ No newline at end of file diff --git a/docs/yetanotherdiscordchatlink/_category_.json b/docs/yetanotherdiscordchatlink/_category_.json index a79886d..1fbbf47 100644 --- a/docs/yetanotherdiscordchatlink/_category_.json +++ b/docs/yetanotherdiscordchatlink/_category_.json @@ -7,4 +7,4 @@ "type": "generated-index", "description": "Documentation for the YetAnotherDiscordChatLink mod" } - } \ No newline at end of file +} \ No newline at end of file diff --git a/docusaurus.config.js b/docusaurus.config.js index 6f89450..35d5e7d 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -85,6 +85,19 @@ const config = { }, // Replace with your project's social card image: 'img/favicon.png', + metadata: [ + { name: 'author', content: 'Jonas_Jones' }, + { name: 'url', content: 'https://docs.jonasjones.dev/' }, + { name: 'theme-color', content: '#008080' }, + + { name: 'twitter:card', content: 'summary' }, + { name: 'twitter:image', content: 'https://docs.jonasjones.dev/img/favicon.png' }, + + { property: 'og:title', content: "Jonas_Jones's Homepage" }, + { property: 'og:description', content: "The Home of all creations by Jonas_Jones!" }, + { property: 'og:image', content: 'https://docs.jonasjones.dev/img/favicon.png' }, + { property: 'og:type', content: 'website' }, + ], navbar: { title: 'DOCS.JONASJONES.DEV', logo: {