Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update a GitHub project wiki through the GitHub API

Tags:

github-api

Is there a way a developer can automatically upload Doxygen documentation for his project hosted on GitHub through their API?

I didn't find anything on develop.github.com related to this. It would be nice if one could just SCP the files or something.

like image 398
hyperboreean Avatar asked Mar 08 '10 15:03

hyperboreean


People also ask

How do I update my wiki on GitHub?

On GitHub.com, navigate to the main page of the repository. Under your repository name, click Wiki. In the upper-right corner of the page, click New Page. Optionally, to write in a format other than Markdown, use the Edit mode drop-down menu, and click a different format.

Can I use GitHub as a wiki?

For more information, see "GitHub's products." Every repository on GitHub.com comes equipped with a section for hosting documentation, called a wiki. You can use your repository's wiki to share long-form content about your project, such as how to use it, how you designed it, or its core principles.

How do I upload API to GitHub?

For uploading the file into GitHub you can go through basic steps: Get the file content using 'fs' module. Encode the content into base64 format. then use GitHub API “https://api.github.com/repos/{owner}/{repo}/contents/{file name}”.


2 Answers

It's now possible to check out the wiki as a separate Git repository. You could clone the repository, add the pages to it, and push it. You can clone the repository from this URL:

[email protected]:user/project.wiki.git
like image 93
u2622 Avatar answered Sep 18 '22 06:09

u2622


There is no way, at this time, to access the GitHub wiki via the API. However, there is a much better solution already built into GitHub. Since Doxygen outputs static HTML pages, you can push them to the gh-pages branch of your project and access them at username.github.com/projectname

For more information, http://pages.github.com/.

like image 32
Jake Avatar answered Sep 20 '22 06:09

Jake