golang-design/under-the-hood

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.

  1. 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.

  2. 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.

  3. DONE Section navigations.
    Jump to the previous and next sections.

  4. Picture Positioning Maybe 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.

  5. DONE Dark Mode

  6. Code highlight with Plan 9 It seems this requires a huge amount of work. Delay and do it in the future.

After 0cda110, the planned improvements are partially done. Some are implemented, and some are difficult and not urgent for me. If somebody fires an issue, I will take care of it later.

Close.