ruby / rdoc

RDoc produces HTML and online documentation for Ruby projects.
https://ruby.github.io/rdoc/
Other
841 stars 438 forks source link

Modernize RDoc Darkfish template CSS #1157

Closed st0012 closed 2 months ago

st0012 commented 2 months ago

Result

https://github.com/user-attachments/assets/72980420-f674-43e6-b423-54d4f8f53d65

Comparisions

For detail comparison, I recommend clicking into images.

Left: old; Right: new

RDoc

rdoc-diff-3 rdoc-diff-4 rdoc-diff-2 rdoc-diff-1

Ruby official docs

ruby-diff-2 ruby-diff-1
st0012 commented 2 months ago

@paracycle Thanks for the suggestions. I've extracted fonts into variables as well as cleaned up some variable usages.

MatheusRich commented 2 months ago

@st0012 TY for the update! I notices that some pages (here's an example) are hard to read on mobile.

st0012 commented 2 months ago

Do you mean because of the initial zoom?

MatheusRich commented 2 months ago

Yeah. Users shouldn't need to zoom in/out to read on mobile. It's like the text doesn't wrap or something. I'm AFK so I can't tell exactly what's going on

st0012 commented 2 months ago

https://github.com/ruby/rdoc/pull/1162