Skip to content

Add home page link to output message - #1165

Merged
st0012 merged 1 commit into
masterfrom
add-home-page-link-to-output-message
Sep 27, 2024
Merged

st0012 merged 1 commit into
masterfrom
add-home-page-link-to-output-message

Conversation

@st0012

@st0012 st0012 commented Aug 27, 2024

Copy link
Copy Markdown
Member

The link is clickable in the terminal and opens the home page in the browser:

Screenshot 2024-08-27 at 23 12 47

This will make it easier for users to visit the generated document.

The link is clickable in the terminal and opens the home page in the browser

@colby-swandale colby-swandale left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This change is good, but I wonder if there is a way to add a test for this?

@st0012

st0012 commented Sep 25, 2024

Copy link
Copy Markdown
Member Author

Currently there is no tests covering RDoc#generate (which can be verified by adding a raise in it and still see all tests pass). If we were to add one, it'll require a new set of test infra to properly assert and clean up generated files.
It'll definitely be a good thing to have as it'll enable true end-to-end testing for RDoc. But considering our current capacity, I'd like to prioritize other improvements first (e.g. #1176)

@colby-swandale

colby-swandale commented Sep 26, 2024 •

Copy link
Copy Markdown
Member

Sounds good @st0012 ! Would you be able to open an issue or maybe a project with a ticket to make sure we don't forget?

@st0012

st0012 commented Sep 27, 2024

Copy link
Copy Markdown
Member Author

@colby-swandale opened #1180

@st0012
st0012 merged commit b7d580a into master Sep 27, 2024
@st0012
st0012 deleted the add-home-page-link-to-output-message branch September 27, 2024 13:58
matzbot pushed a commit to ruby/ruby that referenced this pull request Sep 27, 2024
(ruby/rdoc#1165)

The link is clickable in the terminal and opens the home page in the browser

ruby/rdoc@b7d580afab
@st0012 st0012 added this to the v6.8.0 milestone Oct 19, 2024
@nobu

nobu commented Mar 7, 2026

Copy link
Copy Markdown
Member

This looks useless unless printing to a tty.
https://github.com/ruby/ruby/actions/runs/22793981161/job/66125592137#step:16:819

You can visit the home page at: �]8;;file:///home/runner/work/ruby/ruby/html/index.html�\file:///home/runner/work/ruby/ruby/html/index.html�]8;;�\

@nobu

nobu commented Mar 7, 2026 •

Copy link
Copy Markdown
Member

Another issue: this message is shown even when that file is not generated, the output format is not HTML.

@nobu

nobu commented Mar 7, 2026

Copy link
Copy Markdown
Member

I think the generated entry page name should also be in the style that asks the generator.

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