Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow word breaks between module names in docs #13827

Merged

Conversation

nobodywasishere
Copy link
Contributor

Allow word breaks between module names in docs for easier mobile viewing

Before:
image

After:
image

@@ -17,9 +17,9 @@
<div class="main-content">
<h1 class="type-name">
<% if type.program? %>
<%= type.full_name %>
<%= type.full_name.gsub(/::/, "::<wbr>") %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need for a regular expression here

Suggested change
<%= type.full_name.gsub(/::/, "::<wbr>") %>
<%= type.full_name.gsub("::", "::<wbr>") %>

Ditto below.

@straight-shoota straight-shoota added this to the 1.10.0 milestone Sep 23, 2023
@straight-shoota straight-shoota merged commit d74c91c into crystal-lang:master Sep 25, 2023
53 checks passed
@nobodywasishere nobodywasishere deleted the nobody/module-name-breaks branch September 25, 2023 13:44
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants