1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Improvement: Point to main read-the-docs branch

This commit is contained in:
Akshay 2021-04-22 11:41:32 +02:00
parent 9069508860
commit aa23244353
3 changed files with 6 additions and 8 deletions

View File

@ -157,7 +157,7 @@ module.exports = {
name: 'repo-read-the-docs',
remote: `https://github.com/oceanprotocol/readthedocs.git`,
local: 'markdowns/',
branch: 'gatsby',
branch: 'main',
patterns: [
'markdowns/ocean-py',
'markdowns/aquarius',

View File

@ -70,9 +70,8 @@ exports.createPages = ({ graphql, actions }) => {
frontmatter {
slug
title
section
app
module
sub_section
}
}
}
@ -312,5 +311,5 @@ const createMarkdownPage = async (createPage, element) => {
}
const filterMarkdownList = (markdownList, string) => {
return markdownList.filter(({ node }) => node.frontmatter.section === string)
return markdownList.filter(({ node }) => node.frontmatter.app === string)
}

View File

@ -11,11 +11,10 @@ export default function MarkdownList({ pageContext }) {
const modules = {}
pageContext.markdownList.map(({ node }) => {
let modules = node.frontmatter.module.split('.')
let module_path = node.frontmatter.module.split('.')
let key =
modules.slice(0, modules.length - 1).join('.') || modules.join('.')
console.log(key)
module_path.slice(0, module_path.length - 1).join('.') ||
module_path.join('.')
if (!modules[key]) {
modules[key] = []