wiki/notebook/web.forges.recognize-plain-text-documents.org
Gabriel Arazas b088086b06 Merge evergreen notes into the notebook
Now, it's all under the notebook umbrella. Seems to be appropriate as it
is just my notes after all.

I also updated some notes from there. I didn't keep track of what it is
this time. Something about more learning notes extracted from my
"Learning how to learn" course notes and then some. Lack of time and
hurriness just makes it difficult to track but it should be under
version control already.
2021-07-21 16:28:07 +08:00

924 B

Make web forges recognize plain-text documents

Some of the web forges such as GitHub and Gitlab uses linguist framework to recognize the language and blob files. By setting Git attributes with .gitattributes file, you can set a certain option to make it recognize the plain-text files. It is what makes the technology list from the repo.

Oftentimes in these web forges, linguist is configured to not detect certain files like plain-text documents (e.g., Markdown, Asciidoctor, Org mode, ReStructuredText).

Here's an example .gitattributes file to make Org mode and Asciidoctor documents be recognized.

*.org linguist-detectable=true
*.adoc linguist-detectable=true