I keep forgetting how I can share some code snippet that I uploaded to GitHub when opening issues in a repo, or when I want to quickly show some flutter code to a friend or colleague.
Append its github gist hash to the url:
https://dartpad.dev/a1a1b1b1e3e19248699381cafe (this one is made up)
Related
I'm having some issues with getting the proper page to display. I've looked up different answers and they don't seem to be working for me.
https://github.com/samus94/portfolio2.1
Please let me know what I've done wrong here.
It was displaying the readme before, and I think it still is.
First, You've posted a link to your GitHub repository, not your GitHub Page. The address for GitHub pages always looks like https://<yourname>.github.io/<reponame>.
To get this URL you can go into the settings for your repo and find the GitHub Pages section. Make sure you have GitHub Pages enabled, then look for the URL your site is published at.
Finally, GitHub Pages requires your repository have a very specific structure. It expects there to be an index.html file at the root of the repository. This means you have to either move everything in your /src directory to the root, or move the index.html and update the URLs to your javascript and CSS.
All of these requirements are outlined clearly in the GitHub Pages documentation.
Deploying static HTML + CSS + JS sites (NO jekyll) to Github Pages,
using Github Actions was harder than I though.
Theres is very few quality documentation about this specific topic, except this one:
Steps overview:
Setup a custom action in github
Push changes and the action executes automatically
Your page is deployed to github pages
One important thing: I had no need of changing any property in the yml; don't worry about customizations.
Hi I'm a newbie on jekyll.
I have a problem with building my github blog using jekyll.
I succeeded building jekyll blog on my local like below image.
works in local
And I did some git works to my github repository. https://github.com/ooroogi/ooroogi.github.io
I thought I followed all the steps in the guide maybe.
But All I can see is only blank page.
https://ooroogi.github.io/
So I digged lots of another working sites to solve this problem, but I can't find what makes difference.
I Hope anyone of you can help my issue.
Thanks.
GitHub Pages only supports certain themes out-of-the-box:
https://pages.github.com/versions/
To use custom themes you need to use their remote_theme feature
I am creating a blog using github pages and jekyll. I wonder if there is a way to embed code snippets from a github file (i.e., a file in a repo) in a blog post. I can find a solution on this page about embedding gists: https://gist.github.com/benbalter/5555251.
No direct solution for github files, though.
Jekyll has a pretty nifty syntax-highlighting system (provides _sass/sytax-highlighting.scss is present and correct), so it would be possible to just copy the code over into a blogpost, using `s to wrap the code.
As per actually embedding from a Github repo, there is a pretty nifty project here, if you want to check it out.
I am checking out code using GitHub client for Windows. When I press "clone" button in browser, it looks like I have a local copy. However, there are a few files that GitHub is asking me to commit. Now, I have not even made any changes to anything on my local. So why is it asking me to "commit"?
Can anyone tell me why I am facing this problem. Also, are there any good GitHub tutorials to follow?
Thanks in advance,
There is a great github tutorial here, that should get you started with the basics: http://rogerdudler.github.io/git-guide/.
On GitHub, is there a simple way to reference an issue (eg: #1234) from within a markdown file such that it is displayed as a hyperlink?
I don't want to write out the full form each time, as in:
[#1234](//github.com/user/project/issues/1234)
In commit messages, issue numbers are automatically hyperlinked. Can this happen in wiki documents too?
(This is not a duplicate of this question which is simply asking about markdown hyperlink syntax.)
It doesn't happen in wiki documents.
You can use a relative url but it isn't that much of a shortcut. It also depends on where you are in the project.
For example in the Readme.md in the master branch of the project:
[#1](../../issues/1)
On the github wikis:
[#1](../issues/1)
Anywhere:
[#1](/user/project/issues/1)
(h/t to VertigoRay for suggesting this)