Skip to content

Add examples that can be used by MkDoc #27

Description

@lexjansen

MkDoc can embed examples in the LinkML class documentation
https://linkml.io/linkml/generators/docgen.html

Examples can optionally be integrated into the documentation; to enable this, pass in the –example-directory argument. The example directory should contain one file per example, following the naming convention -..

For example, to include examples on the page for Person, include examples

Person-001.yaml, Person-002.yaml, etc.

Currently examples must be in yaml

MkDocs option:
example-directory <example_directory>
Folder in which example files are found. These are used to make inline examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    Priority

    None yet

    T-shirt sizing

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions