Skip to content

Commit 15a2f73

Browse files
committed
Update README and page component for improved installation instructions and last updated display
1 parent 56a02de commit 15a2f73

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,15 @@ Since GitHub Actions may hit API limits easily, we recommend building locally an
7474

7575
# Install dependencies
7676

77+
```
7778
npm install
79+
```
7880

79-
# or
81+
or
8082

83+
```
8184
pnpm install
82-
83-
````
85+
```
8486

8587
### 2. Environment Setup (Optional)
8688

@@ -89,7 +91,7 @@ Create a `.env.local` file in the root directory:
8991
```env
9092
GITHUB_TOKEN=your_github_personal_access_token_here
9193
NEXT_PUBLIC_SITE_URL=http://localhost:3000
92-
````
94+
```
9395

9496
#### Getting a GitHub Token
9597

app/docs/[plugin]/[version]/[...slug]/page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ export default async function Page(props: CurrentPageProps) {
4141
<DocsDescription>{page.data.description}</DocsDescription>
4242
{latestUpdate || githubRepoUrl ? (
4343
<div className="flex flex-row gap-2 items-center border-b pb-6">
44-
{latestUpdate && <PageLastUpdate date={latestUpdate} />}
44+
{latestUpdate && (
45+
<p className="text-sm text-fd-muted-foreground">
46+
Last updated {latestUpdate.toUTCString()}
47+
</p>
48+
)}
4549
{githubRepoUrl && <ViewOptions githubUrl={githubRepoUrl} />}
4650
</div>
4751
) : null}

0 commit comments

Comments
 (0)