Skip to content

Commit 00550ae

Browse files
committed
Update docs
1 parent e04dadc commit 00550ae

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
All notable changes to the extension will be documented in this file.
44

5-
## [1.8.2] -
5+
## [1.9.0] - 2021-01-16
66

77
- Added Clear Cache command.
8+
- Update documentation.
89

910
## [1.8.1] - 2021-01-15
1011

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,21 @@ Linked `[<link rel="stylesheet">]` and embedded `[<style></style>]` style sheets
2424
<html>
2525

2626
<head>
27-
<!-- (1) Remote style sheet -->
27+
<!-- Remote style sheet -->
28+
2829
<link rel="stylesheet"
2930
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
31+
32+
<!-- Local style sheet relative to workspace folder -->
3033

31-
<!-- (2) Local style sheet relative to workspace folder -->
3234
<link rel="stylesheet" href="/style.css">
3335

34-
<!-- (3) Local style sheet relative to this file -->
35-
<link rel="stylesheet" href="style.css">
36+
<!-- Local style sheet relative to this file -->
3637

37-
<!-- (4) Local style sheet relative to this file -->
38-
<link rel="stylesheet" href="./style.css">
38+
<link rel="stylesheet" href="style.css">
3939

40-
<!-- (5) Embedded style sheet -->
40+
<!-- Embedded style sheet -->
41+
4142
<style>
4243
#content {
4344
display: block;
@@ -127,7 +128,9 @@ Styles defined in `base.html` will also be available for completion in `home.htm
127128

128129
## Additional Style Sheets
129130

130-
If it is not possible to specify local or remote styles in HTML or via template inheritance, they can be specified in VS Code settings per workspace folder in `.vscode/settings.json` and will suggest for all HTML files within that workspace folder:
131+
If it is not possible to specify local or remote styles in HTML or via template inheritance, they can be specified in VS Code settings per workspace folder in `.vscode/settings.json` and will suggest for all HTML files within that workspace folder.
132+
133+
### Example
131134

132135
**`.vscode/settings.json`**
133136
```json
@@ -136,13 +139,12 @@ If it is not possible to specify local or remote styles in HTML or via template
136139
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css",
137140
"/style.css",
138141
"style.css",
139-
"./style.css",
140-
"./${fileBasenameNoExtension}.css"
142+
"${fileBasenameNoExtension}.css"
141143
]
142144
}
143145
```
144146

145-
All relative paths will be evaluated relative to the HTML file being edited. `${fileBasenameNoExtension}` will be replaced with the base name of the file being edited.
147+
All relative paths will be evaluated relative to the file being edited. `${fileBasenameNoExtension}` will be replaced with the file name of the file being edited without extension.
146148

147149
## Supported Languages
148150

@@ -166,6 +168,10 @@ This setting is application scoped and changing the setting requires restarting
166168

167169
Validates all `id` and `class` attributes in the active editor.
168170

171+
### Clear Cache
172+
173+
Clears file cache.
174+
169175
## Installation
170176

171177
Extension can be installed from [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css).

0 commit comments

Comments
 (0)