Skip to content

Updates to show GitHub source url #5

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

Merged
merged 3 commits into from
Nov 12, 2023
Merged

Conversation

toshimaru
Copy link
Owner

@toshimaru toshimaru commented Nov 5, 2023

Changes

  • Add SDoc::Helpers#method_source_code_and_url
  • Create SDoc::Helpers::Git module instead of SDoc::GitHub

Screenshot

image

Open source code:

image

An Issue

@toshimaru toshimaru force-pushed the update-for-github-source-url branch 2 times, most recently from 1a87468 to 5acf7cf Compare November 5, 2023 09:29
@@ -21,7 +24,18 @@ def truncate(text, options = {})
end
end

protected
def method_source_code_and_url(rdoc_method)
source_code = rdoc_method.tokens_to_s if rdoc_method.token_stream
Copy link
Owner Author

@toshimaru toshimaru Nov 12, 2023

Choose a reason for hiding this comment

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

@toshimaru toshimaru force-pushed the update-for-github-source-url branch from 2469b15 to c4d450e Compare November 12, 2023 01:42
@toshimaru toshimaru changed the title Update for GitHub source url Updates to show GitHub source url Nov 12, 2023
@toshimaru toshimaru marked this pull request as ready for review November 12, 2023 01:55
@toshimaru toshimaru merged commit 7391aa2 into main Nov 12, 2023
@toshimaru toshimaru deleted the update-for-github-source-url branch November 12, 2023 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant