From 72e23d549030b800b48af7df384d3a4b3947b778 Mon Sep 17 00:00:00 2001 From: David Staheli <1767415+davidstaheli@users.noreply.github.com> Date: Sat, 9 Apr 2022 11:01:28 -0400 Subject: [PATCH] Document new Elixir language support --- .../learning-about-github/github-language-support.md | 1 + .../using-files/navigating-code-on-github.md | 9 +++++---- data/reusables/supported-languages/elixir.md | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 data/reusables/supported-languages/elixir.md diff --git a/content/get-started/learning-about-github/github-language-support.md b/content/get-started/learning-about-github/github-language-support.md index 86f01e4b44..880f9525c8 100644 --- a/content/get-started/learning-about-github/github-language-support.md +++ b/content/get-started/learning-about-github/github-language-support.md @@ -30,6 +30,7 @@ Some features are supported for additional languages or package managers. If you {% data reusables.supported-languages.C %} {% data reusables.supported-languages.Cpp %} {% data reusables.supported-languages.Cs %} +{% data reusables.supported-languages.elixir %} {% data reusables.supported-languages.go %} {% data reusables.supported-languages.java %} {% data reusables.supported-languages.javascript %} diff --git a/content/repositories/working-with-files/using-files/navigating-code-on-github.md b/content/repositories/working-with-files/using-files/navigating-code-on-github.md index d0f6114565..c3b45e1068 100644 --- a/content/repositories/working-with-files/using-files/navigating-code-on-github.md +++ b/content/repositories/working-with-files/using-files/navigating-code-on-github.md @@ -11,7 +11,7 @@ versions: topics: - Repositories --- - + ## About navigating code on {% data variables.product.prodname_dotcom %} @@ -21,10 +21,11 @@ Code navigation helps you to read, navigate, and understand code by showing and Code navigation uses the open source [`tree-sitter`](https://github.com/tree-sitter/tree-sitter) library. The following languages and navigation strategies are supported: -| Language | search-based code navigation | precise code navigation | +| Language | Search-based code navigation | Precise code navigation | |:----------:|:----------------------------:|:-----------------------:| | C# | ✅ | | | CodeQL | ✅ | | +| Elixir | ✅ | | | Go | ✅ | | | Java | ✅ | | | JavaScript | ✅ | | @@ -37,8 +38,8 @@ Code navigation uses the open source [`tree-sitter`](https://github.com/tree-sit You do not need to configure anything in your repository to enable code navigation. We will automatically extract search-based and precise code navigation information for these supported languages in all repositories and you can switch between the two supported code navigation approaches if your programming language is supported by both. {% data variables.product.prodname_dotcom %} has developed two code navigation approaches based on the open source [`tree-sitter`](https://github.com/tree-sitter/tree-sitter) and [`stack-graphs`](https://github.com/github/stack-graphs) library: - - search-based - searches all definitions and references across a repository to find entities with a given name - - precise - resolves definitions and references based on the set of classes, functions, and imported definitions at a given point in your code + - Search-based - searches all definitions and references across a repository to find entities with a given name + - Precise - resolves definitions and references based on the set of classes, functions, and imported definitions at a given point in your code To learn more about these approaches, see "[Precise and search-based navigation](#precise-and-search-based-navigation)." diff --git a/data/reusables/supported-languages/elixir.md b/data/reusables/supported-languages/elixir.md new file mode 100644 index 0000000000..8012748171 --- /dev/null +++ b/data/reusables/supported-languages/elixir.md @@ -0,0 +1,2 @@ +| Elixir {% ifversion fpt or ghec %}| {% octicon "check" aria-label="The check icon" %} | {% octicon "x" aria-label="The X icon" %} | {% octicon "x" aria-label="The X icon" %}
Elixir modules | {% octicon "x" aria-label="The X icon" %}
Elixir modules | {% octicon "x" aria-label="The X icon" %} | {% octicon "x" aria-label="The X icon" %} |{% elsif ghes > 3.1 %}| {% octicon "x" aria-label="The X icon" %} | {% octicon "x" aria-label="The X icon" %}
Elixir modules {% ifversion ghes > 3.2 %}| {% octicon "x" aria-label="The X icon" %}
Elixir modules{% endif %} | {% octicon "x" aria-label="The X icon" %} | {% octicon "x" aria-label="The X icon" %} |{% elsif ghes %}| {% octicon "x" aria-label="The X icon" %} | {% octicon "x" aria-label="The X icon" %} | {% octicon "x" aria-label="The X icon" %} | {% octicon "x" aria-label="The X icon" %} |{% elsif ghae %}| {% octicon "x" aria-label="The X icon" %} | {% octicon "x" aria-label="The X icon" %} | {% octicon "x" aria-label="The X icon" %} |{% endif %} +