diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..e15b042 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,26 @@ +name: Docusaurus Checks + +on: + pull_request: + branches: + - main + +jobs: + checks: + name: Build Docusaurus + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v4 + with: + node-version: 20.18.1 + cache: yarn + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build website + run: yarn build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 04c60ad..c1d8b5d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,14 +5,20 @@ on: branches: - main +permissions: + contents: read + pages: write + id-token: write + jobs: build: - name: Build Docusaurus + name: Build and Upload runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: actions/setup-node@v4 with: node-version: 20.18.1 @@ -20,6 +26,7 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile + - name: Build website run: yarn build @@ -31,19 +38,12 @@ jobs: 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 - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4 diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 3483d35..ecfddde 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -95,8 +95,9 @@ const config: Config = { navbar: { title: 'My Site', logo: { - alt: 'My Site Logo', - src: 'img/logo.svg', + alt: 'Overlock Logo', + src: 'img/454826088-5175d00c-1fb9-4efb-a158-b405f91af8d0.png', + srcDark: 'img/454826087-c3cb9dfc-9d13-4460-8c3c-bb61ff134e55.png', }, items: [ { diff --git a/static/img/454826087-c3cb9dfc-9d13-4460-8c3c-bb61ff134e55.png b/static/img/454826087-c3cb9dfc-9d13-4460-8c3c-bb61ff134e55.png new file mode 100644 index 0000000..0d36801 Binary files /dev/null and b/static/img/454826087-c3cb9dfc-9d13-4460-8c3c-bb61ff134e55.png differ diff --git a/static/img/454826088-5175d00c-1fb9-4efb-a158-b405f91af8d0.png b/static/img/454826088-5175d00c-1fb9-4efb-a158-b405f91af8d0.png new file mode 100644 index 0000000..fdfe82b Binary files /dev/null and b/static/img/454826088-5175d00c-1fb9-4efb-a158-b405f91af8d0.png differ