Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Skip "hidden" category entries
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrett committed Feb 22, 2019
1 parent d0dc575 commit ae50d32
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script/ddgc_export_help.pl
Expand Up @@ -83,9 +83,8 @@ sub write_markup {
my $content = join " ",
map { $_->content_html }
$help->help_contents->all;
my $category = $help->help_category
? $help->help_category->key
: 'hidden';
my $category = $help->help_category ? $help->help_category->key : undef;
return unless $category;
my $d = $self->dir_for( '_docs', $category );
my $title = $help->help_contents->one_row->title;
my $filename = lc($title) =~ s/\s+/-/gr;
Expand Down

0 comments on commit ae50d32

Please sign in to comment.