-
Notifications
You must be signed in to change notification settings - Fork 224
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
Improve the targets in doc/Makefile #1014
Conversation
Putting
I still want to keep the
@weiji14 is removing both
Sounds OK to me.
I have seen both in other projects. So I'm OK with either. |
Yes please do it here instead, feel free to cherry-pick commit 89f1f94 and f04173b. |
hmm~ I even did not know |
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
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.
Looking good, just one more suggestion on alphabetically ordering the Makefile targets.
Also, could you change the title of this PR to be a bit more descriptive? E.g. "Improve help section of Makefile" or something like that. It's generally a good idea to be more specific on what are the main changes that were made so that people scanning the git log
know what happened.
doc/Makefile
Outdated
@echo " html build the HTML files from the existing rst sources" | ||
@echo " api generate rst source files of API documentation" | ||
@echo " server make a local HTTP server for previewing the built documentation" | ||
@echo " clean clean up built and generated files" |
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.
Maybe sort these lines alphabetically?
@echo " html build the HTML files from the existing rst sources" | |
@echo " api generate rst source files of API documentation" | |
@echo " server make a local HTTP server for previewing the built documentation" | |
@echo " clean clean up built and generated files" | |
@echo " api generate rst source files of API documentation" | |
@echo " clean clean up built and generated files" | |
@echo " html build the HTML files from the existing rst sources" | |
@echo " server make a local HTTP server for previewing the built documentation" |
I'd also prefer it if the rest of this Makefile was sorted alphabetically (i.e. all, api, clean, html, server), while keeping this help
target on top of course.
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.
People usually put clean
to be the last one, while the target like all
or install
/build
/html
is the first one in a makefile. Shall we keep this rule? @seisman @willschlitzer How do you think?
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.
I prefer to put clean
at the bottom.
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.
Great~ I once thought to always have a title that can represent all the changes in one PR:joy:. Change to be "Improve the help target of doc/Makefile" |
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
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 to me, but ping @weiji14 @meghanrjones @willschlitzer for comments.
@core-man Please update the PR description based on the changes in this PR. |
Co-authored-by: Meghan Jones <meghanj@alum.mit.edu>
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.
Nice!
- Remove useless "linkcheck" and "doctest" targets - Improve the "clean" target - Improve the verbose messages of "api" and "server" targets - Rename the "serve" target to "server" Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com> Co-authored-by: Dongdong Tian <seisman.info@gmail.com> Co-authored-by: Meghan Jones <meghanj@alum.mit.edu>
Description of proposed changes
help
targetclean
,api
, andserve
html
informationall
,help
,clean
,html
,api
,linkcheck
,doctest
,serve
help
,all
,html
,api
,serve
,linkcheck
,dotest
,clean
.clean
targetThe following are some of my thoughts on which I want your comments:
- [ ] Now theall
target is the same as thehtml
, so shall we remove theall
target?linkcheck
target (originally posted in Add more targets to doc/makefile help information #914 (comment))?modules
andipynb_checkpoints
in theclean
target, but I cannot find them after I made all the targets. So remove them?serve
target to beserver
?Fixes #914
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version