Skip to content

Commit baa13c8

Browse files
AlemTuzlakthomasfr
andauthored
V4 major (#108)
* Version 4 major * Added a documentation website to the project * testimonial * test * fix * Removed the necessity for S3, bundling everything during build time into the docker image (#109) * fixes for docs * fixes for docs * fix --------- Co-authored-by: Thomas Fritz <287432+thomasfr@users.noreply.github.com>
1 parent 504d6c5 commit baa13c8

1,180 files changed

Lines changed: 111485 additions & 27412 deletions

File tree

Some content is hidden

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

.eslintrc.cjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ module.exports = {
22
env: { browser: true, es2020: true },
33
ignorePatterns: [
44
"node_modules",
5-
"dist",
6-
"src/cjs-app",
7-
"src/esm-app",
8-
"src/documentation",
5+
"dist",
96
".eslintrc.cjs",
107
"tailwind.config.js",
118
"src/external",

.github/sync-s3-posts.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: 🔁 Sync docs with S3
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: 🛡️ Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20.x'
18+
19+
- name: 📦 Install dependencies
20+
run: npm ci
21+
22+
- name: ⚡ Generate docs metadata
23+
run: npm run generate:metadata
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
GITHUB_OWNER: ${{ github.repository_owner }}
27+
GITHUB_REPO: ${{ github.event.repository.name}}
28+
29+
- name: 🏁 Check for changes
30+
id: git-check
31+
run: |
32+
if git diff HEAD^ HEAD -- posts/; then
33+
echo "No changes detected."
34+
echo "{changes}={false}" >> $GITHUB_OUTPUT
35+
else
36+
echo "Changes detected."
37+
echo "{changes}={true}" >> $GITHUB_OUTPUT
38+
fi
39+
40+
- name: 🪣 Sync to S3
41+
if: steps.git-check.outputs.changes == 'true'
42+
uses: jakejarvis/s3-sync-action@master
43+
with:
44+
args: --acl public-read --follow-symlinks --delete
45+
env:
46+
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
47+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
48+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
49+
AWS_REGION: 'eu-north-1'
50+
SOURCE_DIR: 'posts'
51+
DEST_DIR: 'posts'

.prettierignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
src/cjs-app
2-
src/esm-app
1+
32
src/test-apps

0 commit comments

Comments
 (0)