Skip to content

Commit

Permalink
docs: Replace the outdated @rspress/plugin-last-updated api lastUpdat…
Browse files Browse the repository at this point in the history
…ed with pluginLastUpdated
  • Loading branch information
h7ml committed Apr 12, 2024
1 parent c816fbb commit f064f18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ When you have configured `lastUpdated: true` in the default theme, this plugin w
### 1. Register the Plugin

```ts title="rspress.config.ts"
import { lastUpdated } from '@rspress/plugin-last-updated';
import { pluginLastUpdated } from '@rspress/plugin-last-updated';
import { defineConfig } from 'rspress/config';

export default defineConfig({
plugins: [lastUpdated()],
plugins: [pluginLastUpdated()],
});
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import { SourceCode, PackageManagerTabs } from 'rspress/theme';
### 1. 注册插件

```ts title="rspress.config.ts"
import { lastUpdated } from '@rspress/plugin-last-updated';
import { pluginLastUpdated } from '@rspress/plugin-last-updated';
import { defineConfig } from 'rspress/config';

export default defineConfig({
plugins: [lastUpdated()],
plugins: [pluginLastUpdated()],
});
```

Expand Down

0 comments on commit f064f18

Please sign in to comment.