From 396df435816f3830a26955347ac1e13132726bcf Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Fri, 17 Mar 2023 20:32:45 -0700 Subject: [PATCH 1/2] fix watch title --- d2cli/watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2cli/watch.go b/d2cli/watch.go index ca2280dc0..9e3e80010 100644 --- a/d2cli/watch.go +++ b/d2cli/watch.go @@ -433,7 +433,7 @@ func (w *watcher) handleRoot(hw http.ResponseWriter, r *http.Request) {
-`, w.outputPath, w.devMode) +`, filepath.Base(w.outputPath), w.devMode) } func (w *watcher) handleWatch(hw http.ResponseWriter, r *http.Request) error { From d3c1a3378e86add11996eb2d3824b949a7401756 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Fri, 17 Mar 2023 20:33:38 -0700 Subject: [PATCH 2/2] changelog --- ci/release/changelogs/next.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md index 655f60d58..d895d4148 100644 --- a/ci/release/changelogs/next.md +++ b/ci/release/changelogs/next.md @@ -2,6 +2,8 @@ #### Improvements 🧹 +- `` attribute of HTML in watch mode is the base file name, instead of the whole path. [#1054](https://github.com/terrastruct/d2/pull/1054) + #### Bugfixes ⛑️ - Code blocks are not affected by uppercasing from special themes like Terminal. [#1053](https://github.com/terrastruct/d2/pull/1053)