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/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
<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>
## [Unreleased]
<h2>[Unreleased]</h2>
### Added
- Initial project setup
- Basic menu structure
- Documentation framework
<h3>Added</h3>
<ul>
<li>Initial project setup</li>
<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
- Core functionality for executing shell scripts
- Menu-driven interface for script selection
- Basic error handling and logging
<h3>Added</h3>
<ul>
<li>Core functionality for executing shell scripts</li>
<li>Menu-driven interface for script selection</li>
<li>Basic error handling and logging</li>
</ul>
### Changed
- Improved script organization with categories
<h3>Changed</h3>
<ul>
<li>Improved script organization with categories</li>
</ul>
### Fixed
- Issue with script permissions on certain systems
<h3>Fixed</h3>
<ul>
<li>Issue with script permissions on certain systems</li>
</ul>
## [0.0.1] - 2023-06-01
### Added
- Project initialization
- README with basic project description
- License file
<h2>[0.0.1] - 2023-06-01</h2>
<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 path from "path"
import { remark } from "remark"
import html from "remark-html"
async function getChangelog() {
const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md")
try {
const fileContents = fs.readFileSync(changelogPath, "utf8")
// Convertir Markdown a HTML
const result = await remark().use(html).process(fileContents)
return result.toString()
return fileContents // Ahora el archivo ya es HTML, no necesita conversión
} catch (error) {
console.error("Error reading changelog file:", error)
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>
<div
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>