Skip to content

Commit 78097fc

Browse files
committed
resolved links issue
1 parent 6bff7a9 commit 78097fc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ highlights/package-lock.json
2929
.pod-cache
3030
retest
3131
build/
32-
notesOnInstalling.md

htmlify.p6

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ sub process-pod-source(:$kind, :$pod, :$filename, :$pod-is-complete) {
315315
my $summary = '';
316316
my $name = $filename;
317317
my Bool $section = ($pod.config<class>:exists and $pod.config<class> eq 'section-start');
318+
my Str $link = $pod.config<link> // $filename;
318319
my $first = $pod.contents[0];
319320
if $first ~~ Pod::Block::Named && $first.name eq "TITLE" {
320321
$name = $pod.contents[0].contents[0].contents[0];
@@ -355,7 +356,7 @@ sub process-pod-source(:$kind, :$pod, :$filename, :$pod-is-complete) {
355356
:$kind,
356357
:$name,
357358
:$pod,
358-
:url("/$kind/$filename"),
359+
:url("/$kind/$link"),
359360
:$summary,
360361
:$pod-is-complete,
361362
:subkinds($kind),
@@ -900,7 +901,7 @@ sub write-index-files($manage) {
900901

901902
# sort language index by file name to allow author control of order
902903
say 'Writing html/language.html ...';
903-
if $manage {
904+
if $manage {
904905
my @p-chunks;
905906
my @end;
906907
for $*DR.lookup('language', :by<kind>).list {

util/manage-page-order.p6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ sub write-Language-files() {
188188
else {
189189
#$fh.say: "$line :page-order<{$page-order}>";
190190
$fh.say: "# THIS FILE IS AUTO-GENERATED--ALL EDITS WILL BE LOST";
191-
$fh.say: $line;
191+
$fh.say: $line ~ " :link<$key-fname>";
192192
#$fh.say: "=comment THIS FILE IS AUTO-GENERATED--ALL EDITS WILL BE LOST";
193193
}
194194
next;
@@ -450,6 +450,7 @@ sub help {
450450
-n - create (for mode 'control')
451451
-h - extended help
452452
-d - debug
453+
-m - manage (include the categories)
453454
454455
Note: The modes are selected by entering either the first letter
455456
of the mode name or its complete name.

0 commit comments

Comments
 (0)