Skip to content

How to make the notebooks work on a MySt site? #1084

Answered by agahkarakuzu
ErnestSuyver asked this question in Q&A
Discussion options

You must be logged in to vote

@ErnestSuyver I see that the html pages are built in the actions, but they are not pushed to GitHub pages ernestsuyver.github.io/CCL/ is not accessible.

I think the following configuration is needed:

project:
  thebe:
    binder:
      url: https://mybinder.org
      repo: ErnestSuyver/CCL
      ref: main

instead of

  binder: https://mybinder.org/v2/gh/ErnestSuyver/CCL/HEAD

in the myst.yml config file.

To publish on GitHub pages, you can replace actions/deploy-pages@v2 step with the following.

 - name: GitHub Pages action
      uses: peaceiris/actions-gh-pages@v3.6.1
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        publish_dir: ./_build/html

You need to set GITHUB_TOKEN

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ErnestSuyver
Comment options

@agahkarakuzu
Comment options

Answer selected by ErnestSuyver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants