Files
rfc.vac.dev/docusaurus-utils/scrapper/github.mjs
Filip Pajic 32f0947064 chore: Routing Refactor (#3)
* scrape with 1:1 mapping to origin repo

* exclude .md extension from file path in URLs inside MDs

* removed legacy static files

* remove image path manipulation

* move scrapper to new folder

* sidebar custom ordering implemented
2024-04-25 09:29:22 +02:00

13 lines
300 B
JavaScript

import { GITHUB_TOKEN } from './config.mjs'
import axios from "axios";
export async function fetchFromGitHub(url, callback) {
const response = await axios.get(url, {
headers: {
'User-Agent': 'Node.js',
'Authorization': `token ${GITHUB_TOKEN}`
}
});
return response.data;
}