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
ongoing doc updates #4110
base: main
Are you sure you want to change the base?
ongoing doc updates #4110
Conversation
# | ||
# This function is used for changing existing job. It fully replace job | ||
# parameters with new one but with same id. | ||
# parameters with new one but with same id. When executing commands, any output | ||
# is mailed to user's email if user config parameter CRON_REPORTS is set to 'yes'. |
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.
Please do not wrap lines it should be handled by the editor or Vitepress
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.
It's your instructions TO wrap lines:
https://github.com/hestiacp/hestia-cli-docs#format the description is mandatory, delimited with empty line and consists of sentences wrapped for 80 width limit, each line is prepended with #
It's better readability in the file.
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'm bumping this. I think it is better to have better documentation with worse formatting than worse documentation with better formatting.
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.
For one, I always recommend following https://sembr.org over character limits.
Then this has grammar issues, so here my suggestion:
# Fully replaces job parameters of an existing job, preserving its id.
# When executing commands, any output is mailed to the user's email
# if user config parameter CRON_REPORTS is set to 'yes'.
The code for CLI. Needs to be improved.. Ideally it should update every week the main branch somehow.. |
Not sure what you are referring to. All good with these changes? |
For the CLI Doc generator..... |
That would be cool! BTW: I will do a pull request for the CLI Doc generator and fix:
Add add this one time to the top of the template; NOT for each entry:
|
I don't think updating it like this will improve the readability of the for the docs... We should improve first cli doc writer so we can remove the argument explanation outside the examples |
I agree. But this is about improving the content. I think this is better than nothing, because someone should be able to use the CLI without looking at the code.
I agree. There should be a new block between Could you add this block to the cli doc writer? In the meantime, could you merge these changes? They improve the content of the documentation, which saves everyone time. Thanks! |
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'm bumping this. I think it is better to have better documentation with worse formatting than worse documentation with better formatting.
I would like to regularly contribute to the documentation. I find errors and omissions all the time but stopped correcting them because this pull request is stalled.
# | ||
# This function is used for changing existing job. It fully replace job | ||
# parameters with new one but with same id. | ||
# parameters with new one but with same id. When executing commands, any output | ||
# is mailed to user's email if user config parameter CRON_REPORTS is set to 'yes'. |
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'm bumping this. I think it is better to have better documentation with worse formatting than worse documentation with better formatting.
How can I help here? If i'm understanding this correctly @jaapmarcus wants 2 things:
|
I don;t understand though why these lofty goals impede the merge of this straightforward PR |
I don't want / have to rework everything again if we decide on a better format. It is a waste of our time... In the current suggested method it really sucks ... It doesn't improve readability .. I think this is allready a huge improvement ... Feel free to provide feed back in https://forum.hestiacp.com/t/changens-to-documentation/12952/6 |
I created a better work flow to start regularly updating docs. I will keep this branch active and all modifications will be doc only.
I installed https://github.com/hestiacp/hestia-cli-docs and tested some different ways to create better example formatting. This renders correctly:
Small formatting issue: changing
lib/process-cmds.js
line 192:.join('\n ')
to.join('\n')
fixes that. let me know if you prefer a pull request for that.