cambiotraining / quarto-course-template

https://cambiotraining.github.io/quarto-course-template/
Other
1 stars 1 forks source link

version history #14

Open tavareshugo opened 9 months ago

tavareshugo commented 9 months ago

For courses where we want to keep history.

Running some tests with a mixture of github actions and gh releases.

Can try adding this automatically into the _quarto.yml:

    left:
      - text: "Version"
        icon: clock-history
        menu: 
          - text: "2023-01-01"
          - text: "2023-02-01"
TomSmithCGAT commented 4 months ago

Just to check, this would be to maintain the previous course websites in (near) perpetuity? If so, that would be ace!

tavareshugo commented 3 months ago

Note to self for when I get back into this.

If we have a directory in gh-pages with previous versions (let's say the directory is called archive), then it should be possible to:

Injecting the archive links into the navbar is not completely trivial.

There are some discussions about this on the quarto repo (search for "quarto version selector in navbar"). One of the suggestions is to use pre-render scripts to create the custom drop down, I guess?