commit
40c0f4f605
2 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#### Improvements 🧹
|
#### Improvements 🧹
|
||||||
|
|
||||||
|
- `<title>` 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 ⛑️
|
#### Bugfixes ⛑️
|
||||||
|
|
||||||
- Code blocks are not affected by uppercasing from special themes like Terminal. [#1053](https://github.com/terrastruct/d2/pull/1053)
|
- Code blocks are not affected by uppercasing from special themes like Terminal. [#1053](https://github.com/terrastruct/d2/pull/1053)
|
||||||
|
|
|
||||||
|
|
@ -433,7 +433,7 @@ func (w *watcher) handleRoot(hw http.ResponseWriter, r *http.Request) {
|
||||||
<div id="d2-err" style="display: none"></div>
|
<div id="d2-err" style="display: none"></div>
|
||||||
<div id="d2-svg-container"></div>
|
<div id="d2-svg-container"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>`, w.outputPath, w.devMode)
|
</html>`, filepath.Base(w.outputPath), w.devMode)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *watcher) handleWatch(hw http.ResponseWriter, r *http.Request) error {
|
func (w *watcher) handleWatch(hw http.ResponseWriter, r *http.Request) error {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue