Closed AndrejGajdos closed 4 years ago
Hmm, interesting. Your query results include 4 of the 6 "Tutorial" files in that repo… so it must be something about the other 2 files (the "step-by-step" ones). I can't say for sure what the problem is without setting up your site locally, but here's probably what I'd check first:
gatsby-source-filesystem
, to see if that works.Let me know how you get on!
@stevetweeddale I can confirm all files are actually in .cache
folder. I tried to pull files using gatsby-source-filesystem
like this:
{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/.cache/gatsby-source-git/tau-guide-documents/docs`,
name: "docs"
}
}
and this is the result:
{
"data": {
"allMarkdownRemark": {
"edges": [
{
"node": {
"frontmatter": {
"title": "Introduction"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/index.md"
}
},
{
"node": {
"frontmatter": {
"title": "Conceptual Guide"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/tau-conceptual-guide.md"
}
},
{
"node": {
"frontmatter": {
"title": "FAQs"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/tauchain-agoras-faqs.md"
}
},
{
"node": {
"frontmatter": {
"title": "Tau & Agoras Overview"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/what-is-tauchain-tau.md"
}
},
{
"node": {
"frontmatter": {
"title": "Analysis of TauBot.TML"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/Tutorials/analysis-of-taubot-tml.md"
}
},
{
"node": {
"frontmatter": {
"title": "Tutorials"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/Tutorials/index.md"
}
},
{
"node": {
"frontmatter": {
"title": "TML Bot Tutorial"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/Tutorials/tml-Bot-tutorial.md"
}
},
{
"node": {
"frontmatter": {
"title": "Understanding TML"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/Tutorials/understanding-tml-prolog-datalog-tau.md"
}
},
{
"node": {
"frontmatter": {
"title": "Quick Start"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/quick-start.md"
}
},
{
"node": {
"frontmatter": {
"title": "Introduction"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/index.md"
}
},
{
"node": {
"frontmatter": {
"title": "Quick Start"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/quick-start.md"
}
},
{
"node": {
"frontmatter": {
"title": "Conceptual Guide"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/tau-conceptual-guide.md"
}
},
{
"node": {
"frontmatter": {
"title": "FAQs"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/tauchain-agoras-faqs.md"
}
},
{
"node": {
"frontmatter": {
"title": "Tau & Agoras Overview"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/what-is-tauchain-tau.md"
}
},
{
"node": {
"frontmatter": {
"title": "Analysis of TauBot.TML"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/Tutorials/analysis-of-taubot-tml.md"
}
},
{
"node": {
"frontmatter": {
"title": "Tutorials"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/Tutorials/index.md"
}
},
{
"node": {
"frontmatter": {
"title": "TML Bot Tutorial"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/Tutorials/tml-Bot-tutorial.md"
}
},
{
"node": {
"frontmatter": {
"title": "Understanding TML"
},
"fileAbsolutePath": "dev/tauguide/tau-guide-website/.cache/gatsby-source-git/tau-guide-documents/docs/Tutorials/understanding-tml-prolog-datalog-tau.md"
}
}
]
}
}
}
the files are still missing there.
There was an issue with formatting of the frontmatter in 2 files. They both have colon inside a value:
title: Agoras: How to Store
description: Agoras: How to Buy
Adding quotes solved this issue.
title: "Agoras: How to Store"
description: "Agoras: How to Buy"
Yeah, I assumed it must have been something funky with those particular files. Glad you worked it out!
I use gatsby-source-git to pull files from Github repository. It worked well, but I added some files into the repository and I am not able to pull new files into my Gatsby project.
If I run this query in
http://localhost:8000/___graphql
:I get this result:
However, Tutorials folder contains 6 files, which aren't included in query result. I don't know why.
gatsby-config.js
I tried to add local:
"/dev/tauguide/tau-guide-documents"
, asgatsby-source-git
option, but it didn't help.I tried to run
gatsby clean
which removed.cache
folder andgatsby develop
, but I got the same result.I tried to remove the project and pull it from git again, but it didn't help.
package.json
gatsby-node.js