Skip to content

Commit 770ff56

Browse files
committed
Merge branch 'main' of github.com:public-ui/public-ui.github.io into 223-add-sample-app-link-in-homepage
* 'main' of github.com:public-ui/public-ui.github.io: Improve component card layout: Align badges to on the bottom and add some spacing update custom.css Update update.yml Update update.yml Build docs before registry change Configure correct registry for pnpm i Configure correct registry for pnpm i Restore original Build Docs step Add pnpm i Add step to build docs Adjust paths and add upload-pages-artifact action (#227) Bugfix component overview Fix Badge overflow and ensure a single column layout on mobile devices Move source to root folder Remove docs artifacts Auto update github page chore: update doc Auto update github page update homepage components link
2 parents 05fec5e + e531b73 commit 770ff56

File tree

10,094 files changed

+340
-1136723
lines changed

Some content is hidden

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

10,094 files changed

+340
-1136723
lines changed
File renamed without changes.
File renamed without changes.

.github/workflows/update.yml

Lines changed: 44 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# This is a basic workflow to help you get started with Actions
2-
3-
name: update github page
1+
name: Update GitHub page
42

53
env:
64
github-registry: https://npm.pkg.github.com
@@ -13,11 +11,20 @@ on:
1311
push:
1412
branches:
1513
- main
16-
# schedule:
17-
# - cron: '0 4 * * *'
18-
# workflow_call:
1914
workflow_dispatch:
2015

16+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
21+
22+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
23+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
24+
concurrency:
25+
group: "pages"
26+
cancel-in-progress: false
27+
2128
jobs:
2229
update:
2330
runs-on: ubuntu-latest
@@ -27,36 +34,36 @@ jobs:
2734
# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
2835
- uses: actions/setup-node@v4
2936
with:
30-
node-version: 16
37+
node-version: 20
3138
registry-url: "${{env.npmjs-registry}}"
3239
scope: "@${{env.scope}}"
40+
3341
- uses: pnpm/action-setup@v4
3442
id: pnpm-install
3543
with:
36-
version: 8
44+
version: 9
3745
run_install: false
46+
3847
- name: Get pnpm store directory
3948
id: pnpm-cache
4049
shell: bash
4150
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
51+
4252
- uses: actions/cache@v4
4353
with:
4454
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
45-
key: ${{ runner.os }}-pnpm-store # -${{ hashFiles('**/pnpm-lock.yaml') }}
55+
key: ${{ runner.os }}-pnpm-store
4656
restore-keys: |
4757
${{ runner.os }}-pnpm-store
4858
49-
# - name: Build doc
50-
# env:
51-
# NODE_AUTH_TOKEN: ${{env.token}}
52-
# run: |
53-
# pnpm install --no-frozen-lockfile
54-
# npm run build
55-
# working-directory: dev
59+
- name: Build Docs
60+
run: |
61+
pnpm install --no-frozen-lockfile
62+
npm run build
5663
5764
- uses: actions/setup-node@v4
5865
with:
59-
node-version: 18
66+
node-version: 20
6067
registry-url: "${{env.github-registry}}"
6168
scope: "@${{env.scope}}"
6269

@@ -68,12 +75,11 @@ jobs:
6875
npm pack @${{env.scope}}/designer@^1
6976
tar -xzvf public-ui-designer-*.tgz
7077
71-
rm -rf ../docs/v1/designer
72-
mkdir -p ../docs/v1
73-
mv package/dist ../docs/v1/designer
78+
rm -rf build/v1/designer
79+
mkdir -p build/v1
80+
mv package/dist build/v1/designer
7481
7582
rm -rf package *.tgz
76-
working-directory: dev
7783
7884
- name: Download sample react (v1)
7985
env:
@@ -83,12 +89,11 @@ jobs:
8389
npm pack @${{env.scope}}/sample-react@^1
8490
tar -xzvf public-ui-sample-react-*.tgz
8591
86-
rm -rf ../docs/v1/sample-react
87-
mkdir -p ../docs/v1
88-
mv package/dist ../docs/v1/sample-react
92+
rm -rf build/v1/sample-react
93+
mkdir -p build/v1
94+
mv package/dist build/v1/sample-react
8995
9096
rm -rf package *.tgz
91-
working-directory: dev
9297
9398
- name: Download designer (v2)
9499
env:
@@ -98,12 +103,11 @@ jobs:
98103
npm pack @${{env.scope}}/designer@^2
99104
tar -xzvf public-ui-designer-*.tgz
100105
101-
rm -rf ../docs/v2/designer
102-
mkdir -p ../docs/v2
103-
mv package/dist ../docs/v2/designer
106+
rm -rf build/v2/designer
107+
mkdir -p build/v2
108+
mv package/dist build/v2/designer
104109
105110
rm -rf package *.tgz
106-
working-directory: dev
107111
108112
- name: Download sample react (v2)
109113
env:
@@ -113,48 +117,18 @@ jobs:
113117
npm pack @${{env.scope}}/sample-react@^2
114118
tar -xzvf public-ui-sample-react-*.tgz
115119
116-
rm -rf ../docs/v2/sample-react
117-
mkdir -p ../docs/v2
118-
mv package/dist ../docs/v2/sample-react
120+
rm -rf build/v2/sample-react
121+
mkdir -p build/v2
122+
mv package/dist build/v2/sample-react
119123
120124
rm -rf package *.tgz
121-
working-directory: dev
122-
123-
# - name: Download slidev
124-
# env:
125-
# NODE_AUTH_TOKEN: ${{env.token}}
126-
# run: |
127-
# rm -rf package *.tgz
128-
# npm pack @${{env.scope}}/slidev
129-
# tar -xzvf public-ui-slidev-*.tgz
130-
# mv package/dist build/presentation
131-
# mv package/presentation.pdf build/presentation/presentation.pdf
132-
# rm -rf package *.tgz
133-
# ls -la build
134-
# working-directory: dev
135-
136-
# - name: Download storybook
137-
# env:
138-
# NODE_AUTH_TOKEN: ${{env.token}}
139-
# run: |
140-
# rm -rf package *.tgz
141-
# npm pack @${{env.scope}}/storybook
142-
# tar -xzvf public-ui-storybook-*.tgz
143-
# mv package/dist build/storybook
144-
# rm -rf package *.tgz
145-
# ls -la build
146-
# working-directory: dev
147-
148-
- name: Commit changed files
149-
continue-on-error: true
150-
run: |
151-
git config --local user.email "action@github.com"
152-
git config --local user.name "GitHub Action"
153-
git add .
154-
git status
155-
git commit -m "Auto update github page"
156125
157-
- uses: ad-m/github-push-action@master
126+
- name: Setup Pages
127+
uses: actions/configure-pages@v5
128+
- name: Upload GitHub Pages artifact
129+
uses: actions/upload-pages-artifact@v3.0.1
158130
with:
159-
github_token: ${{ secrets.GITHUB_TOKEN }}
160-
force: true
131+
path: build
132+
- name: Deploy to GitHub Pages
133+
id: deployment
134+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
11
# Dependencies
2-
/dev/node_modules/
3-
/dev/docs/readmes/
2+
node_modules/
3+
docs/readmes/
44

55
# Production
6-
/dev/build/
6+
build/
77

88
# Generated files
9-
/dev/.docusaurus
10-
/dev/.cache-loader
11-
/docs2/
9+
.docusaurus
10+
.cache-loader
11+
readmes
12+
13+
# Copied assets
14+
/static/assets/bpa-icons/
15+
/static/assets/bundes/
16+
/static/assets/codicons/
17+
/static/assets/fontawesome-free/
18+
/static/assets/icofont/
19+
/static/assets/kreon/
20+
/static/assets/material-icons/
21+
/static/assets/material-symbols/
22+
/static/assets/noto-sans/
23+
/static/assets/roboto/
24+
/static/assets/tabler-icons/
25+
/static/assets/kolibri.ico
26+
/static/cheat-sheet/
27+
/static/assets/components-esm
28+
/static/assets/themes
1229

1330
# Misc
1431
.DS_Store
File renamed without changes.

dev/.npmrc renamed to .npmrc

File renamed without changes.
File renamed without changes.
File renamed without changes.

dev/README.md renamed to README.md

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

dev/.gitignore

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

dev/.vscode/settings.json

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

docs/-.htaccess

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

docs/-manifest.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)