News for hackers. Stuff that matters.
Re:Ruby's official documentation just got a new look by strzibny on Saturday August 24, 2024 @11:46PM (#41344199)
Oh no, much prefered the old look.

And why the hell green? Ruby's not Python :(

Re:Ruby's official documentation just got a new look by pyinstallwoes on Sunday August 25, 2024 @01:46AM (#41344729)
Yeah that’s weird
Re:Ruby's official documentation just got a new look by yumraj on Sunday August 25, 2024 @02:19AM (#41344870)
> Ruby's not Python :(

You mean Ruby's not Emerald ;)

Re:Ruby's official documentation just got a new look by pentestercrab on Sunday August 25, 2024 @04:07AM (#41345431)
I have to agree with you. It is a shame the classic style isn’t available at an alternate subdomain or directory.

Has anyone tried rendering the current docs with the old theme?

Re:Ruby's official documentation just got a new look by stevenfoster on Sunday August 25, 2024 @01:51AM (#41344747)
Big nope.
Re:Ruby's official documentation just got a new look by 3np on Sunday August 25, 2024 @02:07AM (#41344810)
Two regressions I noted right away (chromium):

- CPU usage and rendering overhead/waiting time is noticably higher than on the old version.

- The supposedly responsive functionality means that the sidebar hides ~half of main content on my default window size and resolution on desktop. I have to zoom out to be able to read at all.

Re:Ruby's official documentation just got a new look by zarzavat on Sunday August 25, 2024 @02:23AM (#41344892)
It feels unfinished.

It doesn’t work very well on mobile. Though, I’m not sure that the old one did either.

There’s too much white space. Documentation should be compact so that you can fit as much as possible on the screen while remaining legible.

The colour.

Re:Ruby's official documentation just got a new look by thiht on Sunday August 25, 2024 @05:05AM (#41345745)
I can’t believe a mostly text website that doesn’t scale well on mobile made it to production in this day and age. Was it worked on by a single person? Did no one review it and think of opening it on their mobile?

I’d even say it’s harder to make a text website NOT render well on mobile. Doesn’t HTML handle that by default, unless you use some freakishly long text without spaces?

Re:Ruby's official documentation just got a new look by ravenstine on Sunday August 25, 2024 @07:36AM (#41346525)
> I can’t believe a mostly text website that doesn’t scale well on mobile made it to production in this day and age.

I can. This is pretty typical.

Re:Ruby's official documentation just got a new look by phoronixrly on Sunday August 25, 2024 @06:09AM (#41346097)
Not every website's key metric is conversion of mobile users. I have never needed to read Ruby documentation on my phone. I'm glad they did not waste their time on unimportant stuff like mobile UX in this case.
Re:Ruby's official documentation just got a new look by thiht on Sunday August 25, 2024 @07:22AM (#41346445)
I doubt you’re the only user of the Ruby documentation though.

I’m not a (frequent) Ruby user, but I routinely check the Go documentation, the MDN, the Python documentation, and several other language documentations on mobile. Because sometimes I will think of something while I’m walking my dog, or while I’m in my couch, or before sleeping, or at any other moment.

Mobile UX is exactly as important as desktop UX. And for a text only website (ie. not a web app) you don’t even need to spend time to make it work, it’s almost the default behavior. You have to go out of your way to make a text website that doesn’t render well on mobile.

Re:Ruby's official documentation just got a new look by oefrha on Sunday August 25, 2024 @08:00AM (#41346674)
Waste time? I can make a one line change to make it basically good enough on mobile:

  - main { max-width: 800px; }
  + main { box-sizing: border-box; max-width: min(864px, 100%); }
There. Anyone who thinks that's a waste of time probably shouldn't be allowed to touch the CSS of a high traffic website.
Re:Ruby's official documentation just got a new look by bollu on Sunday August 25, 2024 @09:13AM (#41347056)
Nice! As someone who understands very little CSS, could you explain why this works?
Re:Ruby's official documentation just got a new look by thaumasiotes on Sunday August 25, 2024 @10:39AM (#41347612)
I can't tell why it works, but I can talk about some general things I see.

First, I assume the problem is that, when viewed on mobile, this website is wider than the screen. (Or wider than the browser window.) This makes some horizontal scrolling necessary in order to read some of the text.

No matter how narrow I make the browser window on a desktop, the same problem never occurs, so at first glance this looks like a bug in the mobile browser (which for me is Firefox Focus).

The `box-sizing` CSS property determines whether you want the size of an element to be set to the value you specify, or to something else. You might ask "why would I want something else?", and that's a good question.

Anyway, `box-sizing: border-box` means that when you set the width of the element, it won't be any wider than the width that you set. The default value of this setting is `content-box`, which means that the "content" of the element won't be any wider than the width you set, but, if the element itself uses any padding or borders, those don't count toward the width and the element will be wider than you said it should be.

I assume the adjustment to `max-width` is intended to do two things:

(1) prevent the width of the element from exceeding 100%, presumably related to the width of the browser window;

(2) otherwise, raise the previous maximum by 64px, to adjust for the fact that padding is now included in the notional width of the element. There was probably 64px worth of padding originally.

The problems I see in my own analysis are:

(a) We're only adjusting the `max-width` property, which means that if an element wants to be narrower for other reasons, such as the width of the browser window, that was always allowed. It's not clear to me why this wouldn't have been happening in the page as delivered.

(b) As I mentioned above, the problem that occurs on mobile does not ever occur on desktop, no matter how narrow the browser window gets. This suggests that it isn't a problem with the CSS, but rather with the mobile browser.

Re:Ruby's official documentation just got a new look by lolinder on Sunday August 25, 2024 @09:07AM (#41347023)
I find myself reading technical docs on my phone all the time. I'm often out on a walk or shopping or whatever while thinking over a plan for a project, and when I have an idea that seems like it'd work I'll go look at the docs to make sure I'm not missing something.

They clearly wanted to support mobile (otherwise the hamburger menu is unforgivable) and already spent time making it partially work, but it looks like they just bailed out early before going the final 1% of the way to it looking polished (see a sibling's two-line fix [0]).

[0] https://news.ycombinator.com/item?id=41346674

Re:Ruby's official documentation just got a new look by tacker2000 on Monday August 26, 2024 @03:25AM (#41354782)
Unimportant? Just because you dont use it on mobile doesnt mean everyone else does.

Its a fact that a large share of page visits are now done on mobile, depending on the content.

Re:Ruby's official documentation just got a new look by beretguy on Sunday August 25, 2024 @10:31AM (#41347558)
They just probably over-engineered it by using some library or framework instead of keeping it simple.
Re:Ruby's official documentation just got a new look by ameliaquining on Sunday August 25, 2024 @11:11AM (#41347842)
This is false. You can see exactly what was changed: https://github.com/ruby/rdoc/pull/1157/files
Re:Ruby's official documentation just got a new look by lyu07282 on Sunday August 25, 2024 @05:33AM (#41345904)
The text styling is nuts, light weight (400) gray (#333) for documentation, what were they thinking?
Re:Ruby's official documentation just got a new look by SSLy on Sunday August 25, 2024 @06:35AM (#41346232)
It was designed to be looked at for pleasure, not read in anger.
Re:Ruby's official documentation just got a new look by mrob on Sunday August 25, 2024 @06:45AM (#41346281)
I blame what I'll call the Art Teacher's Fallacy: "Pure black does not exist in nature, therefore you must never use pure black." This is equivocating on the meaning of "pure black"; your paints or computer screen also exist in nature and are therefore not "pure black" in the former sense.

In print, people went to great lengths to get the highest contrast possible. I see no reason why we shouldn't do the same on screen.

Re:Ruby's official documentation just got a new look by discreteevent on Sunday August 25, 2024 @07:55AM (#41346642)
Re:Ruby's official documentation just got a new look by Dalewyn on Sunday August 25, 2024 @08:15AM (#41346758)
Worth noting Hacker News is amongst the examples, and rightfully so.
Re:Ruby's official documentation just got a new look by mrob on Sunday August 25, 2024 @08:09AM (#41346717)
They're not serious:

"color: #191919;"

Here's some real high contrast, and IMO a perfectly designed website:

https://motherfuckingwebsite.com/

Previous HN discussion:

https://news.ycombinator.com/item?id=6791297

https://news.ycombinator.com/item?id=40956192

Re:Ruby's official documentation just got a new look by MatthiasPortzel on Sunday August 25, 2024 @09:09AM (#41347033)
I did an early project with only #ffffff, #000000, #ff0000, etc because I thought those were the most “pure” colors. It looked freaking awful.

The best colors are ones that are subtly off of pure white and pure black; to the point where you can’t even tell. My website uses #191919, which you can’t consciously tell isn’t black, but looks better for it.

=> https://matthiasportzel.com

Print’s a different beast. I used the same concepts to design my business cards and they looked washed out using off-black. Paper reflects environmental light (instead of emitting its own light) so you can crack the contrast as high as you want and the end result won’t be pure black on pure white.

Re:Ruby's official documentation just got a new look by mrob on Sunday August 25, 2024 @09:27AM (#41347147)
LCDs imperfectly block the backlight to make obviously impure black for #000000. Every OLED I've seen has slight light emission for #000000 (leakage current?) too. And very few monitors are used in a perfectly dark environment, so there's light reflecting off the screen even in the #000000 areas.
Re:Ruby's official documentation just got a new look by phoronixrly on Sunday August 25, 2024 @06:07AM (#41346084)
> I’m not sure that the old one did either.

You probably don't remember because you have not needed to read Ruby documentation on mobile. Good news though -- I suspect you are not alone in this.

Re:Ruby's official documentation just got a new look by trescenzi on Sunday August 25, 2024 @07:59AM (#41346670)
> The colour.

Yea why the heck did they pick green? I get red can look like errors but I’m certain there’s a cheerful ruby red out there that would have worked as an accent color for Ruby’s documentation. Green just feels so wrong to me for Ruby.

Re:Ruby's official documentation just got a new look by thiht on Sunday August 25, 2024 @08:12AM (#41346737)
The ruby-lang website[1] uses red accents and looks gorgeous (to me at least). I wonder why they didn't just use the same colors.

[1]: https://www.ruby-lang.org/fr/

Re:Ruby's official documentation just got a new look by EasyMark on Sunday August 25, 2024 @06:00PM (#41351850)
https://www.ruby-lang.org/en/ for the english version
Re:Ruby's official documentation just got a new look by airstrike on Sunday August 25, 2024 @10:08AM (#41347415)
Everyone knows Python is green and Ruby is red...
Re:Ruby's official documentation just got a new look by yunwal on Sunday August 25, 2024 @10:45AM (#41347659)
Python has always been blue and yellow
Re:Ruby's official documentation just got a new look by i80and on Sunday August 25, 2024 @11:59AM (#41348286)
I had to dig into this, because I also felt Python is green.

The Python logo has been blue/yellow in the modern era and monochromatic prior, but the Python IDLE icon DID used to be green[1]. Which in practice probably cemented into my brain very early on, since I learned Python with IDLE!

[1]: https://github.com/certik/python-2.7/blob/master/Lib/idlelib...

Re:Ruby's official documentation just got a new look by trescenzi on Sunday August 25, 2024 @01:21PM (#41349192)
Wow I haven’t seen that logo in so long. Love it, thanks for the reminder.
Re:Ruby's official documentation just got a new look by airstrike on Sunday August 25, 2024 @11:55AM (#41348251)
I meant it more "if anyone's green, then it's Python, not Ruby". I still associate Python with green because of the typical cartoon color of snakes + Django
Re:Ruby's official documentation just got a new look by dchest on Sunday August 25, 2024 @02:09PM (#41349650)
Re:Ruby's official documentation just got a new look by thaumasiotes on Sunday August 25, 2024 @10:24AM (#41347520)
> Everyone knows Python is green

...why?

Re:Ruby's official documentation just got a new look by TehCorwiz on Sunday August 25, 2024 @10:43AM (#41347646)
Sssssomething about the namesssss.
Re:Ruby's official documentation just got a new look by thaumasiotes on Sunday August 25, 2024 @10:45AM (#41347660)
And that would be...? Pythons aren't green. It's like saying everyone knows Perl is blue, because it's represented by a camel.

Here's the least reality-informed, most popularly well-known image of a python you can find: https://static.wikia.nocookie.net/villains/images/a/a1/Kaa_O...

Re:Ruby's official documentation just got a new look by airstrike on Sunday August 25, 2024 @11:11AM (#41347839)
Ask a kid to draw a snake and which colored pencil will they reach out to 9 out of 10 times? Or just look at the snake emoji...
Re:Ruby's official documentation just got a new look by EasyMark on Sunday August 25, 2024 @06:01PM (#41351866)
Re:Ruby's official documentation just got a new look by zarzavat on Sunday August 25, 2024 @11:34AM (#41348024)
It’s some kind of Mandela/Berenstain effect because the old one is also slightly green but I don’t remember Ruby’s documentation ever being green and apparently nobody else did either.
Re:Ruby's official documentation just got a new look by trueismywork on Sunday August 25, 2024 @07:37PM (#41352525)
Green calms me down. As someone who gets extremely angry at the Ruby code I have to maintain, green is good.
Re:Ruby's official documentation just got a new look by amomchilov on Sunday August 25, 2024 @10:23PM (#41353449)
It's a temporary and incremental improvement over the previous stylesheet, which was also green (for reasons still unknown): https://docs.ruby-lang.org/en/3.3/String.html

The goal was to move in the right direction, but make it similar enough that it would get quick approval without rocking the boat much (yet).

Re:Ruby's official documentation just got a new look by mekster on Sunday August 25, 2024 @07:59AM (#41346672)
Ruby site has always been red... What gives?
Re:Ruby's official documentation just got a new look by ameliaquining on Sunday August 25, 2024 @11:23AM (#41347934)
There seems to be active work underway to fix it on mobile: https://github.com/ruby/rdoc/pull/1162
Re:Ruby's official documentation just got a new look by SkyPuncher on Monday August 26, 2024 @10:37AM (#41357575)
I’ll be real, target mobile for language docs just doesn’t seem like a big priority.

I would expect 95% of the user base to be reading these docs on a laptop or desktop.

Re:Ruby's official documentation just got a new look by porgarmer on Sunday August 25, 2024 @02:35AM (#41344960)
- Why is this dark green?

- Its very hard to navigate around and easy to get lost with links.

- Mobile view is borderline unusable. Need to scroll horizontally to read a sentence.

- Cursor is a beam while hovering over the sandwich menu icon

Re:Ruby's official documentation just got a new look by baggy_trough on Sunday August 25, 2024 @02:35AM (#41344963)
That's nice, but what I'd like is if I type the name of a major class, like "File", that the File class be on top, not some obscure method/module that contains "File" as a substring.
Re:Ruby's official documentation just got a new look by ilikepi on Sunday August 25, 2024 @03:10AM (#41345128)
The search issue is also present with the docs for Ruby 3.3[1] and earlier. Incidentally, "String" is an even better example, as the the class is the fifth result returned after four other very obscure classes.

[1]: https://docs.ruby-lang.org/en/3.3/

Re:Ruby's official documentation just got a new look by baggy_trough on Sunday August 25, 2024 @04:07AM (#41345437)
I'd love to know where that ordering comes from. Insanity!
Re:Ruby's official documentation just got a new look by retrac98 on Sunday August 25, 2024 @02:41AM (#41344992)
This either hasn’t been tested on a mobile device or the developer decided mobile devices weren’t important enough to properly support at launch. Bad look either way.
Re:Ruby's official documentation just got a new look by jspash on Sunday August 25, 2024 @03:12AM (#41345134)
Accessibility-wise it has problems. Font-size, colour, contrast to name a few. And overuse of bold. When everything has emphasis, nothing does.

And green? How did that get approved?

I'm glad things are still moving in the Ruby community. I use it every day. But Elixir is winning the mind-share battle over Ruby at $dayjob these days. And their documents is second to none. One of the best that I've used.

Re:Ruby's official documentation just got a new look by dudeinjapan on Sunday August 25, 2024 @03:16AM (#41345157)
The main font color for Ruby is... green?
Re:Ruby's official documentation just got a new look by ilikepi on Sunday August 25, 2024 @03:25AM (#41345200)
This seems to be a reskin of the prior RDoc styles, which are visible in prior Ruby versions (e.g https://docs.ruby-lang.org/en/3.3/). Despite the rather bold green, the overall look of the primary content feels very subdued. I think a big part of it is how low-contrast the code blocks are. In the prior style, code blocks used a pretty high-contrast syntax highlighting scheme; comments were very distinct, which is important as these demonstrate return values. In the new style, it's quite difficult to distinguish comments (medium gray) from identifiers (dark gray).

Personally I prefer the look of rubyapi.org over either of the official ones, but this new one kinda feels like a step backward from the prior one.

Re:Ruby's official documentation just got a new look by rootedbox on Sunday August 25, 2024 @03:31AM (#41345229)
Doesn’t work on mobile

- sent from my iPhone

Re:Ruby's official documentation just got a new look by wiseowise on Sunday August 25, 2024 @03:54AM (#41345356)
Not optimized for mobile in 2024, seriously?
Re:Ruby's official documentation just got a new look by marginalia_nu on Sunday August 25, 2024 @04:18AM (#41345515)
Given how technical documentation is typically used, when would you view it on a mobile device?
Re:Ruby's official documentation just got a new look by orhmeh09 on Sunday August 25, 2024 @05:23AM (#41345838)
Extremely often. I look at source code, API docs, issues, etc. on my phone all the time when I am on the bus or in the bathroom or in bed or wherever.
Re:Ruby's official documentation just got a new look by jimworm on Sunday August 25, 2024 @03:55AM (#41345364)
I wouldn't mind if ruby copied the rails docs style exactly (https://api.rubyonrails.org/), and I'm pretty sure rails wouldn't mind either.
Re:Ruby's official documentation just got a new look by thiht on Sunday August 25, 2024 @08:15AM (#41346752)
https://api.rubyonrails.org/classes/ActiveJob.html

That one's a bit too much red for my taste :) There's a sweet spot to find that's closer to "nice accent colors" than "aggressive red wall of text"

Re:Ruby's official documentation just got a new look by james_marks on Sunday August 25, 2024 @11:26AM (#41347950)
The challenge is that if you only sprinkle some red in for accents, the accents look even more like an error. It’s a conundrum.
Re:Ruby's official documentation just got a new look by felipemesquita on Monday August 26, 2024 @07:00AM (#41355966)
The rails api docs are also going through a redesign, you can see a preview of the next design in edge: https://edgeapi.rubyonrails.org/classes/ActiveJob.html I think it’s a a change in the right direction that removes the “aggressive wall of text” on longer pages and looks great in dark and light modes.
Re:Ruby's official documentation just got a new look by tapanih on Sunday August 25, 2024 @04:14AM (#41345483)
I like the new code blocks more! The syntax highlighting is more standard. I found the red comments on a grey background difficult to read in the old theme. However, I would still want to see higher contrast in the text.

It looks like the mobile view is getting fixed [1].

[1] https://github.com/ruby/rdoc/pull/1162

Re:Ruby's official documentation just got a new look by biql on Sunday August 25, 2024 @04:18AM (#41345511)
Sadly, the typography looks too neglected for the time when there is such an abundance of templates and fonts.
Re:Ruby's official documentation just got a new look by lawgimenez on Sunday August 25, 2024 @04:30AM (#41345570)
The font is not good for my bad eyesight with severe astigmatism.
Re:Ruby's official documentation just got a new look by Archelaos on Sunday August 25, 2024 @04:37AM (#41345599)
It is generally hard to read, even with only mild astigmatism and perfect glasses. What is even worth is that the Website does not appear to support Firefox's readability mode.

That seems to be the curse of our time: Function follows form.

Re:Ruby's official documentation just got a new look by Corrado on Sunday August 25, 2024 @08:41AM (#41346900)
I use Firefox's readability mode for quite a lot to help me process these "pretty" web pages. Most of the time it works pretty well and I can read the content even faster. Even if it doesn't work perfectly, it still provides a better contrast than the original. In the case of these new Ruby docs, it falls apart more completely than I've ever seen. It's completely unusable!

As a terrible Ruby programmer with pretty good 55 year old eyes I can't read these docs at all. Everyone is complaining about the color scheme (which I agree with) but its the font choices (lightweight, grey on grey) that kills usability for me.

When I'm looking at docs I need to find what I need quickly, and searching a sea of whitespace and barely there text is not great.

Re:Ruby's official documentation just got a new look by aa_is_op on Sunday August 25, 2024 @04:34AM (#41345585)
It's called Ruby, but the color theme is green.

Hilarious!

Re:Ruby's official documentation just got a new look by Themainfn on Sunday August 25, 2024 @04:36AM (#41345596)
the font looks stuck at 99%
Re:Ruby's official documentation just got a new look by nomilk on Sunday August 25, 2024 @05:16AM (#41345804)
Lots of (justified) negative observations. But I love the way the code looks (which, by far, is the most important thing for documentation of code).

Random example: https://docs.ruby-lang.org/en/master/ARGF.html#method-i-each

Love the new colour scheme, easy to read (on desktop) and feels more chill than reds and greys.

Re:Ruby's official documentation just got a new look by pilaf on Sunday August 25, 2024 @06:45AM (#41346282)
Would be nice if the hidden by default C code was syntax-highlighted as well.
Re:Ruby's official documentation just got a new look by troupo on Sunday August 25, 2024 @10:27AM (#41347531)
> Love the new colour scheme, easy to read (on desktop) and feels more chill than reds and greys.

The main font is very thin light gray font to begin with that makes it very hard to read even on a 4k monitor

Re:Ruby's official documentation just got a new look by bachmeier on Sunday August 25, 2024 @05:39AM (#41345937)
> Ruby is an interpreted object-oriented programming language often used for web development.

Talk about irony. I increased the font to 150% so I could read that very sentence, and it's literally impossible to do so, because the sidebar covers the text when you zoom in that far. And the only reason I zoomed in that far was because they used Lato-light rather than Lato-regular. Maybe Ruby isn't used for accessible web development.

Re:Ruby's official documentation just got a new look by pilaf on Sunday August 25, 2024 @06:43AM (#41346272)
> Maybe Ruby isn't used for accessible web development.

What an unnecessary comment. Sure, the docs website could use more work, but what does the choice of a language used for back-end development have to do with the quality of the front-end code (non-Ruby) in those same projects?

Re:Ruby's official documentation just got a new look by bachmeier on Sunday August 25, 2024 @11:13AM (#41347853)
> What an unnecessary comment.

It's 2024. Accessibility is absolutely worthy of comment, particularly if you're boasting about being a language used for web development. They could have used one of the thousands of available existing solutions rather than rolling their own.

> a language used for back-end development have to do with the quality of the front-end code (non-Ruby)

Ruby is used for a more than the back-end. Check out Sinatra or Rails.

Re:Ruby's official documentation just got a new look by paradox460 on Monday August 26, 2024 @11:02AM (#41357816)
Sinatra and rails both run on the backend
Re:Ruby's official documentation just got a new look by vinc on Sunday August 25, 2024 @05:51AM (#41345993)
If I change the color hue of all the CSS variables from green to red, and make the text a bit darker and larger it's not so bad. With a light gray background on the sidebar to provide some contrast with the main content like the Rust doc does I quite like it.

I'll probably create custom CSS rules for the doc if this is the final version and be happy with it. I've been using a custom dark theme for HN for years and I'm happy with it. I'm glad we still have enough control over web pages to do that!

Re:Ruby's official documentation just got a new look by blahgeek on Sunday August 25, 2024 @05:52AM (#41346002)
What we really need is a common downloadable documentation format so that we can more easily build tools to read documentation of all languages and libraries in one place with unified interface, instead of jumping between tens of browser tabs each with a different (new) look.

I know there is devdocs [1], but unfortunately it need to implement scrapers and filters for each site specifically.

[1] https://devdocs.io/

Re:Ruby's official documentation just got a new look by mkl95 on Sunday August 25, 2024 @05:59AM (#41346042)
I remember this kind of UX being prevalent in the early 2010s or so. Fortunately most docs have moved on.
Re:Ruby's official documentation just got a new look by Taig on Sunday August 25, 2024 @06:34AM (#41346229)
There is a lot wrong here. But my favorite messed up detail is how my cursor changes to text mode when I hover the hamburger button on the top left.
Re:Ruby's official documentation just got a new look by thiht on Sunday August 25, 2024 @08:21AM (#41346792)
The cursor also switches to "pointer" (the hand) for no reason on the documentation pages, eg. here: https://docs.ruby-lang.org/en/master/String.html#method-i-ri...
Re:Ruby's official documentation just got a new look by Alifatisk on Sunday August 25, 2024 @06:48AM (#41346295)
So what alternatives is there to the official docs?

ruby-docs.org is sadly gone https://web.archive.org/web/20230615061406/https://www.ruby-...

There is https://rubyapi.org and https://ruby-doc.org left from what I know

Re:Ruby's official documentation just got a new look by ljm on Sunday August 25, 2024 @08:05AM (#41346698)
Anything except ApiDock which always seems to take precedence in Google over the official documentation (albeit for Rails) and is almost never what you’re looking for.
Re:Ruby's official documentation just got a new look by derencius on Sunday August 25, 2024 @09:04AM (#41347005)
I've been using devdocs.io for ruby and rails api docs.
Re:Ruby's official documentation just got a new look by pawelduda on Sunday August 25, 2024 @07:02AM (#41346355)
Don't like it, don't know what problems it was supposed to solve
Re:Ruby's official documentation just got a new look by nilslindemann on Sunday August 25, 2024 @07:06AM (#41346375)
* Ugly font rendering * Underscores in page names * No 'next' and 'prev' buttons.

When that is done it should be a good start.

Re:Ruby's official documentation just got a new look by rob on Sunday August 25, 2024 @07:06AM (#41346377)
Nothing like making green the primary color on your "Ruby" website and spending zero minutes checking it on mobile to notice that every page horizontally scrolls.
Re:Ruby's official documentation just got a new look by johnisgood on Sunday August 25, 2024 @08:11AM (#41346731)
Yeah, odd choice of colors.
Re:Ruby's official documentation just got a new look by matteason on Sunday August 25, 2024 @07:14AM (#41346410)
Is the font rendering any better on other platforms? On Windows it's so poorly hinted that the top and bottom of the lowercase 's' are disconnected
Re:Ruby's official documentation just got a new look by ntlrkq on Sunday August 25, 2024 @07:15AM (#41346413)
The style is nice. Others complain about mobile, but I would not read programming docs on mobile anyway.

I hope we'll see Ruby renaissance soon. Python must be avoided because of the social and governance issues. I think everyone got the message that it is a fools errand to contribute to an organization that is infested with apparatchiks who treat the actual work horses with contempt. Frankly, I think Python has an uncertain future and should be avoided for non-LLM startups.

One of the best websites, GitHub, is written in Ruby. Python has no website that comes even close.

So it is Ruby or Javascript or Golang or Scala or (?). For those coming from Python, Ruby should be easiest.

Re:Ruby's official documentation just got a new look by jacamera on Sunday August 25, 2024 @07:25AM (#41346457)
No dark mode? Seriously?
Re:Ruby's official documentation just got a new look by InMice on Sunday August 25, 2024 @11:20AM (#41347912)
Darkreader plugin to the rescue
Re:Ruby's official documentation just got a new look by elif on Sunday August 25, 2024 @07:44AM (#41346578)
This reminds me of all the times a manager asked if I (backend dev) could 'just do a little interface for xyz'

Like what do you expect from me? I would be rendering these docs in a w3 emacs frame...

Re:Ruby's official documentation just got a new look by jeremymcanally on Sunday August 25, 2024 @08:48AM (#41346934)
There are a lot of odd choices here. Is there a mailing list thread or something where this was worked out? I couldn't seem to find one on a quick scan, but I don't know where these discussions happen these days.

I really don't want to assume incompetence or ignorance at all since I'm sure someone worked really hard on this. But I'm genuinely puzzled by a lot of what's going on.

Re:Ruby's official documentation just got a new look by tomstuart on Sunday August 25, 2024 @09:59AM (#41347367)
Here’s the PR. I don’t know whether it was discussed elsewhere. https://github.com/ruby/rdoc/pull/1157
Re:Ruby's official documentation just got a new look by alabhyajindal on Sunday August 25, 2024 @09:05AM (#41347014)
Looks terrible. Very sad.
Re:Ruby's official documentation just got a new look by cute_boi on Sunday August 25, 2024 @09:41AM (#41347245)
They should probably get idea from Laravel docs.
Re:Ruby's official documentation just got a new look by usernamed7 on Sunday August 25, 2024 @10:21AM (#41347498)
Why is it green? It shouldn't be green. Ruby docs should be red.

If i stumbled onto this site while looking for docs about a ruby method, i'd think I landed on the docs for some other programming language or fork of ruby. That's how off-brand this is - to the point of being disorienting as a user.

There are not a lot of things that create a brand around a programming language, and color is definitely one of them.

This is such a tasteless design decision for something meant to be official ruby documentation that I can't even appreciate any other changes that docs may introduce. And then the fact that it doesn't even work on mobile...

I am truly baffled anyone would think this is in good taste.

the last time I saw such a fumble with ruby related docs was back around 2014 when relishapp was the only place to get rspec docs. It's UX was such a painful mess that i just avoided it at all costs. Glad to see it's dead now.

Re:Ruby's official documentation just got a new look by pmdr on Sunday August 25, 2024 @10:36AM (#41347593)
Not the best redesign, but probably the most upvotes and comments on a Ruby related post lately, so yay?
Re:Ruby's official documentation just got a new look by yunwal on Sunday August 25, 2024 @10:59AM (#41347766)
Up there with Tropicana and Gap for senseless rebrands
Re:Ruby's official documentation just got a new look by ameliaquining on Sunday August 25, 2024 @11:21AM (#41347919)
To everyone commenting about it being green: This isn't a new change, it's always been like that. https://web.archive.org/web/20141203122328/http://docs.ruby-...

If you thought it used to be red, you are probably thinking either of ruby-doc.org, which is an unofficial third-party site (but is older than docs.ruby-lang.org), or of the Rails docs.

Re:Ruby's official documentation just got a new look by flufluflufluffy on Sunday August 25, 2024 @12:55PM (#41348900)
The vomit-green color is my favorite part. Like, they didn’t even try for a forest-green, or lime-green, nope. went straight for vomit
Re:Ruby's official documentation just got a new look by majewsky on Sunday August 25, 2024 @01:59PM (#41349546)
Here's a user stylesheet to make it slightly more readable:

  #root { color: black; }
  main { color: var(--text-color); }
Regular reminder to all designers that not everyone uses an Apple 50K Retina Ultra Whatever Display in a professionally lit studio apartment.
Re:Ruby's official documentation just got a new look by oglop on Sunday August 25, 2024 @06:41PM (#41352160)
People not in the Ruby unity probably don’t realize Ruby takes a very liberal approach to its docs.

Most people just use rubyapi.org because it’s modern and looks good. It’s backed by the Ruby foundation.

These docs are just the “official docs” which I almost never even use anyways. Glad they don’t look like they’re from 2001 anymore but I’m likely to keep using rubyapi.org as it’s just way out ahead in looks and mobile support.