Skip to content

Commit 9bf8171

Browse files
committed
deploy docs in github pagesé
1 parent df8d174 commit 9bf8171

3 files changed

Lines changed: 43 additions & 85 deletions

File tree

.github/workflows/build_and_deploy_docusaurus.yml

Lines changed: 0 additions & 83 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Deploy Docusaurus to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- github-pages
7+
# paths:
8+
# - 'docs/**'
9+
# pull_request:
10+
# branches:
11+
# - main
12+
# release:
13+
# types:
14+
# - published
15+
# workflow_call:
16+
# workflow_dispatch:
17+
18+
jobs:
19+
deploy:
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: npm
31+
- name: Install dependencies
32+
working-directory: ./docs
33+
run: npm ci
34+
- name: Build Docusaurus site
35+
working-directory: ./docs
36+
run: npm run build
37+
- name: Deploy to GitHub Pages
38+
uses: peaceiris/actions-gh-pages@v3
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: ./docs/build

docs/docusaurus.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ const config: Config = {
2020
},
2121

2222
// Set the production url of your site here
23-
url: albert_api_url,
23+
url: 'https://etalab-ia.github.io',
2424
// Set the /<baseUrl>/ pathname under which your site is served
2525
// For GitHub pages deployment, it is often '/<projectName>/'
26-
baseUrl: baseUrl,
26+
baseUrl: '/OpenGateLLM/',
2727

2828
// GitHub pages deployment config.
2929
// If you aren't using GitHub pages, you don't need these.

0 commit comments

Comments
 (0)