Skip to content

Commit

Permalink
DOC: add preview of AmpForm-DPD model deserialization (#47)
Browse files Browse the repository at this point in the history
* DX: add Jupyter Lab and related extensions
* DX: avoid duplicate workflow runs per PR
* DX: upload caches in `~/.cache` folder
* DX: set `PYTHONHASHSEED`
* MAINT: add `.virtual_documents` to .gitignore
  • Loading branch information
redeboer authored May 28, 2024
1 parent 1548366 commit b1831bc
Show file tree
Hide file tree
Showing 11 changed files with 7,904 additions and 254 deletions.
10 changes: 10 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
"addWords": true,
"name": "physics",
"path": "./.cspell/physics.txt"
},
{
"addWords": true,
"name": "python",
"path": "./.cspell/python.txt"
}
],
"enableFiletypes": ["julia", "quarto"],
Expand All @@ -25,6 +30,7 @@
".github/workflows",
".gitignore",
".pre-commit-config.yaml",
".prettierignore",
".taplo.toml",
".vscode/*.json",
"json_options.jl",
Expand All @@ -42,6 +48,10 @@
{
"dictionaries": ["julia", "physics", "project"],
"languageId": ["julia", "quarto", "text"]
},
{
"dictionaries": ["physics", "project", "python"],
"languageId": ["julia", "quarto", "text"]
}
],
"version": "0.2"
Expand Down
1 change: 1 addition & 0 deletions .cspell/physics.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ lineshape
lineshapes
parametrizations
recoupling
recouplings
Weisskopf
1 change: 1 addition & 0 deletions .cspell/project.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
callout
Mikhasenko
Misha
multline
Expand Down
21 changes: 21 additions & 0 deletions .cspell/python.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ampform
aslatex
figsize
funcs
isnan
Kallen
lambdify
linspace
matplotlib
meshgrid
nansum
numpy
pathlib
pcolormesh
phasespace
pyplot
sympy
tqdm
xlabel
xreplace
ylabel
18 changes: 18 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
name: Documentation

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: |-
${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}
env:
PYTHONHASHSEED: "0"

on:
pull_request:
branches:
Expand Down Expand Up @@ -36,6 +44,16 @@ jobs:
jupyter-cache
path: |
**/.jupyter_cache
- name: General caches
uses: actions/cache@v4
with:
key: |
home-cache-${{hashFiles('pixi.lock')}}-${{hashFiles('docs/*/*.md')}}
restore-keys: |
home-cache-${{hashFiles('pixi.lock')}}
home-cache
path: |
~/.cache
- run: pixi run doc
- if: always()
uses: actions/upload-pages-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.egg-info/
.ipynb_checkpoints/
.pixi/
.virtual_documents/
_build/
node_modules/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.ipynb
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[quarto]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
Expand Down
Loading

0 comments on commit b1831bc

Please sign in to comment.