- Added comprehensive documentation covering key features, user guides, and best practices for the Corrad ProcessMaker platform. - Introduced new API endpoints for serving documentation files dynamically. - Enhanced the navigation structure to include a dedicated documentation section for improved accessibility. - Updated the Nuxt configuration to optimize the development environment and ensure proper handling of dependencies. - Included new dependencies in package.json to support documentation rendering and processing. - Improved the user interface for the documentation page, enhancing the overall user experience.
9 lines
269 B
JavaScript
9 lines
269 B
JavaScript
import fs from 'fs'
|
|
import path from 'path'
|
|
|
|
export default defineEventHandler(async (event) => {
|
|
const docsDir = path.resolve(process.cwd(), 'content/documentation')
|
|
const files = fs.readdirSync(docsDir)
|
|
.filter(file => file.endsWith('.md'))
|
|
return files
|
|
})
|