diff --git a/.github/workflows/notebook_ci.yaml b/.github/workflows/notebook_ci.yaml index 887e44a7..d2b5211a 100644 --- a/.github/workflows/notebook_ci.yaml +++ b/.github/workflows/notebook_ci.yaml @@ -110,7 +110,7 @@ jobs: publish: needs: pytests runs-on: ubuntu-latest - if: ${{ github.repository == 'qutip/qutip-tutorials' && github.ref == 'refs/heads/main' }} + # if: ${{ github.repository == 'qutip/qutip-tutorials' && github.ref == 'refs/heads/main' }} steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 @@ -133,20 +133,27 @@ jobs: # Download resources from qutip.github.io repository mkdir css cd css - wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/css/bootstrap.css - wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/css/site.css + # wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/css/bootstrap.css + # wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/css/site.css + wget https://raw.githubusercontent.com/langhaarzombie/langhaarzombie.github.io/develop/css/site.css cd .. mkdir _includes cd _includes - wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/_includes/footer.html - wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/_includes/header.html - wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/_includes/navbar.html + # wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/_includes/head.html + # wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/_includes/navbar.html + # wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/_includes/footer.html + # wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/_includes/scripts.html + wget https://raw.githubusercontent.com/langhaarzombie/langhaarzombie.github.io/develop/_includes/head.html + wget https://raw.githubusercontent.com/langhaarzombie/langhaarzombie.github.io/develop/_includes/navbar.html + wget https://raw.githubusercontent.com/langhaarzombie/langhaarzombie.github.io/develop/_includes/footer.html + wget https://raw.githubusercontent.com/langhaarzombie/langhaarzombie.github.io/develop/_includes/scripts.html cd .. mkdir images cd images wget https://raw.githubusercontent.com/qutip/qutip.github.io/master/images/favicon.ico + wget https://raw.githubusercontent.com/langhaarzombie/langhaarzombie.github.io/develop/images/logo_small.png cd .. # build the website diff --git a/website/create_index.py b/website/create_index.py index 847dbdb8..1207c565 100644 --- a/website/create_index.py +++ b/website/create_index.py @@ -149,7 +149,7 @@ def main(): root_folder = pathlib.Path(__file__).parent.parent if args.qutip_version == "v4": - title = "Tutorials for QuTiP Version 4" + title = "Tutorials for QuTiP Version 4" tutorials_folder = root_folder / "tutorials-v4" version_note = """ These are the tutorials for QuTiP Version 4. You can @@ -157,7 +157,7 @@ def main(): here. """.strip() elif args.qutip_version == "v5": - title = "Tutorials for QuTiP Version 5" + title = "Tutorials for QuTiP Version 5" tutorials_folder = root_folder / "tutorials-v5" version_note = """ These are the tutorials for QuTiP Version 5. You can diff --git a/website/index.html.jinja b/website/index.html.jinja index 0e403d24..877bfbac 100644 --- a/website/index.html.jinja +++ b/website/index.html.jinja @@ -1,11 +1,16 @@ --- title: QuTiP Tutorials --- -{% raw %} -{% include header.html %} -{% include navbar.html %} -{% endraw %} + + + +{% raw %} {% include head.html %} {% endraw %} + + +
{% raw %} {% include navbar.html %} {% endraw %}
+ +

{{ title }}


@@ -182,7 +187,12 @@ a complete archive of older versions of the tutorials is maintained there.
+
{% raw %} -{% include footer.html %} + +{% include scripts.html %} {% endraw %} + + + \ No newline at end of file