GitHub not showing languages used in repository - github

I uploaded my android studio project in java on GitHub but it is not showing languages section.
How do I add languages section. And why GitHub failed to detect languages used in repository?
Repository link - https://github.com/QAZIMAAZARSHAD/Bank-Android-App
https://i.stack.imgur.com/6C3il.jpg

These files are considered documentation by Linguist because they're in the app/ folder. You can use the following.
make a file name called .gitattributes this file will override that behavior and paste the following in that file.
app/* linguist-documentation=false
app/* linguist-vendored

Related

Pushing Xamarin forms to Github

I'm trying to push my xamarin forms project to github .
I've tried the regular method following the github instruction & using command line but xamarin forms project usually are big in size so that it won't be pushed throw the CMD and it recommends the Git LFS instead.
however, I found that we can push the project to github
https://devlinduldulao.pro/how-to-use-git-and-github-in-xamarin-development/
using the GitHub Extension for Visual Studio and I have installed it but the second step is to add the solution to source control.
but I cannot find the latter option in my menu
so can anyone help me with this problem, all I need to do is to push my project to github if there any other option than the one I have provided in the article above please mention it.
thanks in advance.
If its trying to push a lot, then you are missing a .gitignore file. Put this in the root folder of your solution.
Here is a github list of useful gitignore files.
A good one to use for this purpose is VisualStudio.gitignore.
At minimum, have these lines in your .gitignore file:
[Bb]in/
[Oo]bj/
.vs/
bin and obj are the main folders containing results of building. These are re-creatable from source files, so should not be in repo.
.vs is where visual studio keeps all its user-specific files (such as .suo).
This question seems to be more a git problem than a Xamarin problem. Xamarin.Forms projects aren't bigger than other projects - but you have to ensure you excluded all the build output from the beginning (using a .gitignore-file for .NET projects) - otherwise you commit binaries and your nuget-feed.
Seeing this menu structure, it seems, you already are working with git (at least with a local repo without remote). So you should check your git repo settings and add github as remote: https://learn.microsoft.com/en-us/visualstudio/version-control/git-settings?view=vs-2022

Overriding GitHub linguist for project named demo

The root folder for my project is named demo and I'm trying to override it by adding a .gitattributes at the same level as the directory.
I have tried:
demo/** linguist-documentation
This doesn't seem to work, however.
What should I include instead so that the linguist will scan my project?
You can try .gitattributes directives mentioned in "Using gitattributes for linguist examples"
None of those includes the name of the repository, only folders/files inside the repository. See more at "ithub/linguist/blob Overrides / Using gitattributes"
In your case:
** linguist-documentation=false

Why is languages section not displayed my github repository?

Why is languages section not displayed on my github repository?
My Repository is https://github.com/alumuko/vanilla-datetimerange-picker
I found a question GitHub not showing languages used in repository
So I have added ".gitattributes" in my repository like this.
dist/* linguist-documentation=false
But not displayed yet.
All files under dist/ are considered vendor files by Linguist by default. Vendor files are not counted in language statistics. You can see the list of default vendor files in lib/linguist/vendor.yml.
To consider files under dist/ for language statistics, you can add the following to .gitattributes:
dist/* linguist-vendored=false
linguist-documentation=false shouldn't be needed.
Thanks to pchaigno and Robson.
I added
dist/* linguist-vendored=false
into ".gitattributes",
then the problem has been resolved.
You need this line in the .gitattributes:
dist/* linguist-vendored=false
I've forked it here, made that change and now the language share is displayed:
https://github.com/Robson/vanilla-datetimerange-picker

How can I write documentation on GitLab pages from Visual Studio Code?

I'm new to Visual Studio Code. On my projects, I use GitLab project pages to document project process and code.
What is the best way to publish on GitLab pages from the same workspace?
Since I guess we're talking about the Wiki section in GitLab, each Wiki has its own Git repository and therefore should be treated as an individual project, which is, at least regarding the version control, detached from your main project.
This is actually stated in the documentation:
Wikis are based on Git repositories, so you can clone them locally and
edit them like you would do with every other Git repository. To clone
a wiki repository locally, select Clone repository from the right-hand
sidebar of any wiki page, and follow the on-screen instructions.
Files you add to your wiki locally must use one of the following
supported extensions, depending on the markup language you wish to
use. Files with unsupported extensions don’t display when pushed to
GitLab:
Markdown extensions: .mdown, .mkd, .mkdn, .md, .markdown. AsciiDoc
extensions: .adoc, .ad, .asciidoc. Other markup extensions: .textile,
.rdoc, .org, .creole, .wiki, .mediawiki, .rst.
About editing in Visual Studio Code, take a look at the documentation of the Markdown language.
When you've edited your page, simply commit and push your change.
For documentation within your main project (e.g., the readme.md file) simply modify them and also commit and push them. By the way: explanations of source code usually don't belong in the Wiki, but rather in the source code directly in the language's appropriate form (e.g., Javadoc-style comments in Java).

How can I include a download link to an arbitrary file in a Github Pages page?

It my GitHub Pages page for my project, the only download options are for the .zip and the .tar.gz files (the standard ones including "See this on GitHub"). I want to have a link to download another file (a .exe file) without having to put it in my GitHub repository. How can I do this?
I'm not sure how GitHub Pages relates here (this likely depends on the theme you're using), but one good option for sharing pre-built versions of your software is to create a GitHub Release. This will prompt you to create a tag for the version of your source code you wish to release and let you upload additional files:
Optionally, to include binary files such as compiled programs in your release, drag and drop or select files manually in the binaries box.
This file won't be added to your Git repository. It's attached to the GitHub-specific Release, and it can then be downloaded from your repository's releases tab, just like source archives.