Skip to content

Commit

Permalink
fix: fixing add read the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bagusajieiswara committed Dec 21, 2024
1 parent cbf0c5f commit 0847620
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/read-the-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

name: Read the Docs

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install Docusaurus dependencies
run: |
cd docs/ && npm install
- name: Build the site
run: |
cd docs/ && npm run build
- name: Copy generated files into Read the Docs directory
run: |
mkdir --parents $READTHEDOCS_OUTPUT/html/
cp --recursive docs/build/* $READTHEDOCS_OUTPUT/html/

0 comments on commit 0847620

Please sign in to comment.