Skip to content

Commit

Permalink
Merge pull request #32 from NoraLoose/website
Browse files Browse the repository at this point in the history
Restructuring the website
  • Loading branch information
jerrylin96 authored Aug 18, 2023
2 parents 2196c1b + 69eb577 commit eae253f
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 137 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
environment_file: 'website/environment.yml'
environment_name: climsim-docs-env
path_to_notebooks: 'website'
build_command: 'cp ../README.md ../fig_1.png .; jupyter-book build . --builder singlehtml'
build_command: 'cp -r ../README.md ../fig_1.png demo_notebooks .; jupyter-book build .'
# this is a bit hacky, but the only way to 'inject' a shell command before the build.
output_path: '_build/singlehtml'
output_path: '_build/html'
deploy:
needs: build
#Trying this out to see if the auth problem is fixed
# uses: ./.github/workflows/deploy-book.yaml #hack until https://github.com/ProjectPythia/cookbook-actions/pull/45 is merged.
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
with:
publish_dir: "website/_build/singlehtml"
publish_dir: "website/_build/html"
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
website/_build/
website/fig_1.png
website/README.md
website/fig_1.png
website/demo_notebooks
.DS_Store

# Byte-compiled / optimized / DLL files
Expand Down Expand Up @@ -162,4 +163,4 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
#.idea/
Loading

0 comments on commit eae253f

Please sign in to comment.