Comparing version 2.0.0-beta20 to 2.0.0-beta21
{ | ||
"name": "gitdocs", | ||
"version": "2.0.0-beta20", | ||
"version": "2.0.0-beta21", | ||
"description": "Easy to use, SEO-friendly, beautiful documentation that lives in your git repo.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -11,2 +11,3 @@ const { getContent } = require('./filesystem') | ||
title: item.title, | ||
tags: item.tags, | ||
breadcrumbs: item.breadcrumbs, | ||
@@ -13,0 +14,0 @@ content: await getContent(item.input), |
@@ -130,2 +130,3 @@ const syspath = require('path') | ||
if (metaData.description) hydratedItem.description = metaData.description | ||
if (metaData.tags) hydratedItem.tags = metaData.tags.split(',').map(i => i.trim()) | ||
@@ -132,0 +133,0 @@ // continue the breadcrumb from parent |
import styled, { css } from 'react-emotion' | ||
import { Accordion } from '@timberio/ui' | ||
import { filterProps } from '../utils' | ||
@@ -91,3 +92,3 @@ const _iconBase = css` | ||
export const NavList = styled(Accordion)` | ||
export const NavList = styled(filterProps(Accordion, ['isFirst']))` | ||
padding-left: ${props => props.isFirst ? 0 : '20px'}; | ||
@@ -110,5 +111,2 @@ a { | ||
opacity: 0.7; | ||
${props => !props.isFirst && css` | ||
// padding-left: 8px; | ||
`} | ||
} | ||
@@ -115,0 +113,0 @@ &.active { |
@@ -0,1 +1,3 @@ | ||
import React from 'react' | ||
export function ellipsify (text, limit) { | ||
@@ -10,1 +12,8 @@ if (!text) return '' | ||
} | ||
export function filterProps (element, whitelist) { | ||
return ({ children, ...props }) => { | ||
whitelist.forEach(i => delete props[i]) | ||
return React.createElement(element, props, children) | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
115984
3775