Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with links and images in substreams docs #382

Merged
merged 2 commits into from
May 14, 2023

Conversation

benface
Copy link
Contributor

@benface benface commented May 11, 2023

This PR fixes the following issues reported by @Web3Slimchance, as well as a broken image on /en/substreams/concepts-and-fundamentals/fundamentals/:

  • On /en/substreams/reference-and-specs/command-line-interface/, "defined in the Substreams manifest" linked to /en/substreams/manifests/#modules-.name which is a 404. Now correctly links to /en/substreams/reference-and-specs/manifests/#modules-.name.
  • On /en/substreams/developers-guide/overview/, "Read through the fundamentals" and "modules overview" were both 404s because they were missing the "substreams" URL segment.

@benface benface requested a review from a team as a code owner May 11, 2023 21:44
@github-actions
Copy link

github-actions bot commented May 11, 2023

📦 Next.js Bundle Analysis for @graphprotocol/docs

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 596.71 KB (🟡 +25 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

// close img tags only if he doesn't point to .gitbook
.replaceAll(/<img(.*?)>/g, (...m) => (m[1].includes('src=".gitbook') ? '' : `<img${m[1]}/>`))
// close unclosed img tags
.replaceAll(/<img((?:(?!\/>)[^>])*?)>/g, (...m) => `<img${m[1]}/>`)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally didn't use AI for this. 😄

# Conflicts:
#	website/pages/en/substreams/[[...slug]].mdx
@benface benface merged commit 4f598e6 into main May 14, 2023
@benface benface deleted the benface/fix-substreams-issues branch May 14, 2023 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants