How do you get access to the wiki files? #68564
-
Select Topic AreaQuestion BodyI would like to display my GitHub repository's wiki on a webpage, but I can't embed/iframe or get the data directly and just display the html via JS. Anyway I could do this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
What I want to do is access the raw wiki files |
Beta Was this translation helpful? Give feedback.
-
Hi @An-Unnamed-Developer,Since the wiki is it's own git repository, there's currently no way to programmatically access its contents via the API. What you can do though, since the wiki is a separate repo and is in markdown, is host the wiki on Github Pages or any static website hosting platform (eg. Cloudfare, Vercel, etc). If you chose Github Pages, the github wiki uses a different markup than what Jekyll supports, so you also need to convert it to github flavored markdown. I haven't tested these tools personally, but you're free to try them out yourself: Or use hugo and a perl script to convert github wiki markup to be compliant with hugo syntax. You can read more on: |
Beta Was this translation helpful? Give feedback.
Hi @An-Unnamed-Developer,
Since the wiki is it's own git repository, there's currently no way to programmatically access its contents via the API.
What you can do though, since the wiki is a separate repo and is in markdown, is host the wiki on Github Pages or any static website hosting platform (eg. Cloudfare, Vercel, etc).
If you chose Github Pages, the github wiki uses a different markup than what Jekyll supports, so you also need to convert it to github flavored markdown. I haven't tested these tools personally, but you're free to try them out yourself:
Or use hugo and a perl script to convert github wiki markup to be compliant with hu…