Skip to content

Commit dfb9a43

Browse files
authored
Chore/devcontainer-config (#292)
This adds a codespace devcontainer configuration to make sure the Hugo Extended version is installed for all environments. I found using Win 10, the incorrect Hugo version is installed when using a GH Codespace, which doesn't allow for the use of the `make` command to build the docs locally without an error related to SASS ``` TOCSS: failed to transform "/main.scss" ``` This should provide more consistency for contributors. _ref: https://stackoverflow.com/a/55957784/8564731_ Signed-off-by: Jeremy Fiel <[email protected]>
1 parent 3f7a148 commit dfb9a43

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "hugo extended install for learnjsonschema.com",
3+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
4+
"features": {
5+
"ghcr.io/devcontainers/features/hugo:1": {
6+
"version": "latest",
7+
"extended": true
8+
},
9+
"ghcr.io/devcontainers/features/node": {
10+
"version": "lts",
11+
"installNpm": true
12+
}
13+
},
14+
"forwardPorts": [
15+
1313
16+
],
17+
"postCreateCommand": "npm i"
18+
}

0 commit comments

Comments
 (0)