Skip to content

Commit

Permalink
DOC: update links to compwa.github.io (#208)
Browse files Browse the repository at this point in the history
* DX: switch to Python 3.9 in developer environment
* FIX: update syntax for feynman package
  • Loading branch information
redeboer authored Jan 20, 2024
1 parent 7cc6539 commit 3dafc9f
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 29 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
],
"ignoreWords": [
"Colab",
"IPython",
"MAINT",
"arange",
"attribs",
Expand Down
4 changes: 2 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
tasks:
- init: pyenv local 3.8
- init: pip install -c .constraints/py3.8.txt -e .[dev]
- init: pyenv local 3.9
- init: pip install -c .constraints/py3.9.txt -e .[dev]

github:
prebuilds:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/ComPWA/policy
rev: 0.2.0
rev: 0.2.2
hooks:
- id: check-dev-files
args:
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ formats:
build:
os: ubuntu-22.04
tools:
python: "3.8"
python: "3.9"
apt_packages:
- graphviz
jobs:
post_install:
- pip install -c .constraints/py3.8.txt -e .[doc]
- pip install -c .constraints/py3.9.txt -e .[doc]
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/ComPWA/PWA-pages)
[![GitPod](https://img.shields.io/badge/gitpod-open-blue?logo=gitpod)](https://gitpod.io/#https://github.com/ComPWA/PWA-pages)

See instructions at
[compwa-org.rtfd.io/en/stable/develop.html](https://compwa-org.readthedocs.io/develop.html)!
See instructions at [compwa.github.io/develop](https://compwa.github.io/develop)!
5 changes: 2 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ TensorWaves <https://tensorwaves.rtfd.io>
caption: ComPWA Organization
hidden:
---
Website <https://compwa-org.readthedocs.io>
Website <https://compwa.github.io>
GitHub Repositories <https://github.com/ComPWA>
Help developing <https://compwa-org.readthedocs.io/develop.html>
About <https://compwa-org.readthedocs.io/about.html>
Help developing <https://compwa.github.io/develop>
```
42 changes: 27 additions & 15 deletions docs/introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@
"s_channel = Diagram(ax[0])\n",
"# Vertices\n",
"v_p1 = s_channel.vertex(xy=(0.1, 0.7), marker=\"\")\n",
"v_p2 = s_channel.vertex(v_p1.xy, dy=-0.6, marker=\"\")\n",
"v_p3 = s_channel.vertex(v_p1.xy, dx=0.8, marker=\"\")\n",
"v_p4 = s_channel.vertex(v_p3.xy, dy=-0.6, marker=\"\")\n",
"v1 = s_channel.vertex(v_p1.xy, dx=0.2, dy=-0.3, marker=\"\")\n",
"v2 = s_channel.vertex(v_p3.xy, dx=-0.2, dy=-0.3, marker=\"\")\n",
"v_p2 = s_channel.vertex(tuple(v_p1.xy), dy=-0.6, marker=\"\")\n",
"v_p3 = s_channel.vertex(tuple(v_p1.xy), dx=0.8, marker=\"\")\n",
"v_p4 = s_channel.vertex(tuple(v_p3.xy), dy=-0.6, marker=\"\")\n",
"v1 = s_channel.vertex(tuple(v_p1.xy), dx=0.2, dy=-0.3, marker=\"\")\n",
"v2 = s_channel.vertex(tuple(v_p3.xy), dx=-0.2, dy=-0.3, marker=\"\")\n",
"# Lines\n",
"p1 = s_channel.line(v_p1, v1, arrow=False)\n",
"p2 = s_channel.line(v1, v_p2, arrow=False)\n",
Expand All @@ -284,11 +284,11 @@
"t_channel = Diagram(ax[1])\n",
"# Vertices\n",
"v_p1 = t_channel.vertex(xy=(0.1, 0.7), marker=\"\")\n",
"v_p2 = t_channel.vertex(v_p1.xy, dy=-0.6, marker=\"\")\n",
"v_p3 = t_channel.vertex(v_p1.xy, dx=0.8, marker=\"\")\n",
"v_p4 = t_channel.vertex(v_p3.xy, dy=-0.6, marker=\"\")\n",
"v1 = t_channel.vertex(v_p1.xy, dx=0.4, dy=-0.15, marker=\"\")\n",
"v2 = t_channel.vertex(v_p2.xy, dx=0.4, dy=+0.15, marker=\"\")\n",
"v_p2 = t_channel.vertex(tuple(v_p1.xy), dy=-0.6, marker=\"\")\n",
"v_p3 = t_channel.vertex(tuple(v_p1.xy), dx=0.8, marker=\"\")\n",
"v_p4 = t_channel.vertex(tuple(v_p3.xy), dy=-0.6, marker=\"\")\n",
"v1 = t_channel.vertex(tuple(v_p1.xy), dx=0.4, dy=-0.15, marker=\"\")\n",
"v2 = t_channel.vertex(tuple(v_p2.xy), dx=0.4, dy=+0.15, marker=\"\")\n",
"# Lines\n",
"p1 = t_channel.line(v_p1, v1, arrow=False)\n",
"p2 = t_channel.line(v1, v_p3, arrow=False)\n",
Expand All @@ -307,11 +307,11 @@
"u_channel = Diagram(ax[2])\n",
"# Vertices\n",
"v_p1 = u_channel.vertex(xy=(0.1, 0.7), marker=\"\")\n",
"v_p2 = u_channel.vertex(v_p1.xy, dy=-0.6, marker=\"\")\n",
"v_p3 = u_channel.vertex(v_p1.xy, dx=0.8, marker=\"\")\n",
"v_p4 = u_channel.vertex(v_p3.xy, dy=-0.6, marker=\"\")\n",
"v1 = u_channel.vertex(v_p1.xy, dx=0.4, dy=-0.15, marker=\"\")\n",
"v2 = u_channel.vertex(v_p2.xy, dx=0.4, dy=+0.15, marker=\"\")\n",
"v_p2 = u_channel.vertex(tuple(v_p1.xy), dy=-0.6, marker=\"\")\n",
"v_p3 = u_channel.vertex(tuple(v_p1.xy), dx=0.8, marker=\"\")\n",
"v_p4 = u_channel.vertex(tuple(v_p3.xy), dy=-0.6, marker=\"\")\n",
"v1 = u_channel.vertex(tuple(v_p1.xy), dx=0.4, dy=-0.15, marker=\"\")\n",
"v2 = u_channel.vertex(tuple(v_p2.xy), dx=0.4, dy=+0.15, marker=\"\")\n",
"# Lines\n",
"p1 = u_channel.line(v_p1, v1, arrow=False)\n",
"p2 = u_channel.line(v1, v_p4, arrow=False)\n",
Expand All @@ -337,6 +337,18 @@
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion docs/software.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"source": [
":::{tip}\n",
"\n",
"Have a look at [scikit-hep.org/developer](https://scikit-hep.org/developer) and [Towards a HEP Software Training curriculum](https://hepsoftwarefoundation.org/training/curriculum.html)! For development instructions for the ComPWA organization, see [Help developing](https://compwa-org.readthedocs.io/develop.html).\n",
"Have a look at [scikit-hep.org/developer](https://scikit-hep.org/developer) and [Towards a HEP Software Training curriculum](https://hepsoftwarefoundation.org/training/curriculum.html)! For development instructions for the ComPWA organization, see [Help developing](https://compwa.github.io/develop).\n",
"\n",
":::"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/software/amplitude-analysis-projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ projects:
url: https://github.com/ComPWA/ComPWA

- name: ComPWA project
url: https://compwa-org.readthedocs.io/about.html
url: https://compwa.github.io
sub_projects:
- name: QRules
url: https://github.com/ComPWA/qrules
Expand Down
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: pwa-pages
channels:
- defaults
dependencies:
- python==3.8.*
- python==3.9.*
- pip
- graphviz # for binder
- pip:
- -c .constraints/py3.8.txt -e .[dev]
- -c .constraints/py3.9.txt -e .[dev]
variables:
PRETTIER_LEGACY_CLI: "1"

0 comments on commit 3dafc9f

Please sign in to comment.