update changelog

This commit is contained in:
MacRimi 2025-02-14 19:16:04 +01:00
parent ddd296a930
commit 3a503c15ec
2 changed files with 34 additions and 32 deletions

View File

@ -1,34 +1,42 @@
# Changelog / Raiz <h1>Changelog / Raiz</h1>
All notable changes to ProxMenux will be documented in this file. <p>All notable changes to ProxMenux will be documented in this file.</p>
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), <p>The format is based on <a href="https://keepachangelog.com/en/1.0.0/">Keep a Changelog</a>, and this project adheres to <a href="https://semver.org/spec/v2.0.0.html">Semantic Versioning</a>.</p>
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased] <h2>[Unreleased]</h2>
### Added <h3>Added</h3>
- Initial project setup <ul>
- Basic menu structure <li>Initial project setup</li>
- Documentation framework <li>Basic menu structure</li>
<li>Documentation framework</li>
</ul>
## [0.1.0] - 2023-06-15 <h2>[0.1.0] - 2023-06-15</h2>
### Added <h3>Added</h3>
- Core functionality for executing shell scripts <ul>
- Menu-driven interface for script selection <li>Core functionality for executing shell scripts</li>
- Basic error handling and logging <li>Menu-driven interface for script selection</li>
<li>Basic error handling and logging</li>
</ul>
### Changed <h3>Changed</h3>
- Improved script organization with categories <ul>
<li>Improved script organization with categories</li>
</ul>
### Fixed <h3>Fixed</h3>
- Issue with script permissions on certain systems <ul>
<li>Issue with script permissions on certain systems</li>
</ul>
## [0.0.1] - 2023-06-01 <h2>[0.0.1] - 2023-06-01</h2>
### Added
- Project initialization
- README with basic project description
- License file
<h3>Added</h3>
<ul>
<li>Project initialization</li>
<li>README with basic project description</li>
<li>License file</li>
</ul>

View File

@ -1,17 +1,11 @@
import fs from "fs" import fs from "fs"
import path from "path" import path from "path"
import { remark } from "remark"
import html from "remark-html"
async function getChangelog() { async function getChangelog() {
const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md") const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md")
try { try {
const fileContents = fs.readFileSync(changelogPath, "utf8") const fileContents = fs.readFileSync(changelogPath, "utf8")
return fileContents // Ahora el archivo ya es HTML, no necesita conversión
// Convertir Markdown a HTML
const result = await remark().use(html).process(fileContents)
return result.toString()
} catch (error) { } catch (error) {
console.error("Error reading changelog file:", error) console.error("Error reading changelog file:", error)
return "<p>Changelog content not found.</p>" return "<p>Changelog content not found.</p>"
@ -27,7 +21,7 @@ export default async function ChangelogPage() {
<h1 className="text-4xl font-bold mb-8">Changelog</h1> <h1 className="text-4xl font-bold mb-8">Changelog</h1>
<div <div
className="prose prose-lg max-w-none bg-gray-100 p-4 border border-gray-300 rounded-md" className="prose prose-lg max-w-none bg-gray-100 p-4 border border-gray-300 rounded-md"
dangerouslySetInnerHTML={{ __html: changelogContent }} // Renderizar como HTML dangerouslySetInnerHTML={{ __html: changelogContent }} // Renderiza directamente el HTML
/> />
</div> </div>
</div> </div>