Skip to content
This repository was archived by the owner on Aug 9, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gitdocs",
"version": "2.0.0-beta10",
"version": "2.0.0-beta11",
"description": "Easy to use, SEO-friendly, beautiful documentation that lives in your git repo.",
"license": "MIT",
"homepage": "https://github.com/timberio/gitdocs#readme",
Expand Down
6 changes: 0 additions & 6 deletions themes/default/components/container.js

This file was deleted.

4 changes: 4 additions & 0 deletions themes/default/markdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Wrapper } from './styles'
import Code from './overrides/Code'
import Header from './overrides/Header'
import Link from './overrides/Link'
import Tip from './overrides/Tip'

export default function (props) {
const options = {
Expand Down Expand Up @@ -40,6 +41,9 @@ export default function (props) {
component: Header,
props: { level: 6 },
},
Tip: {
component: Tip,
},
a: Link,
}
}
Expand Down
29 changes: 29 additions & 0 deletions themes/default/markdown/overrides/Tip.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import styled from 'react-emotion'

export default styled('div')`
padding: 12px 24px 12px 20px;
margin: 2em 0;
border-left: 4px solid;
position: relative;
border-bottom-right-radius: 2px;
border-top-right-radius: 2px;
border-left-color: #3c763d;
background-color: rgba(241,249,241,.83);

&::before {
background-color: #3c763d;
content: "!";
position: absolute;
top: 50%;
transform: translateY(-50%);
left: -12px;
color: #fff;
width: 20px;
height: 20px;
border-radius: 100%;
text-align: center;
line-height: 20px;
font-weight: 700;
font-family: Dosis,Source Sans Pro,Helvetica Neue,Arial,sans-serif;
}
`
1 change: 1 addition & 0 deletions themes/default/markdown/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const Wrapper = styled('div')`
text-decoration: none;
margin: 0;
color: #0D0A2B;
line-height: initial;
}

a:first-of-type {
Expand Down
1 change: 1 addition & 0 deletions themes/default/search/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const Results = styled('div')`
width: 100%;
top: 65px;
height: 50vh;
min-width: 400px;
max-width: 700px;
max-height: 700px;
overflow: scroll;
Expand Down