Skip to content

Commit

Permalink
Install pagefind in devcontainer (#3901)
Browse files Browse the repository at this point in the history
Co-authored-by: H. Árkosi Róbert <[email protected]>
  • Loading branch information
jesserockz and nagyrobi authored Jun 4, 2024
1 parent 80fe66a commit b21af22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"name": "ESPHome - docs",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11",
"postCreateCommand": "pip3 install -r requirements.txt -r requirements_test.txt",
"postCreateCommand": ".devcontainer/postCreate.sh",
"postAttachCommand": "make live-html",
"forwardPorts": [8000],
"features": {
Expand Down
5 changes: 5 additions & 0 deletions .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash


pip3 install -r requirements.txt -r requirements_test.txt
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
2 changes: 1 addition & 1 deletion lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def lint_ext_check(fname: str, stat: os.stat_result):
)


@lint_file_check(exclude=["script/*", "lint.py"])
@lint_file_check(exclude=["script/*", ".devcontainer/*", "lint.py"])
def lint_executable_bit(fname: str, stat: os.stat_result):
ex = EXECUTABLE_BIT[fname]
if ex != 100644:
Expand Down

0 comments on commit b21af22

Please sign in to comment.