From 54b79100c0fe940ef9d5267b8057924a60e371ff Mon Sep 17 00:00:00 2001 From: Mike Allanson Date: Tue, 24 Apr 2018 17:44:34 +0100 Subject: [PATCH] Delete data-notes.md Ref comments on https://github.com/gatsbyjs/gatsby/pull/5105 --- data-notes.md | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 data-notes.md diff --git a/data-notes.md b/data-notes.md deleted file mode 100644 index a8b7a156635b7..0000000000000 --- a/data-notes.md +++ /dev/null @@ -1,37 +0,0 @@ -``` -new SourceDirectory({ - parsers: [ - { - typeName: 'blogPosts', - plugin: 'gatsby-source-markdown', - selector: '(*.md|*.markdown}', - }, - { - typeName: '', - plugin: 'gatsby-source-markdown', - selector: '(*.md|*.markdown}', - }, - ] -}) -``` - -Just copy Jekyll? - -/content -> markdown -/data -> yaml, csv, toml, json - -With each parsers already setup. For data, the default is that each data -file is it's own type derived from the name of the file. - -So file sources that have many things in one file — type === fileName -For file sources where each thing is a file — type is directory based. - -Look by default for pages in /pages -but this is again just a plugin so you can add other directory sources -if desired. - -composable themes? So have a base gatsby theme that has this minimal -jekyll-esque setup? - -Other themes can build on top of it or of course there could be other -base themes.