You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add hot reload for the watch command (#627) (#629)
* Add server side hot reload message cycling for the watch command
* Add substitution-based injection of hot reload script into templates
* add note for watch script to styling docs
* Incorporate review-requested changes
Co-authored-by: Don Syme <[email protected]>
Copy file name to clipboardexpand all lines: docs/styling.md
+6
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,12 @@ If you write a new theme by CSS styling please contribute it back to FSharp.Form
104
104
You can do advanced styling by creating a new template. Add a file `docs/_template.html`, likely starting
105
105
with the existing default template.
106
106
107
+
To enable hot reload during development with `fsdocs watch` in a custom `_template.html` file, make sure to add the following line to your `<head>` tag:
108
+
109
+
```
110
+
{{fsdocs-watch-script}}
111
+
```
112
+
107
113
> NOTE: There is no guarantee that your template will continue to work with future versions of F# Formatting.
108
114
> If you do develop a good template please consider contributing it back to F# Formatting.
0 commit comments