Skip to content

Commit

Permalink
Change website build from singlehtml to html
Browse files Browse the repository at this point in the history
  • Loading branch information
NoraLoose committed Aug 18, 2023
1 parent f84aa0a commit 517cb1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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 -r ../README.md demo_notebooks .; jupyter-book build . --builder singlehtml'
build_command: 'cp -r ../README.md 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"
4 changes: 2 additions & 2 deletions website/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ conda activate climsim-docs-env
and run the following command to build the website locally

```bash
jupyter-book build . --builder singlehtml
jupyter-book build .
```

The HTML content will be built in a folder called `_build` and can be viewed by opening the file `_build/singlehtml/index.html` in a browser.
The HTML content will be built in a folder called `_build` and can be viewed by opening the file `_build/html/index.html` in a browser.

0 comments on commit 517cb1d

Please sign in to comment.