From 7df4bad1748c14dba9cb66e2534c1d188838f667 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 24 Feb 2022 20:04:19 +0100 Subject: [PATCH] Issue-#850: Aquarius rest api --- .gitignore | 3 ++- gatsby-config.js | 4 ++-- gatsby-node.js | 6 +++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 9e696fd5..47066e69 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ yarn-error.log .env.* markdowns/ .vscode/ -size-plugin.json \ No newline at end of file +size-plugin.json +read-the-docs/ \ No newline at end of file diff --git a/gatsby-config.js b/gatsby-config.js index 11a75ea3..25983575 100755 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -155,7 +155,7 @@ module.exports = { options: { name: 'repo-read-the-docs', remote: `https://github.com/oceanprotocol/readthedocs.git`, - local: 'markdowns/', + local: 'read-the-docs', branch: 'v4', patterns: [ 'markdowns/ocean-py', @@ -167,7 +167,7 @@ module.exports = { { resolve: 'gatsby-source-filesystem', options: { - path: `${__dirname}/markdowns/markdowns`, + path: `${__dirname}/read-the-docs/markdowns`, name: 'markdowns' } }, diff --git a/gatsby-node.js b/gatsby-node.js index 55de9ed1..953eeafa 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -59,7 +59,11 @@ exports.createPages = ({ graphql, actions }) => { } allRepoMarkdown: allMarkdownRemark( - filter: { fileAbsolutePath: { regex: "/markdowns/markdowns/" } } + filter: { + fileAbsolutePath: { + regex: ".cache/gatsby-source-git/read-the-docs/markdowns/" + } + } ) { edges { node {