mirror of
https://github.com/JonasunderscoreJones/docs.jonasjones.dev.git
synced 2025-10-22 18:49:18 +02:00
Merge pull request #4 from JonasunderscoreJones/merge-resolver
This commit is contained in:
commit
3afdb95576
11 changed files with 68 additions and 12 deletions
|
@ -27,17 +27,15 @@ jobs:
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: npm install --frozen-lockfile
|
run: npm install --frozen-lockfile
|
||||||
working-directory: docusaurus
|
|
||||||
|
|
||||||
- name: build project
|
- name: build project
|
||||||
run: npm run build
|
run: npm run build
|
||||||
working-directory: docusaurus
|
|
||||||
|
|
||||||
- name: capture build artifacts
|
- name: capture build artifacts
|
||||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: docusaurus-artifacts.zip
|
name: docusaurus-build-artifacts.zip
|
||||||
path: docusaurus/build/
|
path: build
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: cache downloaded dependencies
|
- name: cache downloaded dependencies
|
||||||
|
|
45
.github/workflows/build-docusaurus.yml
vendored
Normal file
45
.github/workflows/build-docusaurus.yml
vendored
Normal file
|
@ -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') }}
|
|
@ -7,4 +7,4 @@
|
||||||
"type": "generated-index",
|
"type": "generated-index",
|
||||||
"description": "Documentation for the BetterConsoleMC mod"
|
"description": "Documentation for the BetterConsoleMC mod"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,4 +7,4 @@
|
||||||
"type": "generated-index",
|
"type": "generated-index",
|
||||||
"description": "Documentation for the McWebServer mod"
|
"description": "Documentation for the McWebServer mod"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,4 +7,4 @@
|
||||||
"type": "generated-index",
|
"type": "generated-index",
|
||||||
"description": "The API is split into two parts, the Simple API and the Advanced API."
|
"description": "The API is split into two parts, the Simple API and the Advanced API."
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,4 +7,4 @@
|
||||||
"type": "generated-index",
|
"type": "generated-index",
|
||||||
"description": "The Advanced API documentation."
|
"description": "The Advanced API documentation."
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,4 +7,4 @@
|
||||||
"type": "generated-index",
|
"type": "generated-index",
|
||||||
"description": "The Simple API documentation."
|
"description": "The Simple API documentation."
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,4 +7,4 @@
|
||||||
"type": "generated-index",
|
"type": "generated-index",
|
||||||
"description": "Documentation for my random script dump repository"
|
"description": "Documentation for my random script dump repository"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,4 +7,4 @@
|
||||||
"type": "generated-index",
|
"type": "generated-index",
|
||||||
"description": "Documentation for the Spotify scripts"
|
"description": "Documentation for the Spotify scripts"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,4 +7,4 @@
|
||||||
"type": "generated-index",
|
"type": "generated-index",
|
||||||
"description": "Documentation for the YetAnotherDiscordChatLink mod"
|
"description": "Documentation for the YetAnotherDiscordChatLink mod"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -85,6 +85,19 @@ const config = {
|
||||||
},
|
},
|
||||||
// Replace with your project's social card
|
// Replace with your project's social card
|
||||||
image: 'img/favicon.png',
|
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: {
|
navbar: {
|
||||||
title: 'DOCS.JONASJONES.DEV',
|
title: 'DOCS.JONASJONES.DEV',
|
||||||
logo: {
|
logo: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue