Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitdocs

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitdocs - npm Package Compare versions

Comparing version 2.0.0-beta20 to 2.0.0-beta21

2

package.json
{
"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)
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc