From 00ed4ca75bc6b31bd514e8c0d8969897e8b7e934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Batista?= Date: Fri, 14 Apr 2023 15:08:18 -0300 Subject: [PATCH] export root --- d2cli/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d2cli/main.go b/d2cli/main.go index b55ff47f3..89abb9a00 100644 --- a/d2cli/main.go +++ b/d2cli/main.go @@ -694,7 +694,7 @@ func renderPDF(ctx context.Context, ms *xmain.State, plugin d2plugin.Plugin, opt var currBoardPath []string // Root board doesn't have a name, so we use the output filename if diagram.Name == "" { - currBoardPath = append(boardPath, getFileName(outputPath)) + currBoardPath = append(boardPath, "root") } else { currBoardPath = append(boardPath, diagram.Name) } @@ -781,7 +781,7 @@ func renderPPTX(ctx context.Context, ms *xmain.State, presentation *pptx.Present var currBoardPath []string // Root board doesn't have a name, so we use the output filename if diagram.Name == "" { - currBoardPath = append(boardPath, getFileName(outputPath)) + currBoardPath = append(boardPath, "root") } else { currBoardPath = append(boardPath, diagram.Name) }