-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix view of readme file in the home code page. #30564
Conversation
Maybe we could also make the code more clear and rename |
Can an image png/svg be a README? |
Hi, @lunny! |
It seems GitHub's behaviour is to render the file as long as it's plaintext. https://github.com/CYENS/ReinheritArApp/blob/main/docs/Readme.pdf does appear strange because the displayed size (840kB) does not match the actual file size (131 bytes). |
It's a LFS file. |
Ah, so that's an LFS pointer which is plaintext, but GitHub does not support rendering the actual LFS file. |
* giteaofficial/main: If a repository return no commitstatus, then still cache it but not query it from database (go-gitea#30700) [skip ci] Updated translations via Crowdin Fix view of readme file in the home code page. (go-gitea#30564) Add test for go-gitea#30674 (go-gitea#30679) Fix border-radius of header+segment boxes (go-gitea#30667)
Gitea attempts to display image file, pdf file, etc. named readme in the home code page (but it cannot).
I think only the markdown and plain-text file should be displayed, which is also the behavior of GitHub.