Skip to content

Commit

Permalink
feat: add dynamic modules switching
Browse files Browse the repository at this point in the history
  • Loading branch information
claymcleod committed Dec 28, 2020
1 parent 2958ce2 commit 4bf1e3e
Show file tree
Hide file tree
Showing 10 changed files with 483 additions and 638 deletions.
3 changes: 3 additions & 0 deletions docs/genomics-platform/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Genomics Platform

Hello, world!
3 changes: 3 additions & 0 deletions docs/pecan/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PeCan

Hello, world!
3 changes: 3 additions & 0 deletions docs/visualization-community/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# VisComm

Hello, world!
67 changes: 39 additions & 28 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,18 @@ module.exports = {
siteUrl: `https://university.stjude.cloud`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
resolve: `gatsby-source-filesystem`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
name: `config`,
path: `${__dirname}/src/config`,
},
},
{
Expand All @@ -37,6 +29,30 @@ module.exports = {
path: `${__dirname}/docs`,
},
},

/** Transformers */
`gatsby-transformer-yaml`,
`gatsby-transformer-sharp`,
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /src\/icons/,
},
},
},

/** Other Plugins */
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-algolia`,
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_ADMIN_KEY,
queries: require("./src/utils/algolia-queries"),
},
},
`gatsby-plugin-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
Expand Down Expand Up @@ -126,6 +142,18 @@ module.exports = {
},
`gatsby-plugin-offline`,
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
},
},
{
resolve: "gatsby-plugin-robots-txt",
options: {
Expand All @@ -139,22 +167,5 @@ module.exports = {
},
},
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /src\/icons/,
},
},
},
{
resolve: `gatsby-plugin-algolia`,
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_ADMIN_KEY,
queries: require("./src/utils/algolia-queries"),
},
},
// `gatsby-plugin-purgecss`,
],
}

0 comments on commit 4bf1e3e

Please sign in to comment.