-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-28473][DOC] Stylistic consistency of build command in README #25231
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
Conversation
| To build Spark and its example programs, run: | ||
|
|
||
| build/mvn -DskipTests clean package | ||
| ./build/mvn -DskipTests clean package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you find more instances, @Mister-Meeseeks ? For example, R/README.md also has this.
To enforce stylistic consistency and increase clarity for the user, shell
command examples in the docs were prepended with `./`. For example
bin/spark-submit --jars ...
becomes
./bin/spark-submit --jars ...
This is the convention adhered to for most of the documentation already. This
commit converts the minority of examples that don't.
The `./` prefix is only added in the context of a specific instructional
command. When the docs are discussing in the context of a script, the prefix
is not included. For example "the `bin/spark-submit` script is used to launch
jobs" would *not* require the `./` prefix.
|
I scoured the documentation for offending examples. I believe I found and corrected every command example not conforming to the |
srowen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good if we can fix all of them consistently
|
ok to test. |
|
Test build #108061 has finished for PR 25231 at commit
|
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM.
Thank you, @Mister-Meeseeks and @srowen .
Merged to master.
What changes were proposed in this pull request?
Change the format of the build command in the README to start with a
./prefixThis increases stylistic consistency across the README- all the other commands have a
./prefix. Having a visible./prefix also makes it clear to the user that the shell command requires the current working directory to be at the repository root.How was this patch tested?
README.md was reviewed both in raw markdown and in the Github rendered landing page for stylistic consistency.