Skip to content

Commit

Permalink
Tips & tricks documentation (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicalNinjaDad committed May 22, 2024
1 parent cb54f5c commit 4b954d4
Show file tree
Hide file tree
Showing 17 changed files with 1,420 additions and 155 deletions.
27 changes: 23 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
"extensions": [
// rust
"rust-lang.rust-analyzer",
"andrewbrey.rust-test-highlight",
// python
"ms-python.python",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
// configs, docs, etc.
"DavidAnson.vscode-markdownlint",
"tamasfe.even-better-toml"
// DISABLE spell checking for now as exclusions not working ... TODO
// "streetsidesoftware.code-spell-checker",
// "streetsidesoftware.code-spell-checker-british-english"
],
"settings": {
// rust
Expand All @@ -31,6 +33,25 @@
120
]
},
// docs
"markdownlint.config": {
"MD013": false, // let the editor wrap lines not the author
// multi-paragraph admonitions in mkdocs-material are considered indented code blocks
// see also ... for possible improvements via a plugin:
// - https://github.com/DavidAnson/vscode-markdownlint/issues/180
// - https://github.com/DavidAnson/vscode-markdownlint/issues/302
// - https://github.com/DavidAnson/markdownlint/issues/209
"MD046": false // {"style": "fenced"} leads to errors on codeblocks in admonitions
},
"[markdown]": {
"editor.tabSize": 2,
"editor.detectIndentation": false
},
// DISABLE spell checking for now as exclusions not working ... TODO
// "cSpell.language": "en",
// "cSpell.checkOnlyEnabledFileTypes": true,
// "cSpell.enabledFileTypes": {"markdown": true, "json": false},

// shell
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
Expand All @@ -41,7 +62,5 @@
}
}
},
"updateContentCommand": {
"reset-check": "just reset check"
}
"updateContentCommand": "just reset check"
}
62 changes: 62 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Deploy mkdocs site to Pages

on:
push:
branches:
- "main"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write


# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false


jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Build with mkdocs
run: mkdocs build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./site

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Empty file removed .gitmodules
Empty file.
3 changes: 3 additions & 0 deletions docs/coverage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Code coverage

... :material-traffic-cone: coming soon :material-traffic-cone: ...
Loading

0 comments on commit 4b954d4

Please sign in to comment.