-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Docs] Reformat exported fields documentation #12242
Conversation
Good to see this kicked off. Now we also see what it means of content we miss. It's quite a bit more then I expected and in some case the content seems to be useful. I think we need a different strategy :-( I keep thinking the table view like we have in ECS will make things better. And every time we have a description we put it on top of the following table? |
@ruflin I was afraid you would say that. I monkeyed around with the script quite a bit and couldn't get my logic for building tables to work quite right...there were always a couple of modules with yml structures that resulted in end table tags in the wrong place. If you can help me think through the logic to get this working, I would be obliged. |
I think I just figured out why my original attempt at creating tables was not working. Fixed a bug in the script for generating field reference: #12432 I'll take another crack at this after I get all the books building in asciidoctor. |
I've been playing around with this a bit more, and I'm not loving the way the long names look in the table format. Our page layout is not optimized for displaying tables, plus we can't currently control column widths because docbook does not preserve table attributes. ECS doesn't have this problem because we control the names. (Note that this is just an example. I will put the description before the type...just haven't bother yet) |
What if we do some tricks with tables and having 2 rows per entry. First entry with the field name and then below 2-3 columns with all the other things? I wonder if with this we could make it nicer? |
I'll come up with a few variations and put them up on firebase. I think you might find that complex tables are less readable than lists when rendered using our current site template. :-/ We also need to consider how these tables look when viewed on mobile devices. |
@ruflin I've done several iterations of table formats, and none of them works well with the long names that we use in some modules (see example above). I recommend that we avoid formatting this content in tables. Several reasons:
I'm going to propose a different approach. I've cleaned up the script a bit to add nested section levels and remove repeated content. That way, we don't lose content by removing sections (as we did with my first commit), but the content is a bit easier to scan because it doesn't have so much repeated info and the heading levels are properly nested. I recommend that we also add content to descriptions that are missing content. Here's what my suggested format looks like: (There will be missing descriptions in some sections until someone adds them, but overall I think this looks less janky.) |
217f25a
to
b138d9e
Compare
@dedemorton Thanks for the interations. I wonder if we should skip group fields if they don't have a description? An other option could be that we go for a more compact bullet list like we have here: https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-mssql-performance.html And the type we just mark in brackets in the end (type: keyword). |
@ruflin and I met to discuss our plans going forward. We decided to merge this PR because it's better than what we have now and requires no additional changes to the yaml files. I've opened #12523 to track the next phase of work that's required. Our end goal is to someday format this content in tables for easy scanning and retrievability, but we need to wait for updates to our doc site design to enable this. |
55d85ee
to
d7e62b0
Compare
Change LGTM. So basically it fixes the heading, removes @dedemorton Could you rebase this on master and run make update to get the build green? |
d7e62b0
to
c7d10e0
Compare
jenkins retest this please |
Sorry @dedemorton, I just merged #12621, so this one will need the rebase. |
c7d10e0
to
698b54c
Compare
I cannot get the CI on this PR to pass. Should I try creating a new branch that has only the new commits? I have no idea what to do to fix this. |
merging since the docs build is now GREEN! thanks @ycombinator! |
* [Docs] Remove extraneous section levels from field docs * Clean up headings to make content easier to scan * Move description and run make update * Rebase and run make update * Removed old commented out section from script * Rebase and run make update * Rebase and run make update * Fix code formatting and run make update * Fixing python script formatting to make pep8 linter happy
* [Docs] Reformat exported fields documentation (#12242) * [Docs] Remove extraneous section levels from field docs * Clean up headings to make content easier to scan * Move description and run make update * Rebase and run make update * Removed old commented out section from script * Rebase and run make update * Rebase and run make update * Fix code formatting and run make update * Fixing python script formatting to make pep8 linter happy * [Docs] Run make update
Let's consider this to be a 7.2 enhancement to the docs. Not planning to backport to 7.1 and earlier unless there's a big desire. |
* [Docs] Remove extraneous section levels from field docs * Clean up headings to make content easier to scan * Move description and run make update * Rebase and run make update * Removed old commented out section from script * Rebase and run make update * Rebase and run make update * Fix code formatting and run make update * Fixing python script formatting to make pep8 linter happy
* [Docs] Reformat exported fields documentation (elastic#12242) * [Docs] Remove extraneous section levels from field docs * Clean up headings to make content easier to scan * Move description and run make update * Rebase and run make update * Removed old commented out section from script * Rebase and run make update * Rebase and run make update * Fix code formatting and run make update * Fixing python script formatting to make pep8 linter happy * [Docs] Run make update
Closes #9519
This PR changes the structure of collapses the structure of the exported field reference docs by removing sections that add little value. You can see the layout under https://metricbeatexample.firebaseapp.com/exported-fields.html
Note that I had to add
description
toheartbeat/_meta/fields.common.yml
because it was missing. We'll need area owners to verify that no other fields were dropped.There's some real content that's stripped out with this change. We need to decide how to handle it.
@ruflin Please check my logic. Also let me know if you have any thoughts on how we can simplify the structure without throwing away useful content.
Update: I've reverted back to the version that includes all the sections because important info was being stripped out. I've (hopefully) made the existing content easier to scan by fixing the heading levels and removing duplicated info.