Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

SEO: Run a Stellar Node #657

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion content/docs/run-core-node/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Overview"
order: 10
description: "Run a Core Node"
---

import { Alert } from "components/Alert";
Expand Down Expand Up @@ -83,4 +84,4 @@ An Archiver is a rare bird: like a Full Validator, it publishes the activity of

Archivers help with decentralization a bit by offering redundant accounts of the network’s history, but they don’t vote or sign ledgers, so their usefulness is fairly limited. If you run a Stellar-facing service, like a blockchain explorer, you may want to run one. Otherwise, you’re probably better off choosing one of the other two types.

**Use an archiver if you want to referee the network. Which is unlikely.**
**Use an archiver if you want to referee the network. Which is unlikely.**
18 changes: 14 additions & 4 deletions src/templates/Documentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const PageOutlineItem = ({ id, isActive, title }) => {
};

const Documentation = ({ data, pageContext, location }) => {
const { articleBody, allFile } = data;
const { articleBody, allFile, mdx } = data;
const { relativeDirectory, name, rootDir } = pageContext;

const docsContents =
Expand All @@ -155,9 +155,12 @@ const Documentation = ({ data, pageContext, location }) => {
url,
} = findArticle(pagePath, docsContents)[name];

const description = React.useMemo(() => getDescriptionFromAst(mdxAst), [
mdxAst,
]);
const { frontmatter } = mdx;

const description = React.useMemo(
() => frontmatter.description || getDescriptionFromAst(mdxAst),
[mdxAst, frontmatter.description],
);

const pageOutline = headings.map(({ value }) => ({
href: `#${slugify(value)}`,
Expand Down Expand Up @@ -313,5 +316,12 @@ export const pageQuery = graphql`
}
}
}
mdx: mdx(id: { eq: $mdxId }) {
frontmatter {
description
order
title
}
}
}
`;