Skip to content

Commit 2113190

Browse files
author
Bertrand Thomas
committed
Merge branch 'feature/website' into 'main'
Feature/Publish docs as website with Docusaurus See merge request devpro-labs/enablement/tech-notes!6
2 parents 8fc5ff7 + 6eecdfb commit 2113190

File tree

581 files changed

+20109
-561
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

581 files changed

+20109
-561
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
name: CI
22

33
on:
4-
# push:
5-
# branches:
6-
# - main
7-
pull_request:
4+
push:
85
branches:
96
- main
10-
# schedule:
11-
# - cron: "0 2 * * 1-5"
127
workflow_dispatch: {}
138

149
env:
@@ -35,3 +30,7 @@ jobs:
3530
- name: Lint YAML files
3631
run: |
3732
yamllint .
33+
- name: Install JavaScript dependencies
34+
run: npm install
35+
- name: Build website
36+
run: npm run build

.github/workflows/deploy.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch: {}
8+
9+
jobs:
10+
build:
11+
name: Build website
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v5
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-node@v5
18+
with:
19+
node-version: 22
20+
cache: npm
21+
- name: Install dependencies
22+
run: npm install
23+
- name: Build static files
24+
run: npm run build
25+
- name: Upload artifact for GitHub Pages
26+
uses: actions/upload-pages-artifact@v4
27+
with:
28+
path: build
29+
30+
deploy:
31+
name: Deploy to GitHub Pages
32+
needs: build
33+
permissions:
34+
pages: write
35+
id-token: write
36+
environment:
37+
name: github-pages
38+
url: ${{ steps.deployment.outputs.page_url }}
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# local
2+
.DS_Store
3+
.DS_Store
4+
.env.local
5+
.env.development.local
6+
.env.test.local
7+
.env.production.local
8+
*.local
9+
*.log*
10+
.docusaurus
11+
.cache-loader
12+
npm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
16+
# dist
17+
/node_modules
18+
/dist
19+
/doc_build
20+
/build
21+
22+
# IDE
23+
.vscode/*
24+
!.vscode/extensions.json
25+
!.vscode/settings.json
26+
.idea

.gitlab-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ lint-yaml:
2020
script:
2121
- pip install yamllint
2222
- yamllint .
23+
24+
build-website:
25+
stage: build
26+
image: node:lts
27+
script:
28+
- npm install
29+
- npm run build

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"files.eol": "\n"
2+
"files.eol": "\n",
3+
"files.exclude": {
4+
"**/.docusaurus": true,
5+
"**/doc_build": true,
6+
"**/build": true
7+
}
38
}

CONTRIBUTING.md

Lines changed: 30 additions & 1 deletion

README.md

Lines changed: 2 additions & 4 deletions

diagrams/icons.drawio

Lines changed: 16 additions & 0 deletions
Large diffs are not rendered by default.

docs/adr/adr.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/adr/markdown-code-execution-2024.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)