I uploaded a .epub file to the GitHub repository. I want to create a download link to this file inside the README.md file.
By clicking this link user will be able to download the file directly, without going to another page and clicking the download button on that page.
Is it possible to achieve this with the default README.md (markdown) file?
In text comes e.g. "click me" and at link just your downloadlink
You can do it with this:
[text](link)
as an example:
[click me to download](https://github.com/Schecher1/Minecraft-Server-Creator/blob/master/README.md)
I was able to achieve the download link by putting my .epub file inside a release assets.
After creating a release I right-clicked on the artifact and copied the link address.
The markdown snippet looks like this
[epub](https://github.com/name/project/releases/download/v1.0.0/book.epub)
It immediately starts loading the file upon clicking the epub word.
I have a Google Form that uploads some pictures that I want to be visible to anyone with a web browser. Unfortunately they all arrive as private. Is there any way to have them default to public instead of having to go through and mark them individually?
You simply need to share the folder.
Click View Folder on the bottom-right corner of the file upload question
Change the permission of the folder to Anyone with the link *
*The folder in 1. is the subfolder of the question you selected.
In case there are multiple file upload questions and you want to share all of them, change the permission of the parent folder instead.
I need to show a traffic light image in a dashboard in devops. I have the .png file in my hard drive.
What is the best way to upload this kind of file to devops?
Is there a folder where I can upload files?
I'm just using "boards" (e.g. not using "repos" feature)
If you could access wiki, you can click 'Insert a file' icon in the wiki page editor to select image from your hard drive. Then you'll see the image there.
https://learn.microsoft.com/en-us/azure/devops/project/wiki/markdown-guidance?view=azure-devops#images
I'm a developer, I need many screenshots to put in readme.md file where to store or host it? I found out that some people use https://user-images.githubusercontent.com/{path}/{filename} to host their image and link them with readme.md file. How to put images there??
You can create a .github/images directory in your repo and add all your assets there.
Assets added here will be available on
https://raw.githubusercontent.com/{github_user_name}/{repo_name}/{branch}/.github/images/{asset_name}.{asset_extension}
Once you push .github/images directory to remote your assets should be available through the mentioned link.
And https://user-images.githubusercontent.com/ is used by GitHub to store images added in issues, PR's, etc.,
Hope it helps!
UPDATE:
You can also create an assets directory in the root of your repo and use a relative path to the image.
/assets/{asset_name}.{asset_extension}
![Alt Text](/assets/{asset_name}.{asset_extension})
With this, images can be previewed without actually pushing to remote.
Hosting on user-images.githubusercontent.com subdomain
If you do not intend to store any images in your repository, you can always use this https://user-images.githubusercontent.com/
To host your images in user-images subdomain you can do the following
Click New Issue this will open up the issue creator.
Drag and Drop or Upload your image in the body content
Wait for upload completion and copy the URL for the image.
Cancel the issue creation and continue.
But you will not have access to these images once uploaded, you cannot delete them. You can always contact GitHub Support if required to delete.
Just drag and drop your image from your local pc to github readme in editable mode.
I took a screenshot of a diagram and tried to paste it directly into a comment in GitHub and it was automatically uploaded to "https://user-images.githubusercontent.com/" and embedded as a markdown tag. Then I tried to paste the same tag into a readme.MD with the same link and worked for me.
When you are editing the readme file on github, you have to drag the file you want to add in this specific box. That worked for me. If I dropped it anywhere else, it wouldn't load.
While editing readme.md in GitHub UI, paste the image from the clipboard directly in the readme, and the image is automatically uploaded into user-images.gitHubusercontent, and the link is updated in the readme to show the image.
To add or store them just open the issues click on new issue and drag and drop your desired image in comment section and wait for it to upload in user-images.gitHubusercontent. when its done just copy that and paste it to your README.md file
You can simply put the file where you want it in yours repository, click on the file from the github.com page and left click the Raw button or right click Download button and select Copy link address. It will show the full path url, then you can just put it into any Markdown text.
I'm trying to use GitHub to host my website. First I create an repository online, next I downloaded the GitHub (desktop version), I cloned the existent repository and move my web page to the folder that I want. Next I just commit, uploaded the files and open the link https://joaocadavez.github.io/ (If you want to see what's going on). Some photos aren't loading on the web, and that same photos are getting this code on the GitHub "This binary file is changed." enter image description here. There is any thing that I can make about that??
PS: I already turn the size of the photos smaller.