KEMBAR78
Improve "Building Ruby" docs by amomchilov · Pull Request #12320 · ruby/ruby · GitHub
Skip to content

Conversation

@amomchilov
Copy link
Contributor

@amomchilov amomchilov commented Dec 12, 2024

Currently, several of the commands listed in the "Testing Ruby" commands won't work, because they're expecting to run from the repository root (Example 1, 2, 3, 4). This contradicts the "Building Ruby" docs, which suggest building Ruby inside a build/ subdirectory. This PR corrects all those commands, to make them work from within the build/ dir.

This PR also makes several other improvements to the general clarity and readability of this documentation, especially for new readers. See the individual commits for more details.

@amomchilov amomchilov force-pushed the getting-started-docs branch 2 times, most recently from 659c86e to 8f2a4ee Compare December 12, 2024 20:51
@amomchilov amomchilov marked this pull request as ready for review December 12, 2024 21:37
@matzbot matzbot requested a review from a team December 12, 2024 21:37
@XrXr XrXr added the Documentation Improvements to documentation. label Dec 12, 2024
NEWS.md Outdated
Old:
```
```text
Copy link
Member

Choose a reason for hiding this comment

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

You seem to have mixed up doc improvements and the diff from #12322.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not mixed up, this PR is just stacked on top of those changes from #12322

Copy link
Member

Choose a reason for hiding this comment

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

When you're "stacking" PRs, you usually point the stacked PR to the base branch you're stacking on (which doesn't work if you do that from a fork, so you have to give up in this case). What you're doing is filing PRs with duplicated changes to the same branch. Since you're actually not stacking PRs, you should rebase your branch and remove duplication.

As Stan said on Slack, your changes don't need to be stacked because markdown files don't have dependencies unlike code and these changes work correctly without each other.

@amomchilov amomchilov requested a review from k0kubun December 12, 2024 22:16
@k0kubun
Copy link
Member

k0kubun commented Dec 12, 2024

Duplicated diffs require more effort to review and sometimes become a source of conflicts. If you're proposing a diff in other PRs, please remove it from this PR.

All the commands should run correctly by default, without the user needing to modify them. This builds confidence that the relative paths are working correct from within the `build` directory.

Also, let’s use a consistent example throughout, for greater clarity.
This shows the correct way to combine `-v` with another parameter, e.g. a specific file to test.
@k0kubun k0kubun merged commit 8cc47c9 into ruby:master Dec 13, 2024
19 checks passed
@k0kubun k0kubun deleted the getting-started-docs branch December 13, 2024 01:55
k0kubun added a commit that referenced this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements to documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants