Skip to content

Commit

Permalink
Merge pull request #90 from British-Oceanographic-Data-Centre/develop
Browse files Browse the repository at this point in the history
Updated name of notebooks directory
  • Loading branch information
roje-bodc authored Oct 31, 2023
2 parents 975fad2 + bb5ed53 commit 8102c5f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/markdown-altimetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ jobs:
cd $GITHUB_WORKSPACE/external
sudo apt install wget unzip -y
wget -q https://linkedsystems.uk/erddap/files/COAsT_example_files/COAsT_example_files.zip
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebooks/runnable_notebooks/altimetry/example_files
ls /home/runner/work/COAsT-site/COAsT-site/external/example_scripts/notebooks/runnable_notebooks/altimetry/example_files
mkdir -p ./example_scripts/notebooks/markdown/altimetry
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebook_tutorials/runnable_notebooks/altimetry/example_files
ls /home/runner/work/COAsT-site/COAsT-site/external/example_scripts/notebook_tutorials/runnable_notebooks/altimetry/example_files
mkdir -p ./example_scripts/notebook_tutorials/markdown/altimetry
ls ./example_scripts/notebooks
pip install .
mv config ./example_scripts/notebooks/runnable_notebooks/altimetry/config
mv config ./example_scripts/notebook_tutorials/runnable_notebooks/altimetry/config
bash notebook_to_md.sh altimetry
- name: convert notebooks
run: |
cd $GITHUB_WORKSPACE/external/example_scripts/notebooks/
cd $GITHUB_WORKSPACE/external/example_scripts/notebook_tutorials/
ls ./markdown
echo "Move altimetry markdown examples"
mv ./markdown/altimetry/altimetry_tutorial.md $GITHUB_WORKSPACE/site/content/en/docs/Examples/Notebooks/Altimetry/
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/markdown-general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ jobs:
cd $GITHUB_WORKSPACE/external
sudo apt install wget unzip -y
wget -q https://linkedsystems.uk/erddap/files/COAsT_example_files/COAsT_example_files.zip
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebooks/runnable_notebooks/general/example_files
ls /home/runner/work/COAsT-site/COAsT-site/external/example_scripts/notebooks/runnable_notebooks/general/example_files
mkdir -p ./example_scripts/notebooks/markdown/general
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebook_tutorials/runnable_notebooks/general/example_files
ls /home/runner/work/COAsT-site/COAsT-site/external/example_scripts/notebook_tutorials/runnable_notebooks/general/example_files
mkdir -p ./example_scripts/notebook_tutorials/markdown/general
ls ./example_scripts/notebooks
pip install .
mv config ./example_scripts/notebooks/runnable_notebooks/general/config
mv config ./example_scripts/notebook_tutorials/runnable_notebooks/general/config
bash notebook_to_md.sh general
- name: convert notebooks
run: |
cd $GITHUB_WORKSPACE/external/example_scripts/notebooks/
cd $GITHUB_WORKSPACE/external/example_scripts/notebook_tutorials/
ls ./markdown
echo "Move general stuff markdown examples"
mv ./markdown/general/export_to_netcdf_tutorial.md $GITHUB_WORKSPACE/site/content/en/docs/Examples/Notebooks/General/
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/markdown-gridded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ jobs:
cd $GITHUB_WORKSPACE/external
sudo apt install wget unzip -y
wget -q https://linkedsystems.uk/erddap/files/COAsT_example_files/COAsT_example_files.zip
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebooks/runnable_notebooks/gridded/example_files
ls /home/runner/work/COAsT-site/COAsT-site/external/example_scripts/notebooks/runnable_notebooks/gridded/example_files
mkdir -p ./example_scripts/notebooks/markdown/gridded
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebook_tutorials/runnable_notebooks/gridded/example_files
ls /home/runner/work/COAsT-site/COAsT-site/external/example_scripts/notebook_tutorials/runnable_notebooks/gridded/example_files
mkdir -p ./example_scripts/notebook_tutorials/markdown/gridded
ls ./example_scripts/notebooks
pip install .
mv config ./example_scripts/notebooks/runnable_notebooks/gridded/config
mv config ./example_scripts/notebook_tutorials/runnable_notebooks/gridded/config
bash notebook_to_md.sh gridded
- name: convert notebooks
run: |
cd $GITHUB_WORKSPACE/external/example_scripts/notebooks/
cd $GITHUB_WORKSPACE/external/example_scripts/notebook_tutorials/
ls ./markdown
echo "Move gridded markdown examples"
mv ./markdown/gridded/introduction_to_gridded_class.md $GITHUB_WORKSPACE/site/content/en/docs/Examples/Notebooks/Gridded/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/markdown-profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
cd $GITHUB_WORKSPACE/external
sudo apt install wget unzip rsync -y
wget -q https://linkedsystems.uk/erddap/files/COAsT_example_files/COAsT_example_files.zip
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebooks/runnable_notebooks/profile/example_files
ls /home/runner/work/COAsT-site/COAsT-site/external/example_scripts/notebooks/runnable_notebooks/profile/example_files
mkdir -p ./example_scripts/notebooks/markdown
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebook_tutorials/runnable_notebooks/profile/example_files
ls /home/runner/work/COAsT-site/COAsT-site/external/example_scripts/notebook_tutorials/runnable_notebooks/profile/example_files
mkdir -p ./example_scripts/notebook_tutorials/markdown
ls ./example_scripts/notebooks
pip install .
mv config ./example_scripts/notebooks/runnable_notebooks/profile/config
mv config ./example_scripts/notebook_tutorials/runnable_notebooks/profile/config
bash notebook_to_md.sh profile
- name: convert notebooks
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/markdown-tidegauge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ jobs:
cd $GITHUB_WORKSPACE/external
sudo apt install wget unzip -y
wget -q https://linkedsystems.uk/erddap/files/COAsT_example_files/COAsT_example_files.zip
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebooks/runnable_notebooks/tidegauge/example_files
ls /home/runner/work/COAsT-site/COAsT-site/external/example_scripts/notebooks/runnable_notebooks/tidegauge/example_files
mkdir -p ./example_scripts/notebooks/markdown/tidegauge
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebook_tutorials/runnable_notebooks/tidegauge/example_files
ls /home/runner/work/COAsT-site/COAsT-site/external/example_scripts/notebook_tutorials/runnable_notebooks/tidegauge/example_files
mkdir -p ./example_scripts/notebook_tutorials/markdown/tidegauge
ls ./example_scripts/notebooks
pip install .
mv config ./example_scripts/notebooks/runnable_notebooks/tidegauge/config
mv config ./example_scripts/notebook_tutorials/runnable_notebooks/tidegauge/config
bash notebook_to_md.sh tidegauge
- name: convert notebooks
run: |
cd $GITHUB_WORKSPACE/external/example_scripts/notebooks/
cd $GITHUB_WORKSPACE/external/example_scripts/notebook_tutorials/
ls ./markdown
pwd
ls ./markdown/tidegauge
Expand Down

0 comments on commit 8102c5f

Please sign in to comment.