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>
weiji14
left a comment
There was a problem hiding this comment.
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.
| @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.
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.
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.
I prefer to put clean at the bottom.
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>
seisman
left a comment
There was a problem hiding this comment.
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>
- 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
helptargetclean,api, andservehtmlinformationall,help,clean,html,api,linkcheck,doctest,servehelp,all,html,api,serve,linkcheck,dotest,clean.cleantargetThe following are some of my thoughts on which I want your comments:
- [ ] Now thealltarget is the same as thehtml, so shall we remove thealltarget?linkchecktarget (originally posted in Add more targets to doc/makefile help information #914 (comment))?modulesandipynb_checkpointsin thecleantarget, but I cannot find them after I made all the targets. So remove them?servetarget to beserver?Fixes #914
Reminders
make formatandmake checkto 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