Livepeer Whitepaper
- 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
- 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
md rendering info
md rendering info
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):
Step 2: Update Your package.json Scripts
Modify your package.json file to run this script before the standard Mintlify build command:
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.
This method provides automatically rendered markdown that stays updated while respecting Mintlify’s technical limitations during the build process.