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:
parent
9069508860
commit
aa23244353
@ -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',
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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] = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user