documentation generator: source code window should be (at least) 80em wide if the browser width allows it #1830
Replies: 6 comments
-
Sorry, could you expand a little on what you mean? |
Beta Was this translation helpful? Give feedback.
-
the source code "divs" should be max width of the screen size but not larger than 80 or 100em... so that we don't get horizontal scrolling in source code examples embedded in markdown. |
Beta Was this translation helpful? Give feedback.
-
Ah, so you're proposing we make the page a little wider to fit 80 columns in code blocks? |
Beta Was this translation helpful? Give feedback.
-
Different options:
Is 80 columns the desired target for Gleam code? All I need to figure out is to compile docs locally and then once we have set a direction I can work on this. |
Beta Was this translation helpful? Give feedback.
-
80 columns is what the formatter maxes out at. We can make the content width wider, that'll do the trick. Documentation can be built with |
Beta Was this translation helpful? Give feedback.
-
Yes, I ll leave stdlib be and the next gleam timeslot I should take a look at the docs generator. |
Beta Was this translation helpful? Give feedback.
-
Right now example code inlined via ```gleam is hard to read even if it breaks at 80 chars usually.
Beta Was this translation helpful? Give feedback.
All reactions