Skip to content

Commit a64445a

Browse files
committed
fix: ignore docs png
1 parent 3a90059 commit a64445a

5 files changed

Lines changed: 7 additions & 3 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
# Ignore all png files
12
*.png
3+
4+
# But allow png files in static/img directory
5+
!docs_roll/static/img/*.png
26
*.pyc
37
*/checkpoint_dir
48
*/dataset

docs_roll/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const darkTheme = themes.dracula;
99
const config = {
1010
title: 'ROLL',
1111
// tagline: 'Dinosaurs are cool',
12-
favicon: 'img/logo.png',
12+
favicon: 'https://img.alicdn.com/imgextra/i4/O1CN01bo6EZl2192CAIjFwE_!!6000000006941-2-tps-465-367.png',
1313

1414
// Set the production url of your site here
1515
url: 'https://alibaba.github.io',

docs_roll/src/theme/Navbar/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Avatar, Button, ConfigProvider, theme } from 'antd';
2+
import { Avatar, Button, ConfigProvider, theme, Image } from 'antd';
33
import { SunOutlined, MoonOutlined, GlobalOutlined, ExportOutlined } from '@ant-design/icons';
44
import clsx from 'clsx';
55
import { useThemeConfig } from '@docusaurus/theme-common';
@@ -25,7 +25,7 @@ export default function Navbar() {
2525
{/* 左侧 Logo 和标题 */}
2626
<div className={clsx(styles.logoWrap, 'navbar__items')} onClick={() => history.push('/ROLL/')}>
2727
<div className={styles.logo}>
28-
<Avatar size={40} src={useBaseUrl(logo?.src)}></Avatar>
28+
<Image height={32} width={40} src={useBaseUrl(logo?.src)} alt="ROLL" preview={false} />
2929
</div>
3030
<div>
3131
<div className={styles.title}>

docs_roll/static/img/choose.png

640 KB
Loading

docs_roll/static/img/home_main.png

134 KB
Loading

0 commit comments

Comments
 (0)