Install pagefind in devcontainer (#3901)

Co-authored-by: H. Árkosi Róbert <robreg@zsurob.hu>
This commit is contained in:
Jesse Hills 2024-06-05 11:58:20 +12:00 committed by GitHub
parent 80fe66a9aa
commit b21af22549
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -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": {

5
.devcontainer/postCreate.sh Executable file
View File

@ -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

View File

@ -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: