geco-bern / agds

Applied Geodata Science book. Developed for the lecture(s) with the same name at the Institute of Geography, University of Bern.
https://geco-bern.github.io/agds/
Other
5 stars 6 forks source link

Aesthetics: Improve html presentation #93

Closed padasch closed 1 year ago

padasch commented 1 year ago

As this book faces the public, it would be nice to improve its aesthetics. For example, we can add an icon to be displayed in the tab bar of a browser, making it easier to recognize the tab with the book when switching around tabs.

https://bookdown.org/yihui/bookdown/html.html

khufkens commented 1 year ago

Is there a favicon setting somewhere?

khufkens commented 1 year ago

I like the bs4_book more, but the navbar is not included and little yaml shortcodes are provided. For pkgdown you can easily write a new theme but I haven't found anything along those lines for bookdown. E.g. change colours easily without fudging with CSS.

The long term solution seems to be moving to Quarto, as it takes a single yaml settings file with enough flexibility and little deviations from bookdown.

padasch commented 1 year ago

Yes favicon is supported, see in my first comment

image

khufkens commented 1 year ago

favicon added per instructions, not sure it shows consistently across browsers

khufkens commented 1 year ago

@padasch @stineb thoughts? moved to Quarto with more easy theming aesthetics.

https://khufkens.github.io/agds/

padasch commented 1 year ago

Looks nice, maybe a bit too cramped, can you increase the width of the main panel in the middle? Chapter structure is messed up tho image

khufkens commented 1 year ago

Breaking titles are the goal, to structure the chapters - but this shouldn't break the overall numbering

khufkens commented 1 year ago

Theme updated, should be better

https://khufkens.github.io/agds/

padasch commented 1 year ago

Ah, I see! Did not realize they are "meta-titles".

Looks really nice! And makes navigating chapters muuuch easier :+1:

khufkens commented 1 year ago

Won't implement yet depends on @stineb, but as written elsewhere quarto is more future proof. I'll probably create a template using the theme shown above for future work (I already have templates up for AGDS II + proseminar content but will switch those out).

khufkens commented 1 year ago

I'm closing this is this the absolute last priority for now. I'll focus on getting everything in working order today before considering moving the theme/rendering engine.