<commit_before>import React from "react"

import { rhythm, scale } from "../utils/typography"
import presets from "../utils/presets"
import Container from "../components/container"

const DocsTemplate = React.createClass({
  render() {
    const packageName = this.props.data.markdownRemark.fields.title
    return (
      <Container>
        <a
          href={`https://github.com/gatsbyjs/gatsby/tree/1.0/packages/${packageName}`}
          css={{
            ...scale(-1 / 5),
            position: `absolute`,
          }}
        >
          Github
        </a>
        <div
          css={{
            position: `relative`,
            top: rhythm(-1 / 2),
          }}
          dangerouslySetInnerHTML={{
            __html: this.props.data.markdownRemark.html,
          }}
        />
      </Container>
    )
  },
})

export default DocsTemplate

export const pageQuery = graphql`
  query TemplateDocsQuery($slug: String!) {
    markdownRemark(fields: { slug: { eq: $slug }}) {
      fields {
        title
      }<commit_msg>Make link to Github source code more prominant (#1210)<commit_after>import React from "react"

import { rhythm, scale } from "../utils/typography"
import presets from "../utils/presets"
import Container from "../components/container"

const DocsTemplate = React.createClass({
  render() {
    const packageName = this.props.data.markdownRemark.fields.title
    return (
      <Container>
        <strong>
          <a
            href={`https://github.com/gatsbyjs/gatsby/tree/1.0/packages/${packageName}`}
            css={{
              position: `absolute`,
            }}
          >
            Browse source code for package on Github
          </a>
        </strong>
        <div
          css={{
            position: `relative`,
          }}
          dangerouslySetInnerHTML={{
            __html: this.props.data.markdownRemark.html,
          }}
        />
      </Container>
    )
  },
})

export default DocsTemplate

export const pageQuery = graphql`
  query TemplateDocsQuery($slug: String!) {
    markdownRemark(fields: { slug: { eq: $slug }}) {
      fields {
        title
      }
{'fraction_non_alphanumeric': 0.129153018249883, 'fraction_numerical': 0.005615348619560131, 'mean_word_length': 1.8814016172506738, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7476904', 'n_tokens_mistral': 618, 'n_tokens_neox': 616, 'n_words': 135}