Skip to content

Commit

Permalink
docs(website): switch images to cdn urls and remove all image binaries (
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen authored Apr 15, 2024
1 parent 0023877 commit c97a784
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 17 deletions.
4 changes: 1 addition & 3 deletions website/docs/en/blog/announcing-0.2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
date: 2023-06-02 13:11:00
---

import benchmark from '../../public/benchmark.jpeg';

# Announcing Rspack 0.2

> June 02, 2023
Expand Down Expand Up @@ -207,7 +205,7 @@ With the help of [Rosa](https://rosa.be/), [Nx](https://nx.dev/), and [Valor](ht

Added a benchmark comparison with esbuild. Please refer to the following link for more details: https://github.com/web-infra-dev/performance-compare

<img src={benchmark} alt="benchmark"></img>
<img src="https://raw.githubusercontent.com/web-infra-dev/performance-compare/main/assets/benchmark.png" alt="benchmark"></img>

## Dev guide

Expand Down
3 changes: 1 addition & 2 deletions website/docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ hero:
name: Rspack
text: A fast Rust-based web bundler
tagline: Build a high-performance frontend toolchain
# TODO logo
image:
src: /logo.png
src: https://assets.rspack.dev/rspack/rspack-logo.svg
alt: logo
actions:
- theme: brand
Expand Down
4 changes: 1 addition & 3 deletions website/docs/en/misc/branding.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Logo from '../../public/logo.png';

# Branding Guideline

Here you can find the branding guideline, assets and license for the project.
Expand All @@ -12,7 +10,7 @@ When used standalone, Rspack should always be written as Rspack, not rspack or R

Rspack logo is a small crab as fast as lightning, representing fast compilation of Rspack.

<img src={Logo} alt="Rspack Logo" style={{ width: '300px' }} />
<img src="https://assets.rspack.dev/rspack/rspack-logo.svg" alt="Rspack Logo" style={{ width: '300px' }} />

## Design Resources

Expand Down
Binary file removed website/docs/public/benchmark.jpeg
Binary file not shown.
Binary file removed website/docs/public/compare.png
Binary file not shown.
Binary file removed website/docs/public/logo.png
Binary file not shown.
Binary file removed website/docs/public/rsbuild.png
Binary file not shown.
4 changes: 1 addition & 3 deletions website/docs/zh/blog/announcing-0.2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
date: 2023-06-02 13:11:00
---

import benchmark from '../../public/benchmark.jpeg';

# Rspack 0.2 发布公告

> 2023 年 6 月 2 日
Expand Down Expand Up @@ -204,7 +202,7 @@ Rspack 0.2 已经完成了对 vue-loader 的兼容。对于 Vue3 项目,你可

添加与 esbuild 对比的 benchmark https://github.com/web-infra-dev/performance-compare

<img src={benchmark} alt="benchmark"></img>
<img src="https://raw.githubusercontent.com/web-infra-dev/performance-compare/main/assets/benchmark.png" alt="benchmark"></img>

## 开发指南

Expand Down
4 changes: 1 addition & 3 deletions website/docs/zh/misc/branding.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Logo from '../../public/logo.png';

# 品牌指南

在这里你可以找到 Rspack 的品牌指南、资源和许可证。
Expand All @@ -12,7 +10,7 @@ Rspack 在独立使用的情况下都应该写作 Rspack,而不是 rspack 或

Rspack 的 Logo 是一个如闪电一样迅速的小螃蟹,代表了 Rspack 的快速编译。

<img src={Logo} alt="Rspack Logo" style={{ width: '300px' }} />
<img src="https://assets.rspack.dev/rspack/rspack-logo.svg" alt="Rspack Logo" style={{ width: '300px' }} />

## 设计资源

Expand Down
2 changes: 1 addition & 1 deletion website/rspress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ export default defineConfig({
type: 'website',
url: PUBLISH_URL,
image:
'https://sf16-sg.tiktokcdn.com/obj/eden-sg/geh7plsnuhog/rspack/rspack-banner.png',
'https://assets.rspack.dev/rspack/rspack-banner.png',
description: 'Fast Rust-based Web Bundler',
twitter: {
site: '@rspack_dev',
Expand Down
3 changes: 1 addition & 2 deletions website/theme/components/HomeHero/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Button } from 'rspress/theme';
import { normalizeHrefInRuntime } from 'rspress/runtime';
import styles from './index.module.scss';
import logoImg from '../../../docs/public/logo.png';

export interface Hero {
name: string;
Expand Down Expand Up @@ -61,7 +60,7 @@ export function HomeHero({ hero }: { hero: Hero }) {
{hasImage ? (
<div className="modern-doc-home-hero-image m-auto flex-center md:none lg:flex order-1 md:order-2">
<div className={styles.imgMask}></div>
<img src={logoImg} alt={hero.image?.alt} />
<img src="https://assets.rspack.dev/rspack/rspack-logo.svg" alt={hero.image?.alt} />
</div>
) : null}
</div>
Expand Down

0 comments on commit c97a784

Please sign in to comment.