Skip to content

Commit

Permalink
Merge pull request #30 from airgap-it/feat/update-docusaurus
Browse files Browse the repository at this point in the history
feat(): update docusaurus
  • Loading branch information
AndreasGassmann authored Feb 5, 2022
2 parents baf91dc + 98d1792 commit 5a7fcac
Show file tree
Hide file tree
Showing 11 changed files with 15,774 additions and 30,431 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/netlify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy to Netlify on pull requests

on: [push, workflow_dispatch]

env:
node_version: 16.x

jobs:
environment:
name: 🌱 Load Environment
runs-on: ubuntu-latest

steps:
- name: ⚙️ Node.js version used - ${{ env.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.node_version }}

build:
runs-on: ubuntu-latest
needs: [environment]

steps:
# Checkout repo
- uses: actions/checkout@v2

- name: Prepare
run: npm ci

- name: Install Netlify
run: npm i netlify-cli

- name: Build site
run: npm run build

# Deploy the site with netlify-cli
- name: Deploy Site
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
run: netlify deploy --dir=build --alias=$GITHUB_SHA --message=$GITHUB_SHA
9 changes: 8 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,15 @@ module.exports = {
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
sitemap: {
changefreq: "weekly",
priority: 0.5,
},
},
],
],
plugins: [path.join(__dirname, "/plugins/monaco-editor")],
plugins: [
path.join(__dirname, "/plugins/monaco-editor"),
path.join(__dirname, "/plugins/build"),
],
};
Loading

0 comments on commit 5a7fcac

Please sign in to comment.