Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions content/docs/command-reference/plots/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,18 @@ header (first row) are equivalent to field names.

## HTML templates

By default, the plots generated by `dvc plots` require Internet access to
load Vega JavaScript libraries. It's possible to supply a custom HTML file to
the `--html-template` option of `dvc plot show` and `dvc plot diff` when the
By default, the plots generated by `dvc plots` require Internet access to load
Vega JavaScript libraries. It's possible to supply a custom HTML file to the
`--html-template` option of `dvc plot show` and `dvc plot diff` when the
Internet access is not available.

> ⚠️ This is a separate feature from
> [custom Vega templates](/doc/command-reference/plots#custom-templates).
> `--html-template` provides a custom HTML file to inject plots generated
> by DVC.
> `--html-template` provides a custom HTML file to inject plots generated by
> DVC.

You can create an HTML file with `<script>` references to local Vega libraries. Use
`{plot_divs}` as a placeholder for DVC to inject the plot images. See
You can create an HTML file with `<script>` references to local Vega libraries.
Use `{plot_divs}` as a placeholder for DVC to inject the plot images. See
[this example](/doc/command-reference/plots#example-for-the-html-template) for
details.

Expand Down Expand Up @@ -306,15 +306,15 @@ Create the following HTML file with your text editor:

Note that this is a standard HTML file with only `{plot_divs}` as a placeholder
for the generated plots. `<script>` tags in this file point to the local
JavaScript libraries we downloaded above. Supposing this template was
named `.dvc/page_template.html`, we can use it like this:
JavaScript libraries we downloaded above. Supposing this template was named
`.dvc/page_template.html`, we can use it like this:

```dvc
$ dvc plots show --html-template .dvc/page_template.html
```

You can also make it the default HTML template by setting it as
`dvc config` parameter `plots.html_template`.
You can also make it the default HTML template by setting it as `dvc config`
parameter `plots.html_template`.

```dvc
$ dvc config plots.html_template page_template.html
Expand Down