jhudsl / ottrpal

Tools for converting OTTR courses into Leanpub or Coursera courses :otter:
https://jhudatascience.org/ottrpal/
GNU General Public License v3.0
3 stars 1 forks source link

If two chapters have the same name -- make the screenshots a different name #136

Closed cansavvy closed 2 months ago

cansavvy commented 3 months ago

Describe the your scope of your content idea

Right now in OTTR_Quarto template multiple chapters have the same name. This has never happened in a course but it could. But the screenshots taken for Leanpub use the chapter name which means the screenshots for the multiple chapters are overwriting each other.

e.g. https://github.com/fhdsl/OTTR_Quarto/blob/main/second-section-new-chapter.qmd

Describe the learning objectives for your content idea

When make-screenshots.R gets functionalized it should also be made so that chapters of the same name are given a number at the end so that the screenshots are differentiated from each other.

cansavvy commented 2 months ago

Done!