Skip to content

Commit

Permalink
doc/website: fix favicon and upgrade docusaurus (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemtam authored Feb 3, 2022
1 parent efd0948 commit 48cb560
Show file tree
Hide file tree
Showing 6 changed files with 10,076 additions and 21,914 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,24 @@ jobs:
- uses: actions/[email protected]
with:
node-version: 16
- name: Cache dependecies
uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: yarn install
run: npm install
- name: Build website
run: yarn build
run: npm run build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Deploy Website
run: yarn upload
run: npm run upload
- name: Invalidate Cache
run: yarn invalidate-cdn
run: npm run invalidate-cdn
7 changes: 3 additions & 4 deletions doc/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ module.exports = {
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'https://atlasgo.io/uploads/favicon.ico',
organizationName: 'ariga',
projectName: 'atlas',
themeConfig: {
gtag: {
trackingID: 'G-Z88N4TF03R'
},
prism: {
additionalLanguages: ['hcl'],
},
Expand Down Expand Up @@ -80,6 +76,9 @@ module.exports = {
showLastUpdateAuthor: false,
showLastUpdateTime: false,
},
gtag: {
trackingID: 'G-Z88N4TF03R'
},
blog: {
showReadingTime: true,
},
Expand Down
Loading

0 comments on commit 48cb560

Please sign in to comment.