[devdocsgjs/main: 869/1867] elixir: fix NoMethodError and properly categorize Mix tasks
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 869/1867] elixir: fix NoMethodError and properly categorize Mix tasks
- Date: Fri, 19 Nov 2021 23:47:33 +0000 (UTC)
commit f9437b2fcc7b158acadc506aec0065e0fd48ff42
Author: Jasper van Merle <jaspervmerle gmail com>
Date: Thu Aug 22 15:20:26 2019 +0200
elixir: fix NoMethodError and properly categorize Mix tasks
lib/docs/filters/elixir/entries.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/elixir/entries.rb b/lib/docs/filters/elixir/entries.rb
index 4b518de2..72794f87 100644
--- a/lib/docs/filters/elixir/entries.rb
+++ b/lib/docs/filters/elixir/entries.rb
@@ -2,7 +2,8 @@ module Docs
class Elixir
class EntriesFilter < Docs::EntriesFilter
def get_name
- at_css('h1 .app-vsn').remove
+ css('h1 .app-vsn').remove
+
if current_url.path.start_with?('/getting-started')
at_css('h1').content.strip.remove(/\.\z/)
else
@@ -30,6 +31,8 @@ module Docs
else
if name.start_with?('Phoenix')
name.split('.')[0..2].join('.')
+ elsif name.start_with?('mix ')
+ 'Mix Tasks'
else
name.split('.').first
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]