Skip to content

Commit df1c553

Browse files
authored
Add the first version of the website (with documentation) (#65)
* Add the first version of the website/documentation In addition: - Remove experiment description and config files Since sample configuration files of the experiments and the experiment descriptions are now available in the website, they have been removed from the main chemex code base. - Add DNA/RNA atom names and scalar coupling - Add circular shift to D-/cos-CEST plots - Correct some examples - Correct `statistics.toml` formatting - Move from Levenshtein to rapidfuzz - Fix bugs due to new Rich version - Change license to GPL version 3 * Add GitHub actions for the website deployment * Correct links in the documentation * Add github action to publish to PyPI
1 parent b021650 commit df1c553

File tree

309 files changed

+31500
-4752
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

309 files changed

+31500
-4752
lines changed

.github/workflows/deploy.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
release:
5+
types: [published]
6+
paths:
7+
- ".github/workflows/deploy.yml"
8+
- "website/**"
9+
# Review gh actions docs if you want to further define triggers, paths, etc
10+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
11+
12+
jobs:
13+
deploy:
14+
name: Deploy to GitHub Pages
15+
runs-on: ubuntu-latest
16+
defaults:
17+
run:
18+
working-directory: ./website
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions/setup-node@v3
22+
with:
23+
node-version: 18
24+
cache: npm
25+
cache-dependency-path: website/package-lock.json
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Build website
29+
run: npm run build
30+
31+
# Popular action to deploy to GitHub Pages:
32+
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
33+
- name: Deploy to GitHub Pages
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
# Build output to publish to the `gh-pages` branch:
38+
publish_dir: ./website/build
39+
# The following lines assign commit authorship to the official
40+
# GH-Actions bot for deploys to `gh-pages` branch:
41+
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
42+
# The GH actions bot is used by default if you didn't specify the two fields.
43+
# You can swap them out with your own user credentials.
44+
user_name: github-actions[bot]
45+
user_email: 41898282+github-actions[bot]@users.noreply.github.com
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2+
3+
on: push
4+
5+
jobs:
6+
build-n-publish:
7+
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- name: Set up Python 3.10
12+
uses: actions/setup-python@v3
13+
with:
14+
python-version: "3.10"
15+
- name: Install pypa/build
16+
run: >-
17+
python -m
18+
pip install
19+
build
20+
--user
21+
- name: Build a binary wheel and a source tarball
22+
run: >-
23+
python -m
24+
build
25+
--sdist
26+
--wheel
27+
--outdir dist/
28+
.
29+
- name: Publish distribution 📦 to Test PyPI
30+
uses: pypa/gh-action-pypi-publish@release/v1
31+
with:
32+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
33+
repository_url: https://test.pypi.org/legacy/
34+
- name: Publish distribution 📦 to PyPI
35+
if: startsWith(github.ref, 'refs/tags')
36+
uses: pypa/gh-action-pypi-publish@release/v1
37+
with:
38+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/test-deploy.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- ".github/workflows/test-deploy.yml"
9+
- "website/**"
10+
# Review gh actions docs if you want to further define triggers, paths, etc
11+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
12+
13+
jobs:
14+
test-deploy:
15+
name: Test deployment
16+
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
working-directory: ./website
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v3
23+
with:
24+
node-version: 18
25+
cache: npm
26+
cache-dependency-path: website/package-lock.json
27+
- name: Install dependencies
28+
run: npm ci
29+
- name: Test build website
30+
run: npm run build

.pre-commit-config.yaml

+33-40
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,39 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.1.0
4-
hooks:
5-
- id: trailing-whitespace
6-
- id: end-of-file-fixer
7-
- id: check-added-large-files
8-
- id: check-case-conflict # Check for files that would conflict in case-insensitive filesystems
9-
- id: check-merge-conflict # Check for files that contain merge conflict strings.
10-
- id: check-toml # Check toml files for parseable syntax.
11-
- id: debug-statements # Check for debugger imports and py37+ `breakpoint()` calls in python source.
12-
- id: forbid-new-submodules # Check for git submodules
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-case-conflict # Check for files that would conflict in case-insensitive filesystems
8+
- id: check-merge-conflict # Check for files that contain merge conflict strings.
9+
- id: check-toml # Check toml files for parseable syntax.
10+
- id: debug-statements # Check for debugger imports and py37+ `breakpoint()` calls in python source.
11+
- id: forbid-new-submodules # Check for git submodules
1312

14-
- repo: https://github.com/pycqa/flake8
15-
rev: 4.0.1
16-
hooks:
17-
- id: flake8
13+
- repo: https://github.com/pycqa/flake8
14+
rev: 5.0.4
15+
hooks:
16+
- id: flake8
1817

19-
- repo: https://github.com/bwhmather/ssort
20-
rev: v0.10.2
21-
hooks:
22-
- id: ssort
18+
- repo: https://github.com/bwhmather/ssort
19+
rev: v0.11.6
20+
hooks:
21+
- id: ssort
2322

24-
- repo: https://github.com/asottile/reorder_python_imports
25-
rev: v2.7.1
26-
hooks:
27-
- id: reorder-python-imports
28-
args: [--py39-plus]
23+
- repo: https://github.com/asottile/reorder_python_imports
24+
rev: v3.8.2
25+
hooks:
26+
- id: reorder-python-imports
27+
args: [--py39-plus]
2928

30-
- repo: https://github.com/asottile/pyupgrade
31-
rev: v2.31.0
32-
hooks:
33-
- id: pyupgrade
34-
args: [--py39-plus, --keep-runtime-typing]
29+
- repo: https://github.com/asottile/pyupgrade
30+
rev: v2.37.3
31+
hooks:
32+
- id: pyupgrade
33+
args: [--py39-plus, --keep-runtime-typing]
3534

36-
- repo: https://github.com/codespell-project/codespell
37-
rev: v2.1.0
38-
hooks:
39-
- id: codespell
40-
args: ["-L", "reson,noe,2st,3st,ba,ser"]
41-
42-
- repo: https://github.com/psf/black
43-
rev: 22.1.0 # Replace by any tag/version: https://github.com/psf/black/tags
44-
hooks:
45-
- id: black
46-
language_version: python3.9
35+
- repo: https://github.com/psf/black
36+
rev: 22.8.0 # Replace by any tag/version: https://github.com/psf/black/tags
37+
hooks:
38+
- id: black
39+
language_version: python3.9

.readthedocs.yml

-24
This file was deleted.

LICENSE

-22
This file was deleted.

0 commit comments

Comments
 (0)