Skip to content

Commit e198dc3

Browse files
committed
Update docs
1 parent a1aab9a commit e198dc3

File tree

3 files changed

+29
-27
lines changed

3 files changed

+29
-27
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

5+
## [1.6.2] -
6+
7+
- Update documentation.
8+
59
## [1.6.1] - 2020-12-31
610

711
- Update documentation.

README.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Linked `[<link rel="stylesheet">]` and embedded `[<style></style>]` style sheets
2929
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
3030

3131
<!-- (2) Local style sheet relative to workspace folder -->
32-
<link rel="stylesheet" href="/site.css">
32+
<link rel="stylesheet" href="/style.css">
3333

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

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

4040
<!-- (5) Embedded style sheet -->
4141
<style>
@@ -62,7 +62,7 @@ Linked `[<link rel="stylesheet">]` and embedded `[<style></style>]` style sheets
6262
```
6363
All local links point to the same file which is in the root of workspace folder:
6464

65-
**`site.css`**
65+
**`style.css`**
6666
```css
6767
.external {
6868
display: block;
@@ -130,33 +130,29 @@ Styles defined in `base.html` will also be available for completion in `home.htm
130130
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:
131131

132132
**`.vscode/settings.json`**
133-
```js
134-
"css.styleSheets": [
135-
136-
// (1)
137-
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css",
138-
139-
// (2)
140-
"/site.css",
141-
142-
// (3)
143-
"site.css",
144-
145-
// (4)
146-
"./site.css"
147-
]
133+
```json
134+
{
135+
"css.styleSheets": [
136+
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css",
137+
"/style.css",
138+
"style.css",
139+
"./style.css"
140+
]
141+
}
148142
```
149143

150-
All relative paths will be evaluated relative to the HTML file being edited.
144+
This configuration is same as the first example. All relative paths will be evaluated relative to the HTML file being edited.
151145

152146
## Selector Validation
153147

154148
Validated selectors can be configured with the `css.validation` setting. By default `class` selectors are validated:
155149

156150
```json
157-
"css.validation": {
158-
"id": false,
159-
"class": true
151+
{
152+
"css.validation": {
153+
"id": false,
154+
"class": true
155+
}
160156
}
161157
```
162158

@@ -165,9 +161,11 @@ Validated selectors can be configured with the `css.validation` setting. By defa
165161
Supported languages can be configured with the `css.enabledLanguages` setting. By default `html` is enabled:
166162

167163
```json
168-
"css.enabledLanguages": [
169-
"html"
170-
]
164+
{
165+
"css.enabledLanguages": [
166+
"html"
167+
]
168+
}
171169
```
172170

173171
Extension can be configured to support any language where it makes sense such as `nunjucks`, `twig`, `mustache`, etc. You should also install corresponding language extension which registers the language id in VS Code.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-html-css",
33
"displayName": "HTML CSS Support",
44
"description": "CSS Intellisense for HTML",
5-
"version": "1.6.1",
5+
"version": "1.6.2",
66
"publisher": "ecmel",
77
"license": "MIT",
88
"homepage": "https://github.com/ecmel/vscode-html-css",

0 commit comments

Comments
 (0)