-
Notifications
You must be signed in to change notification settings - Fork 4
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
#140 - Alternate config_options style #137
Conversation
Codecov Report
@@ Coverage Diff @@
## master #137 +/- ##
==========================================
+ Coverage 88.47% 88.77% +0.29%
==========================================
Files 27 27
Lines 1527 1630 +103
==========================================
+ Hits 1351 1447 +96
- Misses 176 183 +7
|
Nice. Can you replace all the options that are headings to
I think it would be best if all the options had a consistent look. |
Absolutely. This was just a first try to see what it would look like and if it would improve things before going all the way. |
Actually, I don't think I want all the options to be links instead of headings. I think we want to keep headings for some of them so they appear in the table of contents. My first try is with only the innermost options as "links" and the other levels of options are headings. I was somewhat taking inspiration from here. It uses headings for all keys that have no values and uses the "link" approach for the sub-keys with values. Obviously, we have keys at the top level that have values so I'm not sure what will be the best for that case. |
@SeanBryan51 I'm curious to see what you think of it now. |
Looks good to me! |
@bschroeter Sean and I have seen this documentation way too many times. I think some fresher eyes for the review would be good. |
@bschroeter you can see a preview of the docs, by clicking on "Details" for the |
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. Just a couple of suggestions from me.
-
The admonition used to alert the user to all items being required at the top of the page could be the exclamation point (
!!! warning
). Semantically, an exclamation point usually means "hey, stop, look here!" which is perhaps the message we want to send for that sort of thing. I'm not sure the note icon and colouring conveys the importance and is likely to be overlooked. This does of course change the colour of the box to orange, but perhaps that is a good thing? Note, this isn't actually part of this commit so feel free to ignore this suggestion. -
It would be good to have a "Putting it all together" section at the end where all of the options just explained are combined into a complete and working configuration as a code block. This will help users who just want to grab a configuration example and drop it in, without having to worry about getting the yaml syntax correct.
Actually, I think we can completely remove this. I have now specified for each option whether it is optional or required. So that the look is consistent between options. But I've realised I've used required option but optional key. I'll changed all to key. |
@bschroeter About the "put it all together", we already tell users to start from the If people come from the User Guide to this page to see the options, it is linked from this paragraph:
So they should have the example open on their screen. |
- remove admonition box, now redundant - list experiments in table - changed "required option" to "required key" for consitency with "optional key"
This is a fair assumption. I can appreciate that the example on the docs will likely get out of date with what is installed. |
Modifications to
config_options.md
in the documentation to improve readability: