From 03ffd3b13a9bba27e6169e4c9cfaad5500832c5f Mon Sep 17 00:00:00 2001 From: Josh Goodman Date: Fri, 16 Nov 2018 23:30:40 -0500 Subject: [PATCH 01/23] Upgraded deps. --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index bccb983..ceb37e0 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,12 @@ "version": "0.1.0", "author": "Josh Goodman ", "dependencies": { - "@mdx-js/mdx": "^0.15.2", - "@mdx-js/tag": "^0.15.0", + "@mdx-js/mdx": "^0.16.0", + "@mdx-js/tag": "^0.16.0", "babel-plugin-styled-components": "^1.7.1", "core-js": "^2.5.7", "gatsby": "^2.0.0", - "gatsby-mdx": "^0.1.4", + "gatsby-mdx": "^0.2.0", "gatsby-plugin-manifest": "^2.0.2", "gatsby-plugin-offline": "^2.0.5", "gatsby-plugin-react-helmet": "^3.0.0", @@ -18,15 +18,15 @@ "gatsby-source-filesystem": "^2.0.1", "gatsby-transformer-json": "^2.1.1", "lodash.startcase": "^4.4.0", - "mobx": "^4.5.0", + "mobx": "^5.6.0", "react": "^16.5.1", "react-dom": "^16.5.1", "react-helmet": "^5.2.0", "redoc": "^2.0.0-alpha.40", "remark-toc": "^5.0.0", "semantic-ui-css": "^2.4.0", - "semantic-ui-react": "^0.82.5", - "styled-components": "^3.4.9" + "semantic-ui-react": "^0.83.0", + "styled-components": "^4.1.1" }, "keywords": [ "gatsby", @@ -38,7 +38,7 @@ "develop": "gatsby develop", "format": "prettier --write '*.{js,jsx}' 'src/**/*.{js,jsx}'", "test": "echo \"Error: no test specified\" && exit 1", - "deploy": "gatsby build --prefix-paths && gh-pages -d public -b gh-pages" + "deploy": "gatsby build --prefix-paths && gh-pages -d public -b master" }, "devDependencies": { "gh-pages": "^2.0.0", From 4259c2b17601d7fc741b13594a171431a7d2c602 Mon Sep 17 00:00:00 2001 From: Josh Goodman Date: Tue, 16 Apr 2019 11:02:01 -0400 Subject: [PATCH 02/23] Migrated github site to docusaurus. --- .dockerignore | 2 + .gitignore | 2 + Dockerfile | 10 + docker-compose.yml | 18 + src/content/chado/index.mdx => docs/chado.md | 20 +- docs/downloads.md | 17 + gatsby-browser.js | 7 - gatsby-config.js | 41 - gatsby-node.js | 109 - gatsby-ssr.js | 7 - package.json | 51 - src/components/FlyBaseIcons.js | 26 - src/components/docs.js | 41 - src/components/footer.js | 17 - src/components/header.js | 24 - src/components/layout.css | 649 -- src/components/layout.js | 52 - src/components/theme.js | 10 - src/content/downloads/index.mdx | 23 - src/pages/404.js | 11 - src/pages/api/index.js | 29 - src/pages/api/openapi.json | 984 -- src/pages/index.js | 57 - website/README.md | 193 + website/core/Footer.js | 68 + website/i18n/en.json | 31 + website/package-lock.json | 9642 ++++++++++++++++++ website/package.json | 15 + website/pages/en/help.js | 54 + website/pages/en/index.js | 149 + website/pages/en/users.js | 48 + website/sidebars.json | 5 + website/siteConfig.js | 112 + website/static/css/custom.css | 26 + website/static/img/favicon/favicon.ico | Bin 0 -> 1566 bytes website/static/img/fly_logo.png | Bin 0 -> 22754 bytes website/yarn.lock | 6057 +++++++++++ 37 files changed, 16451 insertions(+), 2156 deletions(-) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yml rename src/content/chado/index.mdx => docs/chado.md (81%) create mode 100644 docs/downloads.md delete mode 100644 gatsby-browser.js delete mode 100644 gatsby-config.js delete mode 100644 gatsby-node.js delete mode 100644 gatsby-ssr.js delete mode 100644 package.json delete mode 100644 src/components/FlyBaseIcons.js delete mode 100644 src/components/docs.js delete mode 100644 src/components/footer.js delete mode 100644 src/components/header.js delete mode 100644 src/components/layout.css delete mode 100644 src/components/layout.js delete mode 100644 src/components/theme.js delete mode 100644 src/content/downloads/index.mdx delete mode 100644 src/pages/404.js delete mode 100644 src/pages/api/index.js delete mode 100644 src/pages/api/openapi.json delete mode 100644 src/pages/index.js create mode 100644 website/README.md create mode 100644 website/core/Footer.js create mode 100644 website/i18n/en.json create mode 100644 website/package-lock.json create mode 100644 website/package.json create mode 100644 website/pages/en/help.js create mode 100644 website/pages/en/index.js create mode 100644 website/pages/en/users.js create mode 100644 website/sidebars.json create mode 100644 website/siteConfig.js create mode 100644 website/static/css/custom.css create mode 100644 website/static/img/favicon/favicon.ico create mode 100644 website/static/img/fly_logo.png create mode 100644 website/yarn.lock diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..27d2dae --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +*/node_modules +*.log diff --git a/.gitignore b/.gitignore index 88f21de..c94c6c2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,9 @@ node_modules yarn-error.log + # Build directory /public +build .DS_Store .idea diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d369844 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:8.11.4 + +WORKDIR /app/website + +EXPOSE 3000 35729 +COPY ./docs /app/docs +COPY ./website /app/website +RUN yarn install + +CMD ["yarn", "start"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6711192 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: "3" + +services: + docusaurus: + build: . + ports: + - 3000:3000 + - 35729:35729 + volumes: + - ./docs:/app/docs + - ./website/blog:/app/website/blog + - ./website/core:/app/website/core + - ./website/i18n:/app/website/i18n + - ./website/pages:/app/website/pages + - ./website/static:/app/website/static + - ./website/sidebars.json:/app/website/sidebars.json + - ./website/siteConfig.js:/app/website/siteConfig.js + working_dir: /app/website diff --git a/src/content/chado/index.mdx b/docs/chado.md similarity index 81% rename from src/content/chado/index.mdx rename to docs/chado.md index 42c2228..5ab9950 100644 --- a/src/content/chado/index.mdx +++ b/docs/chado.md @@ -1,22 +1,8 @@ --- -title: "FlyBase Chado" -date: "2017-08-10" -tags: - - chado +id: chado-general +title: General Chado Information --- -import { Breadcrumb } from 'semantic-ui-react' -import { navigate } from 'gatsby' - -
- - navigate('/') }>Home - - Chado - -
- - ## FlyBase Chado ### Background @@ -72,5 +58,3 @@ Type "help" for help. flybase=> ``` - - diff --git a/docs/downloads.md b/docs/downloads.md new file mode 100644 index 0000000..5000383 --- /dev/null +++ b/docs/downloads.md @@ -0,0 +1,17 @@ +--- +id: downloads +title: FlyBase Downloads +--- + + +## Documentation +* [Downloads Overview](https://wiki.flybase.org/wiki/FlyBase:Downloads_Overview) + +## FTP site + +When accessing the FTP site, we suggest using an FTP client that supports passive mode. +Passive mode is required for downloading files. + +* [Releases FTP](ftp://ftp.flybase.org/releases/) +* [Genome FTP](ftp://ftp.flybase.org/genomes/) + diff --git a/gatsby-browser.js b/gatsby-browser.js deleted file mode 100644 index b1e5c31..0000000 --- a/gatsby-browser.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Implement Gatsby's Browser APIs in this file. - * - * See: https://www.gatsbyjs.org/docs/browser-apis/ - */ - -// You can delete this file if you're not using it diff --git a/gatsby-config.js b/gatsby-config.js deleted file mode 100644 index fcf5d37..0000000 --- a/gatsby-config.js +++ /dev/null @@ -1,41 +0,0 @@ -module.exports = { - siteMetadata: { - title: "FlyBase for Developers", - }, - plugins: [ - "gatsby-plugin-react-helmet", - "gatsby-transformer-json", - { - resolve: "gatsby-source-filesystem", - options: { - name: "docs", - path: `${__dirname}/src/content/`, - }, - }, - { - resolve: "gatsby-plugin-manifest", - options: { - name: "gatsby-starter-default", - short_name: "starter", - start_url: "/", - background_color: "#036", - theme_color: "#036", - display: "minimal-ui", - //icon: 'src/images/gatsby-icon.png', // This path is relative to the root of the site. - }, - }, - "gatsby-plugin-offline", - { - resolve: "gatsby-mdx", - options: { - defaultLayouts: { - default: require.resolve("./src/components/docs.js"), - }, - extensions: [".mdx", ".md"], - mdPlugins: [require("remark-toc")], - gatsbyRemarkPlugins: [{ resolve: "gatsby-remark-autolink-headers" }], - }, - }, - "gatsby-plugin-styled-components", - ], -} diff --git a/gatsby-node.js b/gatsby-node.js deleted file mode 100644 index 76322f9..0000000 --- a/gatsby-node.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Implement Gatsby's Node APIs in this file. - * - * See: https://www.gatsbyjs.org/docs/node-apis/ - */ - -// gatsby-node.js -const path = require("path") -const startCase = require("lodash.startcase") -const componentWithMDXScope = require("gatsby-mdx/component-with-mdx-scope") - -// You can delete this file if you're not using it -exports.onCreateWebpackConfig = ({ stage, loaders, actions }) => { - if (stage === "build-html") { - actions.setWebpackConfig({ - module: { - rules: [ - { - test: /swagger-ui/, - use: loaders.null(), - }, - ], - }, - }) - } -} - -exports.createPages = ({ graphql, actions }) => { - const { createPage } = actions - return new Promise((resolve, reject) => { - resolve( - graphql( - ` - { - allMdx { - edges { - node { - fields { - id - slug - } - tableOfContents - code { - scope - } - } - } - } - } - ` - ).then(result => { - if (result.errors) { - console.log(result.errors) - reject(result.errors) - } - // Create blog posts pages. - result.data.allMdx.edges.forEach(({ node }) => { - createPage({ - path: node.fields.slug ? node.fields.slug : "/", - component: componentWithMDXScope( - path.resolve("./src/components/docs.js"), - node.code.scope - ), - context: { - id: node.fields.id, - }, - }) - }) - }) - ) - }) -} - -exports.onCreateWebpackConfig = ({ actions }) => { - actions.setWebpackConfig({ - resolve: { - modules: [path.resolve(__dirname, "src"), "node_modules"], - alias: { $components: path.resolve(__dirname, "src/components") }, - }, - }) -} - -exports.onCreateNode = ({ node, getNode, actions }) => { - const { createNodeField } = actions - - if (node.internal.type === `Mdx`) { - const parent = getNode(node.parent) - let value = parent.relativePath.replace(parent.ext, "") - value = value.replace(/\/index$/i, "/") - - createNodeField({ - name: "slug", - node, - value: `/${value}`, - }) - - createNodeField({ - name: "id", - node, - value: node.id, - }) - - createNodeField({ - name: "title", - node, - value: node.frontmatter.title || startCase(parent.name), - }) - } -} diff --git a/gatsby-ssr.js b/gatsby-ssr.js deleted file mode 100644 index b17b8fc..0000000 --- a/gatsby-ssr.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. - * - * See: https://www.gatsbyjs.org/docs/ssr-apis/ - */ - -// You can delete this file if you're not using it diff --git a/package.json b/package.json deleted file mode 100644 index ceb37e0..0000000 --- a/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "flybase.github.io", - "description": "FlyBase doc site for developers", - "version": "0.1.0", - "author": "Josh Goodman ", - "dependencies": { - "@mdx-js/mdx": "^0.16.0", - "@mdx-js/tag": "^0.16.0", - "babel-plugin-styled-components": "^1.7.1", - "core-js": "^2.5.7", - "gatsby": "^2.0.0", - "gatsby-mdx": "^0.2.0", - "gatsby-plugin-manifest": "^2.0.2", - "gatsby-plugin-offline": "^2.0.5", - "gatsby-plugin-react-helmet": "^3.0.0", - "gatsby-plugin-styled-components": "^3.0.0", - "gatsby-remark-autolink-headers": "^2.0.6", - "gatsby-source-filesystem": "^2.0.1", - "gatsby-transformer-json": "^2.1.1", - "lodash.startcase": "^4.4.0", - "mobx": "^5.6.0", - "react": "^16.5.1", - "react-dom": "^16.5.1", - "react-helmet": "^5.2.0", - "redoc": "^2.0.0-alpha.40", - "remark-toc": "^5.0.0", - "semantic-ui-css": "^2.4.0", - "semantic-ui-react": "^0.83.0", - "styled-components": "^4.1.1" - }, - "keywords": [ - "gatsby", - "flybase" - ], - "license": "MIT", - "scripts": { - "build": "gatsby build", - "develop": "gatsby develop", - "format": "prettier --write '*.{js,jsx}' 'src/**/*.{js,jsx}'", - "test": "echo \"Error: no test specified\" && exit 1", - "deploy": "gatsby build --prefix-paths && gh-pages -d public -b master" - }, - "devDependencies": { - "gh-pages": "^2.0.0", - "prettier": "^1.14.2" - }, - "repository": { - "type": "git", - "url": "https://github.com/FlyBase/flybase.github.io" - } -} diff --git a/src/components/FlyBaseIcons.js b/src/components/FlyBaseIcons.js deleted file mode 100644 index 72328f2..0000000 --- a/src/components/FlyBaseIcons.js +++ /dev/null @@ -1,26 +0,0 @@ -import React from "react" -import { Icon } from "semantic-ui-react" - -function FlyBaseIcons({ iconSize = "large" }) { - return ( - - - - - - - - - - - - - - - - - - ) -} - -export default FlyBaseIcons diff --git a/src/components/docs.js b/src/components/docs.js deleted file mode 100644 index 96ed1f7..0000000 --- a/src/components/docs.js +++ /dev/null @@ -1,41 +0,0 @@ -import React, { Component } from "react" -import { graphql } from "gatsby" - -import MDXRenderer from "gatsby-mdx/mdx-renderer" -import { MDXProvider } from "@mdx-js/tag" -import { Grid } from "semantic-ui-react" - -import Layout from "./layout" - -export default class MDXRuntimeTest extends Component { - render() { - const { children, __mdxScope, data, ...props } = this.props - return ( - - - - - -
{children}
- - {data.mdx.code.body} - -
-
-
-
-
- ) - } -} - -export const pageQuery = graphql` - query($id: String!) { - mdx(id: { eq: $id }) { - id - code { - body - } - } - } -` diff --git a/src/components/footer.js b/src/components/footer.js deleted file mode 100644 index 9af9040..0000000 --- a/src/components/footer.js +++ /dev/null @@ -1,17 +0,0 @@ -import React from "react" -import { Divider, Grid } from "semantic-ui-react" - -import FlyBaseIcons from "./FlyBaseIcons" - -const Footer = () => ( - - - - - - - - -) - -export default Footer diff --git a/src/components/header.js b/src/components/header.js deleted file mode 100644 index 6abb8ab..0000000 --- a/src/components/header.js +++ /dev/null @@ -1,24 +0,0 @@ -import React from "react" -import { Link } from "gatsby" -import { Grid, Header as SemHeader } from "semantic-ui-react" - -import FlyBaseIcons from "./FlyBaseIcons" - -const Header = ({ siteTitle, iconSize = "large" }) => ( - - - - - - {siteTitle} - - - - - - - - -) - -export default Header diff --git a/src/components/layout.css b/src/components/layout.css deleted file mode 100644 index d875e48..0000000 --- a/src/components/layout.css +++ /dev/null @@ -1,649 +0,0 @@ -html { - font-family: sans-serif; - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; -} -body { - margin: 0; -} -article, -aside, -details, -figcaption, -figure, -footer, -header, -main, -menu, -nav, -section, -summary { - display: block; -} -audio, -canvas, -progress, -video { - display: inline-block; -} -audio:not([controls]) { - display: none; - height: 0; -} -progress { - vertical-align: baseline; -} -[hidden], -template { - display: none; -} -a { - background-color: transparent; - -webkit-text-decoration-skip: objects; -} -a:active, -a:hover { - outline-width: 0; -} -abbr[title] { - border-bottom: none; - text-decoration: underline; - text-decoration: underline dotted; -} -b, -strong { - font-weight: inherit; - font-weight: bolder; -} -dfn { - font-style: italic; -} -h1 { - font-size: 2em; - margin: .67em 0; -} -mark { - background-color: #ff0; - color: #000; -} -small { - font-size: 80%; -} -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} -sub { - bottom: -.25em; -} -sup { - top: -.5em; -} -img { - border-style: none; -} -svg:not(:root) { - overflow: hidden; -} -code, -kbd, -pre, -samp { - font-family: monospace, monospace; - font-size: 1em; -} -figure { - margin: 1em 40px; -} -hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} -button, -input, -optgroup, -select, -textarea { - font: inherit; - margin: 0; -} -optgroup { - font-weight: 700; -} -button, -input { - overflow: visible; -} -button, -select { - text-transform: none; -} -[type=reset], -[type=submit], -button, -html [type=button] { - -webkit-appearance: button; -} -[type=button]::-moz-focus-inner, -[type=reset]::-moz-focus-inner, -[type=submit]::-moz-focus-inner, -button::-moz-focus-inner { - border-style: none; - padding: 0; -} -[type=button]:-moz-focusring, -[type=reset]:-moz-focusring, -[type=submit]:-moz-focusring, -button:-moz-focusring { - outline: 1px dotted ButtonText; -} -fieldset { - border: 1px solid silver; - margin: 0 2px; - padding: .35em .625em .75em; -} -legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; -} -textarea { - overflow: auto; -} -[type=checkbox], -[type=radio] { - box-sizing: border-box; - padding: 0; -} -[type=number]::-webkit-inner-spin-button, -[type=number]::-webkit-outer-spin-button { - height: auto; -} -[type=search] { - -webkit-appearance: textfield; - outline-offset: -2px; -} -[type=search]::-webkit-search-cancel-button, -[type=search]::-webkit-search-decoration { - -webkit-appearance: none; -} -::-webkit-input-placeholder { - color: inherit; - opacity: .54; -} -::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; -} -html { - font: 112.5%/1.45em georgia, serif; - box-sizing: border-box; - overflow-y: scroll; -} -* { - box-sizing: inherit; -} -*:before { - box-sizing: inherit; -} -*:after { - box-sizing: inherit; -} -body { - color: hsla(0, 0%, 0%, 0.8); - font-family: georgia, serif; - font-weight: normal; - word-wrap: break-word; - font-kerning: normal; - -moz-font-feature-settings: "kern", "liga", "clig", "calt"; - -ms-font-feature-settings: "kern", "liga", "clig", "calt"; - -webkit-font-feature-settings: "kern", "liga", "clig", "calt"; - font-feature-settings: "kern", "liga", "clig", "calt"; -} -img { - max-width: 100%; - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -h1 { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; - color: inherit; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; - font-weight: bold; - text-rendering: optimizeLegibility; - font-size: 2.25rem; - line-height: 1.1; -} -h2 { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; - color: inherit; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; - font-weight: bold; - text-rendering: optimizeLegibility; - font-size: 1.62671rem; - line-height: 1.1; -} -h3 { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; - color: inherit; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; - font-weight: bold; - text-rendering: optimizeLegibility; - font-size: 1.38316rem; - line-height: 1.1; -} -h4 { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; - color: inherit; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; - font-weight: bold; - text-rendering: optimizeLegibility; - font-size: 1rem; - line-height: 1.1; -} -h5 { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; - color: inherit; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; - font-weight: bold; - text-rendering: optimizeLegibility; - font-size: 0.85028rem; - line-height: 1.1; -} -h6 { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; - color: inherit; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; - font-weight: bold; - text-rendering: optimizeLegibility; - font-size: 0.78405rem; - line-height: 1.1; -} -hgroup { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -ul { - margin-left: 1.45rem; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; - list-style-position: outside; - list-style-image: none; -} -ol { - margin-left: 1.45rem; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; - list-style-position: outside; - list-style-image: none; -} -dl { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -dd { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -p { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -figure { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -pre { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; - font-size: 0.85rem; - line-height: 1.42; - background: hsla(0, 0%, 0%, 0.04); - border-radius: 3px; - overflow: auto; - word-wrap: normal; - padding: 1.45rem; -} -table { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; - font-size: 1rem; - line-height: 1.45rem; - border-collapse: collapse; - width: 100%; -} -fieldset { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -blockquote { - margin-left: 1.45rem; - margin-right: 1.45rem; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -form { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -noscript { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -iframe { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -hr { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: calc(1.45rem - 1px); - background: hsla(0, 0%, 0%, 0.2); - border: none; - height: 1px; -} -address { - margin-left: 0; - margin-right: 0; - margin-top: 0; - padding-bottom: 0; - padding-left: 0; - padding-right: 0; - padding-top: 0; - margin-bottom: 1.45rem; -} -b { - font-weight: bold; -} -strong { - font-weight: bold; -} -dt { - font-weight: bold; -} -th { - font-weight: bold; -} -li { - margin-bottom: calc(1.45rem / 2); -} -ol li { - padding-left: 0; -} -ul li { - padding-left: 0; -} -li > ol { - margin-left: 1.45rem; - margin-bottom: calc(1.45rem / 2); - margin-top: calc(1.45rem / 2); -} -li > ul { - margin-left: 1.45rem; - margin-bottom: calc(1.45rem / 2); - margin-top: calc(1.45rem / 2); -} -blockquote *:last-child { - margin-bottom: 0; -} -li *:last-child { - margin-bottom: 0; -} -p *:last-child { - margin-bottom: 0; -} -li > p { - margin-bottom: calc(1.45rem / 2); -} -code { - font-size: 0.85rem; - line-height: 1.45rem; -} -kbd { - font-size: 0.85rem; - line-height: 1.45rem; -} -samp { - font-size: 0.85rem; - line-height: 1.45rem; -} -abbr { - border-bottom: 1px dotted hsla(0, 0%, 0%, 0.5); - cursor: help; -} -acronym { - border-bottom: 1px dotted hsla(0, 0%, 0%, 0.5); - cursor: help; -} -abbr[title] { - border-bottom: 1px dotted hsla(0, 0%, 0%, 0.5); - cursor: help; - text-decoration: none; -} -thead { - text-align: left; -} -td, -th { - text-align: left; - border-bottom: 1px solid hsla(0, 0%, 0%, 0.12); - font-feature-settings: "tnum"; - -moz-font-feature-settings: "tnum"; - -ms-font-feature-settings: "tnum"; - -webkit-font-feature-settings: "tnum"; - padding-left: 0.96667rem; - padding-right: 0.96667rem; - padding-top: 0.725rem; - padding-bottom: calc(0.725rem - 1px); -} -th:first-child, -td:first-child { - padding-left: 0; -} -th:last-child, -td:last-child { - padding-right: 0; -} -tt, -code { - background-color: hsla(0, 0%, 0%, 0.04); - border-radius: 3px; - font-family: "SFMono-Regular", Consolas, "Roboto Mono", "Droid Sans Mono", - "Liberation Mono", Menlo, Courier, monospace; - padding: 0; - padding-top: 0.2em; - padding-bottom: 0.2em; -} -pre code { - background: none; - line-height: 1.42; -} -code:before, -code:after, -tt:before, -tt:after { - letter-spacing: -0.2em; - content: " "; -} -pre code:before, -pre code:after, -pre tt:before, -pre tt:after { - content: ""; -} -@media only screen and (max-width: 480px) { - html { - font-size: 100%; - } -} - -main { - margin-top: 3rem; -} - -.topbar { - background-color: #036; - height: 6rem; - color: white; -} - -.topbar a { - color: white; -} - -i.icon.center { - align-self: center; -} -a i.icon.center { - color: black; -} - -.breadcrumb-container { - margin-bottom: 2rem; -} diff --git a/src/components/layout.js b/src/components/layout.js deleted file mode 100644 index 9794cbd..0000000 --- a/src/components/layout.js +++ /dev/null @@ -1,52 +0,0 @@ -import React from "react" -import PropTypes from "prop-types" -import Helmet from "react-helmet" -import { StaticQuery, graphql } from "gatsby" - -import Header from "./header" -import Footer from "./footer" -import "semantic-ui-css/semantic.min.css" -import "./layout.css" - -const Layout = ({ children }) => ( - ( - <> - - - - -
-
{children}
-