Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Unsets POD_TO_TEXT_ANSI in the p6doc file
Which was set by default. Changes also documentation to reflect this change.
  • Loading branch information
JJ committed Jun 6, 2018
1 parent 3bcc138 commit 8e50aa3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 0 additions & 3 deletions bin/p6doc
Expand Up @@ -5,9 +5,6 @@ use JSON::Fast;
use File::Find;
use MONKEY-SEE-NO-EVAL; # until we have a better serialisation

# use Terminal::ANSIColor if available
%*ENV<POD_TO_TEXT_ANSI>=1;

my $PROGRAM-NAME = "p6doc";

# die with printing a backtrace
Expand Down
12 changes: 10 additions & 2 deletions doc/Programs/02-reading-docs.pod6
Expand Up @@ -15,12 +15,12 @@ Note that C<p6doc> may not be installed automatically depending upon
how you installed Rakudo Perl 6. To install it use C<zef>:
=for code :lang<usage>
zef install p6doc
zef install p6doc
=head1 SYNOPSIS
=for code :lang<usage>
p6doc [switches] [arguments]
p6doc [switches] [arguments]
=head1 DESCRIPTION
Expand Down Expand Up @@ -59,6 +59,14 @@ You can bypass the pager and print straight to stdout:
The text output can be captured and converted to other forms if desired.
If you want to use ANSI escape sequences, which will apply boldface
and other enhancements to the output, you will have to set
POD_TO_TEXT_ANSI, which is unset by default
=for code :lang<shell>
export POD_TO_TEXT_ANSI=1
=head1 LIMITATIONS
Currently C<p6doc> can only extract embedded Perl 6 pod from installed
Expand Down

0 comments on commit 8e50aa3

Please sign in to comment.