Skip to content

Commit 3c826d9

Browse files
authored
Merge branch 'main' into origin/ioana.circu-logging
2 parents 4550a2b + db54d04 commit 3c826d9

File tree

22 files changed

+1201
-52
lines changed

22 files changed

+1201
-52
lines changed

.github/workflows/sphinx.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Sphinx build
2+
3+
on:
4+
# Push/Pull for main branch.
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
# Run workflow manually from actions tab.
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
# Specify an OS for the runner
16+
runs-on: ubuntu-latest
17+
18+
#Define steps
19+
steps:
20+
21+
# Firstly, checkout repo
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
# Set up Python env
25+
- name: Setup Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: 3.11
29+
# Install dependencies
30+
- name: Install Python dependencies
31+
run: |
32+
python3 -m pip install --upgrade pip
33+
pip3 install poetry
34+
poetry install
35+
36+
- name: Build documentation
37+
run: |
38+
mkdir gh-pages
39+
touch gh-pages/.nojekyll
40+
pushd docs/source/
41+
poetry run sphinx-build -b html . _build
42+
popd
43+
cp -r docs/source/_build/* gh-pages/
44+
45+
- name: Upload artifacts
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: html-docs
49+
path: gh-pages
50+
# Deploys to the gh-pages branch if the commit was made to main, the
51+
# gh-pages then takes over serving the html
52+
- name: Deploy documentation
53+
if: ${{ github.event_name == 'push' }}
54+
uses: JamesIves/[email protected]
55+
with:
56+
branch: gh-pages
57+
folder: gh-pages

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ jsons/
22
settings.json
33
local/
44
localcache/
5+
*pyc
56
build/
6-
*.pyc

LICENSE

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2023-2024, Centre of Environmental Data Analysis Developers,
4+
Scientific and Technical Facilities Council (STFC),
5+
UK Research and Innovation (UKRI).
6+
All rights reserved.
7+
8+
Redistribution and use in source and binary forms, with or without
9+
modification, are permitted provided that the following conditions are met:
10+
11+
1. Redistributions of source code must retain the above copyright notice, this
12+
list of conditions and the following disclaimer.
13+
14+
2. Redistributions in binary form must reproduce the above copyright notice, this
15+
list of conditions and the following disclaimer in the documentation and/or other
16+
materials provided with the distribution.
17+
18+
3. Neither the name of the copyright holder nor the names of its contributors
19+
may be used to endorse or promote products derived from this software without
20+
specific prior written permission.
21+
22+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
23+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
File renamed without changes.
File renamed without changes.

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/source/_images/ceda.png

48.1 KB
Loading
1.38 MB
Loading

0 commit comments

Comments
 (0)