Skip to content

Commit

Permalink
vscode settings + ci test
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Jauffret <reg-github@geo6.net>
  • Loading branch information
tuxtof committed Nov 17, 2022
1 parent 482150d commit e7503e9
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: testing
on:
push:
pull_request:

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdocs build -s
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@

site/
.DS_Store
.vscode
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"yaml.schemas": {
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
}
}
25 changes: 25 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Previewing your site",
"type": "shell",
"command": "mkdocs serve",
"isBackground": true,
"group": "test",
"presentation": {
"reveal": "always"
}
},
{
"label": "Previewing your site with Docker",
"type": "shell",
"command": "docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material",
"isBackground": true,
"group": "test",
"presentation": {
"reveal": "always"
}
}
]
}

0 comments on commit e7503e9

Please # to comment.