Skip to content

Commit

Permalink
Deploy docusaurus to github pages (#38)
Browse files Browse the repository at this point in the history
* Uses npm instead of pnpm

* Trigger on pull request

* Remove path modification requirement

* Remove dead links

* Triggers deployment
  • Loading branch information
EwenQuim authored Jan 25, 2024
1 parent e1614b5 commit cec41dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ name: Deploy Docusaurus site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: ["main", "ci/**"]
paths:
- "documentation/**"
pull_request:
branches: ["main", "ci/**"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -33,17 +35,14 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "pnpm"

- name: Install pnpm
run: npm install -g pnpm


- name: Install dependencies
run: pnpm install
run: npm install
working-directory: ./documentation

- name: Build Docusaurus site
run: pnpm run build
run: npm run build
working-directory: ./documentation

- name: Upload artifact for deployment
Expand Down
4 changes: 1 addition & 3 deletions documentation/docs/examples/congratulations.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ sidebar_position: 6

You have just learned the **basics of Docusaurus** and made some changes to the **initial template**.

Docusaurus has **much more to offer**!

Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.md)** and **[i18n](../tutorial-extras/translate-your-site.md)**.
Docusaurus has **much more to offer**! Test.

Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/docusaurus/discussions/4610)

Expand Down

0 comments on commit cec41dc

Please sign in to comment.