Skip to content

Commit df623d8

Browse files
authored
Merge pull request #5 from overlock-network/3-featdocs-add-logos
added logos and changed deploy.yml
2 parents 7d70da8 + fc2bd33 commit df623d8

File tree

5 files changed

+39
-12
lines changed

5 files changed

+39
-12
lines changed

.github/workflows/checks.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Docusaurus Checks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
checks:
10+
name: Build Docusaurus
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20.18.1
20+
cache: yarn
21+
22+
- name: Install dependencies
23+
run: yarn install --frozen-lockfile
24+
25+
- name: Build website
26+
run: yarn build

.github/workflows/deploy.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,28 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
813
jobs:
914
build:
10-
name: Build Docusaurus
15+
name: Build and Upload
1116
runs-on: ubuntu-latest
1217
steps:
1318
- uses: actions/checkout@v4
1419
with:
1520
fetch-depth: 0
21+
1622
- uses: actions/setup-node@v4
1723
with:
1824
node-version: 20.18.1
1925
cache: yarn
2026

2127
- name: Install dependencies
2228
run: yarn install --frozen-lockfile
29+
2330
- name: Build website
2431
run: yarn build
2532

@@ -31,19 +38,12 @@ jobs:
3138
deploy:
3239
name: Deploy to GitHub Pages
3340
needs: build
34-
35-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
36-
permissions:
37-
pages: write # to deploy to Pages
38-
id-token: write # to verify the deployment originates from an appropriate source
39-
40-
# Deploy to the github-pages environment
41+
runs-on: ubuntu-latest
4142
environment:
4243
name: github-pages
4344
url: ${{ steps.deployment.outputs.page_url }}
4445

45-
runs-on: ubuntu-latest
4646
steps:
4747
- name: Deploy to GitHub Pages
4848
id: deployment
49-
uses: actions/deploy-pages@v4
49+
uses: actions/deploy-pages@v4

docusaurus.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ const config: Config = {
9595
navbar: {
9696
title: 'My Site',
9797
logo: {
98-
alt: 'My Site Logo',
99-
src: 'img/logo.svg',
98+
alt: 'Overlock Logo',
99+
src: 'img/454826088-5175d00c-1fb9-4efb-a158-b405f91af8d0.png',
100+
srcDark: 'img/454826087-c3cb9dfc-9d13-4460-8c3c-bb61ff134e55.png',
100101
},
101102
items: [
102103
{
7.24 KB
Loading
8.56 KB
Loading

0 commit comments

Comments
 (0)