Skip to content

Commit b21af22

Browse files
jesserockznagyrobi
andauthored
Install pagefind in devcontainer (#3901)
Co-authored-by: H. Árkosi Róbert <[email protected]>
1 parent 80fe66a commit b21af22

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"name": "ESPHome - docs",
44
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11",
5-
"postCreateCommand": "pip3 install -r requirements.txt -r requirements_test.txt",
5+
"postCreateCommand": ".devcontainer/postCreate.sh",
66
"postAttachCommand": "make live-html",
77
"forwardPorts": [8000],
88
"features": {

.devcontainer/postCreate.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
4+
pip3 install -r requirements.txt -r requirements_test.txt
5+
curl -L https://github.com/CloudCannon/pagefind/releases/download/v1.1.0/pagefind-v1.1.0-x86_64-unknown-linux-musl.tar.gz | tar -xz -C ~/.local/bin

lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def lint_ext_check(fname: str, stat: os.stat_result):
251251
)
252252

253253

254-
@lint_file_check(exclude=["script/*", "lint.py"])
254+
@lint_file_check(exclude=["script/*", ".devcontainer/*", "lint.py"])
255255
def lint_executable_bit(fname: str, stat: os.stat_result):
256256
ex = EXECUTABLE_BIT[fname]
257257
if ex != 100644:

0 commit comments

Comments
 (0)