Skip to main content

Livepeer Whitepaper

Read the full Livepeer Whitepaper
Livpeer Whitepaper
Download the Livepeer Whitepaper
Create github download links with cdn.jsdelivr.net
  • Protocol: https:// Service Domain cdn.jsdelivr.net
  • Command (gh = GitHub): /gh/
  • User/Organization and Repo: livepeer/
  • Branch Name: @master
  • File Path and Name: /WHITEPAPER.md
Full path: https://cdn.jsdelivr.net/gh/livepeer/wiki@master/WHITEPAPER.md
GitHub blocks iframe embedding due to X-Frame-Options security headers. This prevents their pages from being embedded in iframes on other sites.Alternative solutions:
  • Link directly to the GitHub file instead of embedding
  • Use GitHub’s raw content and display it in a code block
  • Embed using GitHub Gist if you can convert the content (manual copy to mintlify files first) -> would be beginning of a n8n flow
  • Use GitHub’s API to fetch and display the content

The Most Reliable Approach: Use a Pre-Build Script

The solution involves a script that runs automatically whenever you build or deploy your Mintlify documentation. This script downloads the latest version of the file from GitHub and puts it in your local repository.

Step 1: Add a Fetch Script to Your Project

Create a simple script in your project root (e.g., fetch-whitepaper.sh for Linux/macOS or fetch-whitepaper.js if using Node.js).

Using Node.js (more universal):

// fetch-whitepaper.js
const fs = require('fs');
const fetch = require('node-fetch');
const url = 'https://raw.githubusercontent.com/livepeer/wiki/master/WHITEPAPER.md';
const destination = './docs/files/WHITEPAPER.md';

fetch(url)
  .then(res => res.text())
  .then(body => {
    fs.writeFileSync(destination, body);
    console.log('Whitepaper updated successfully!');
  })
  .catch(err => console.error('Error fetching whitepaper:', err));

Step 2: Update Your package.json Scripts

Modify your package.json file to run this script before the standard Mintlify build command:

{
  "scripts": {
    "prebuild": "node fetch-whitepaper.js",
    "build": "mint build",
    "dev": "mint dev"
  }
}

Step 3: Use the Local Import Method in MDX

Now, use the local import method in your MDX file. The script ensures the local file is always fresh before the build starts.

---
title: My Documentation Page
---
import WhitepaperContent from './files/WHITEPAPER.md'

# Livepeer Whitepaper
<WhitepaperContent />

This method provides automatically rendered markdown that stays updated while respecting Mintlify’s technical limitations during the build process.