Skip to content

Commit

Permalink
ci: avatar components change
Browse files Browse the repository at this point in the history
change static picture to cdn url,
change deploy.yml remove config,
change avatar example schema.jsx
  • Loading branch information
jzllove9 committed Sep 14, 2024
1 parent 3fb6dd9 commit ba3938d
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { defineConfig } from 'dumi';

const isDev = process.env.NODE_ENV === 'development';
const basePath = isDev ? '/' : '/XForm/';
export const basePath = isDev ? '/' : '/XForm/';
const logoPath = `${basePath}logo.png`;

export default defineConfig({
base: basePath,
publicPath: basePath,
outputPath: 'docs-dist',
favicons: ['/logo.png'],
favicons: [logoPath],
themeConfig: {
title: 'XForm',
name: 'XForm',
logo: '/logo.png',
logo: logoPath,
socialLinks: {
github: 'https://github.com/totalizer-team/XForm',
},
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- name: Build your project
run: yarn run docs:build

- name: Remove ~demos
run: rm -rf ./docs-dist/~demos
- name: Remove ~demos/:id
run: rm -rf ./docs-dist/~demos/:id

- name: Show build output directory
run: ls -la ./docs-dist
Expand Down
10 changes: 5 additions & 5 deletions docs/enh/examples/Avatar/schema.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const schema = {
xs: 12,
label: '图片头像',
alt: 'alt content',
src: '/avatar_4.jpeg',
src: 'https://s2.loli.net/2024/09/14/g6adqDxkCv14LZj.jpg',
size: 64,
},
textAvatar: {
Expand All @@ -31,10 +31,10 @@ const schema = {
label: '头像组',
alt: 'alt content',
src: [
'/avatar_1.jpeg',
'/avatar_2.jpeg',
'/avatar_3.jpeg',
'/avatar_4.jpeg',
'https://s2.loli.net/2024/09/14/pFiQIzVUBu29NeE.jpg',
'https://s2.loli.net/2024/09/14/g6adqDxkCv14LZj.jpg',
'https://s2.loli.net/2024/09/14/2PkevRYnHGq46tb.jpg',
'https://s2.loli.net/2024/09/14/KHXqLyimJSYjMek.jpg',
],
size: 32,
},
Expand Down
Binary file removed public/avatar_1.jpeg
Binary file not shown.
Binary file removed public/avatar_2.jpeg
Binary file not shown.
Binary file removed public/avatar_3.jpeg
Binary file not shown.
Binary file removed public/avatar_4.jpeg
Binary file not shown.

0 comments on commit ba3938d

Please sign in to comment.