-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Update docs #220
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
Update docs #220
Conversation
bdbfb95
to
6f9c1c1
Compare
@@ -1,68 +1,104 @@ | |||
import _ from 'lodash' | |||
import React, { Component, PropTypes } from 'react' | |||
import SEMANTIC_TYPES from 'docs/app/utils/SemanticTypes' | |||
import STARDUST_TYPES from 'docs/app/utils/StardustTypes' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cruft, these are not part of the _meta
object and associated util.
6f9c1c1
to
015ffb7
Compare
_.includes(LIBRARY_VALUES, _.get(_meta, 'library')) && | ||
_.includes(TYPE_VALUES, _.get(_meta, 'type')) && | ||
_.includes(NAME_VALUES, _.get(_meta, 'name')) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can now validate _meta
objects. Meta is a static component prop, we need this below to identify / find the meta object from many possible sources.
* Extract the Stardust _meta object and optional key. | ||
* Handles literal _meta objects, classes with _meta, objects with _meta | ||
* @private | ||
* @param {string|function|object} arg A class, a component instance, or meta object.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should only be function | object
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right you are, thanks.
Don't see anything that sticks out to me, looks good so far. 👻 |
🐓 - looks like some great updates to the doc site |
015ffb7
to
e120207
Compare
This PR is a breakout of #206. Several issues were addressed:
Robust
_meta
utilShow
addons
in the sidebar.Show related components
Fix the sidebar filtering.
Blocked by
https://github.com/TechnologyAdvice/stardust/pull/221