danielgtaylor / danielgtaylor/aglio

olio-theme: Example rendering ignores sample values

Open
#322 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
4.7k
Forks
471
PR merge metrics
No merged PRs in 30d

Description

The olio theme will ignore any sample values when rendering an example and uses default values instead.

[See this line (example.coffee#L23)](https://github.com/danielgtaylor/aglio/blob/c52a482e5392849de12ce1cf43245ad66da44745/src/example.coffee#L23)

Example:
```
+ someAttribute (string, required)
+ Sample: Test Sample String
```

The `root` variable will contain
```
{ element: 'string', attributes: { samples: [ 'Test Sample Stirng' ] } }
```
and the sample value will not be used.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.