Skip to content

Commit

Permalink
updating docusaurus version
Browse files Browse the repository at this point in the history
  • Loading branch information
SelfhostedPro committed Oct 6, 2024
1 parent 3c80bb4 commit 5d94a49
Show file tree
Hide file tree
Showing 5 changed files with 4,019 additions and 3,084 deletions.
71 changes: 42 additions & 29 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,52 @@
name: Deploy to GitHub Pages


name: GitHub Pages

on:
workflow_dispatch:
# push:
# branches:
# - main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
push:
branches:
- main
paths:
- '.github/workflows/deploy.yml'
- 'website/**'
pull_request:

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
defaults:
run:
working-directory: website
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '14'

- name: Get yarn cache
id: yarn-cache
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> "${GITHUB_OUTPUT}"

- name: Cache dependencies
uses: actions/cache@v3
with:
node-version: 18
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website
run: yarn build

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
path: ${{ steps.yarn-cache.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-website-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-website-
- run: yarn install --frozen-lockfile
- run: yarn build

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./build
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# You can swap them out with your own user credentials.
publish_dir: ./website/build
52 changes: 0 additions & 52 deletions .github/workflows/deployv2.yml

This file was deleted.

4 changes: 2 additions & 2 deletions docs/Templates/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ This is what is displayed when in the apps list page. Punctuation is nice here a
name: app_name
```
</TabItem>
</Tabs>;
</Tabs>
This is what the actual container is named. Information on this is [here](https://docs.docker.com/engine/reference/run/#name---name).
Expand Down Expand Up @@ -818,6 +818,6 @@ devices:
}
```
</TabItem>
</Tabs>;
</Tabs>

Devices allow devices to be passed through containers for things like transcoding.
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "yacht-docs",
"version": "0.0.0",
"private": true,
"engines": {
"node": ">=18.0"
},
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
Expand All @@ -12,12 +15,12 @@
"clear": "docusaurus clear"
},
"dependencies": {
"@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@mdx-js/react": "^1.6.22",
"@docusaurus/core": "3.0.0",
"@docusaurus/preset-classic": "3.0.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"react": "^16.14.0",
"react-dom": "^16.14.0"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit 5d94a49

Please sign in to comment.