Closed
Conversation
Contributor
Author
|
Closing until we get further with discussions on how we're using this metadata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR plays with adding Asciidoctor metadata to the machine learning content per https://asciidoctor.org/docs/user-manual/#metadata
In particular, this PR adds the page's content type (reference/concept/etc) as keyword metadata. It results in the following, for example:
The values that we put in the "tags" and "subject" field in the https://github.com/elastic/docs/blob/master/conf.yaml, on the other hand, apply to every page in the book and are output as follows:
Another option: "You can add content, such as custom metadata, stylesheet, and script information, to the header of the output document using docinfo ("document information" files)". For example, we can have docinfo files that apply to all documents in the same directory. See https://asciidoctor.org/docs/user-manual/#docinfo-file