mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-06 23:46:52 +00:00
Update page.tsx
This commit is contained in:
parent
040f562e90
commit
3da5529708
@ -1,5 +1,6 @@
|
|||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
|
import ReactMarkdown from "react-markdown"
|
||||||
|
|
||||||
async function getChangelog() {
|
async function getChangelog() {
|
||||||
const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md")
|
const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md")
|
||||||
@ -19,9 +20,9 @@ export default async function ChangelogPage() {
|
|||||||
<div className="bg-white text-gray-900 min-h-screen">
|
<div className="bg-white text-gray-900 min-h-screen">
|
||||||
<div className="container mx-auto px-4 py-16 max-w-4xl">
|
<div className="container mx-auto px-4 py-16 max-w-4xl">
|
||||||
<h1 className="text-4xl font-bold mb-8">Changelog</h1>
|
<h1 className="text-4xl font-bold mb-8">Changelog</h1>
|
||||||
<pre className="bg-gray-100 p-4 border border-gray-300 rounded-md whitespace-pre-wrap">
|
<div className="prose prose-lg max-w-none bg-gray-100 p-4 border border-gray-300 rounded-md">
|
||||||
{changelogContent}
|
<ReactMarkdown>{changelogContent}</ReactMarkdown>
|
||||||
</pre>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user