mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-10 19:57:49 +01:00
Install pagefind in devcontainer (#3901)
Co-authored-by: H. Árkosi Róbert <robreg@zsurob.hu>
This commit is contained in:
parent
80fe66a9aa
commit
b21af22549
@ -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
5
.devcontainer/postCreate.sh
Executable 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
|
2
lint.py
2
lint.py
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user