Improve Website Experiences
changkun opened this issue · 1 comments
The current website only offers the basic functionality of reading the book. There are tons of improvements that could be made in the future.
-
DONE Expandable Table of Content
The table of content of the right side is too tedious to the viewer, and it would be great to add a fold/unfold feature that shrinks the length of the TOC. -
DONE Section jumps.
The book uses a relative path to link different chapters. This works in the chapter section, e.g., https://changkun.de/golang/zh-cn/part2runtime/ch06sched/. However, it doesn't work for specific sections. For instance: In the preemption section, at the beginning of the section, it links to the schedule loop section which is accessed as 404. This is because, in the markdown file, it uses relative path./exec
, which access the/zh-cn/part2runtime/ch06sched/preemption/./exec
. -
DONE Section navigations.
Jump to the previous and next sections. -
Picture PositioningMaybe later in the future.
In this CL, figures are allowed to be centered in a text column. However, it is not possible to align two pictures or put a picture in an arbitrary position. -
DONE Dark Mode
-
Code highlight with Plan 9It seems this requires a huge amount of work. Delay and do it in the future.