feature: add support for services to use a path

This commit is contained in:
findthelorax
2026-04-19 23:00:32 -04:00
committed by Remy
parent fddfd0a769
commit c7be851c34
8 changed files with 179 additions and 28 deletions
+5 -1
View File
@@ -15,7 +15,11 @@ export function generateMarkdownTable(nodes: Node<NodeData>[]): string {
.map((n) => {
const d = n.data
const services = d.services?.length
? d.services.map((s) => `${s.service_name}:${s.port}`).join(', ')
? d.services.map((s) => {
const port = s.port != null ? `:${s.port}` : ''
const path = s.path?.trim() ? s.path.trim() : ''
return `${s.service_name}${port}${path}`
}).join(', ')
: EMPTY
return [
cell(d.label),