EEVblog Electronics Community Forum
Products => Computers => Programming => Topic started by: RoGeorge on April 03, 2023, 09:32:23 am
-
For this webpage https://github.com/esp8266/esp8266-wiki/wiki
If i download the zip file from Code -> Download ZIP button in https://github.com/esp8266/esp8266-wiki, I don't get the docs seen in the webpage https://github.com/esp8266/esp8266-wiki/wiki, but if I get the wiki by git clone https://github.com/esp8266/esp8266-wiki.wiki.git then I get the docs.
I was expecting for the zip download to pack the same files as a git clone would retrieve, but in this case each method retrieves a totally different content. Both downloads are from the same github repository: https://github.com/esp8266/
Why so? I thought zip download is for those who don't have git, same files in different format.
-
You are retrieving different branches, perhaps?
-
Wiki is not part of the code, you can see it from the tabs on GitHub's repository page.
-
Doh, I was not aware about the separation, thanks! :)
-
There are two git repos:
Under the code tab: https://github.com/esp8266/esp8266-wiki.git
Under the wiki tab:
https://github.com/esp8266/esp8266-wiki.wiki.git (note the extra .wiki)
The former contains what's under the code tab, and the second what's under the wiki tab. The option to download a zip file is only available under the code tab. I figured non-developers, who can't use git, or build scripts / package managers, are more likely to download the code rather than the wiki.
In this case it's confusing because both repos contain documentation, but probably in a different format or different contents.