Choose columns to be displayed in properties table in md template #220
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello developers!
Thanks for this package, I found it recently and it has been very useful for me. Since this is my first PR here, I do apologise in anticipation for eventual deviations from the expected format (although I have read the contributing guidelines). The changes here are described below.
Add a config option
properties_table_columns
that can be used to choose the columns to be displayed in the properties tables, as well as the order in which they appear. For instance, one may writeAnd the output property tables will have columns
The labels in the tables' headers are converted to title case.
As part of the process, and due to some tests I'm running in another project which uses this to publish docs to a page on Githib pages, I noticed that some entries without a name were being included in the properties table. I changed the code so that these were no longer added.
Another incidental change in this PR is to put anchor links on top of the headers. I found that having them insie the headers would cause duplication of the links in some cases (some templates use the headers to create menus, for instance), and then the links would no longer work as expected.
I am aware that this PR is failing the tests right now, because these changes produce results for the examples that are no longer identical to the expected ones. Would you be able to help me addressing these? I suspect you may already have some script to update the examples when doing changes that modify the expected outputs, so I thought it would be a good idea to ask first.