diff --git a/assets/sass/style.scss b/assets/sass/style.scss index 3662b0f0b..2db067812 100644 --- a/assets/sass/style.scss +++ b/assets/sass/style.scss @@ -71,7 +71,7 @@ img, svg { } table.pod-table tr:nth-child(odd) { - background-color: #f8f8f8; + background-color: rgba(0, 0, 0, 0.031373); } table.pod-table tr:nth-child(even) { background-color: none; @@ -320,11 +320,9 @@ td, th { margin: 2em auto; overflow: hidden; max-width: 800px; + min-height: 220px; background: #FFF; - background-repeat: no-repeat; - background-position: right 2em top 2em; - background-image: url(/images/Camelia-faded.svg); - + dt { font-weight: bold; margin-bottom: 0.2em; @@ -361,6 +359,12 @@ td, th { padding-top: 0.25em; } } +#content:not(.content_HomePage) { + background-repeat: no-repeat; + background-position: right 2rem top 2rem; + background-size: 243px; + background-image: url(/images/Camelia-faded.svg); +} @media (min-width: 110em) { #content { diff --git a/doc/HomePage.pod6 b/doc/HomePage.pod6 index ed56dbfc1..2323abdfd 100755 --- a/doc/HomePage.pod6 +++ b/doc/HomePage.pod6 @@ -1,5 +1,6 @@ =begin Html - + Welcome to the official documentation of the Perl 6 programming language! Besides online browsing and searching, you can also diff --git a/doc/Language/faq.pod6 b/doc/Language/faq.pod6 index 5e3e1e60d..f31281ae0 100644 --- a/doc/Language/faq.pod6 +++ b/doc/Language/faq.pod6 @@ -67,18 +67,23 @@ X<|rakudobrew (FAQ)> =head2 As an advanced user I want to track Rakudo development. An option is to clone L and -L. +build it. This will install work in progress which is minimally-tested and +may contain severe bugs. If you're interested in contributing to Rakudo +Perl 6 compiler, you may find +L useful. -This will install work in progress which isn't necessarily fully functional. To install the last official monthly release check out the tag visible at L +or set up L. Some users choose to use L, which allows installation of multiple versions of rakudo. Be sure to L +documentation|https://github.com/tadzik/rakudobrew#making-new-scripts-available>. -In either case you will probably need to also install zef and p6doc from -the ecosystem. +In either case you will probably need to also install +L«C|https://modules.perl6.org/dist/zef:github» and +L«C|https://modules.perl6.org/dist/p6doc:github» from the +L. =head2 Where can I find good documentation on Perl 6? @@ -143,11 +148,6 @@ L«C module installer|https://github.com/ugexe/zef» automatically check for latest versions of a module on CPAN as well as our L. -Viewing of modules available CPAN will be implemented soon on -L (temporarily, it's -available as a -L - X<|p6doc (FAQ)> X<|perldoc (FAQ)> =head2 Is there a perldoc (command line documentation viewer) for Perl 6? diff --git a/doc/Language/module-packages.pod6 b/doc/Language/module-packages.pod6 index fd47de761..1992e07a9 100644 --- a/doc/Language/module-packages.pod6 +++ b/doc/Language/module-packages.pod6 @@ -14,7 +14,7 @@ focuses on use of the C declarator. Modules, like classes and grammars, are a kind of L. Module objects are instances of the C metaclass; this provides certain capabilities useful -for namespacing, versioning, delegation and data encapsulation (see +for creating namespaces, versioning, delegation and data encapsulation (see also L and L). To create a module, use the C declarator: diff --git a/doc/Type/Signature.pod6 b/doc/Type/Signature.pod6 index 32245297d..9d644539a 100644 --- a/doc/Type/Signature.pod6 +++ b/doc/Type/Signature.pod6 @@ -452,6 +452,11 @@ be omitted. foo "2016-12-01"; # OUTPUT: «Date␤2016-12-01␤» +The coercion is performed by calling the method with the name of the type +to coerce to, if it exists (e.g. C coercer, would call method C). +The method is assumed to return the correct type—no additional checks on +the result are currently performed. + =head2 X A function is X if it can take a varying number of arguments; that is, diff --git a/html/images/Camelia-faded.svg b/html/images/Camelia-faded.svg index b945d54cc..c3f772960 100644 --- a/html/images/Camelia-faded.svg +++ b/html/images/Camelia-faded.svg @@ -1,457 +1,168 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TM - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + M + + + + + + diff --git a/html/images/Camelia.svg b/html/images/Camelia.svg index d19d62c1e..41e4bc17a 100644 --- a/html/images/Camelia.svg +++ b/html/images/Camelia.svg @@ -1,456 +1,168 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TM - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + M + + + + + + diff --git a/html/images/camelia-faded.png b/html/images/camelia-faded.png deleted file mode 100644 index c3abc9504..000000000 Binary files a/html/images/camelia-faded.png and /dev/null differ diff --git a/html/images/camelia.png b/html/images/camelia.png deleted file mode 100644 index a239a7470..000000000 Binary files a/html/images/camelia.png and /dev/null differ diff --git a/htmlify.p6 b/htmlify.p6 index 9c4e73363..a2ea9b527 100755 --- a/htmlify.p6 +++ b/htmlify.p6 @@ -124,7 +124,11 @@ sub header-html($current-selection, $pod-path) is cached { } $header.subst('MENU', $menu-items ~ $sub-menu-items) - .subst('EDITURL', $edit-url); + .subst('EDITURL', $edit-url) + .subst: 'CONTENT_CLASS', + 'content_' ~ ($pod-path + ?? $pod-path.subst(/\.pod6$/, '').subst(/\W/, '_', :g) + !! 'fragment'); } sub p2h($pod, $selection = 'nothing selected', :$pod-path = Nil) { diff --git a/t/tabs.t b/t/tabs.t index de250daf8..309f2fe1f 100755 --- a/t/tabs.t +++ b/t/tabs.t @@ -10,6 +10,7 @@ my @files = Test-Files.files\ .grep({! $_.contains('custom-theme')})\ .grep({! $_.contains('jquery')})\ .grep({! $_.ends-with('.png')})\ + .grep({! $_.ends-with('.svg')})\ .grep({! $_.ends-with('.ico')}); plan +@files; diff --git a/template/head.html b/template/head.html index 1b3cfb64c..b31d13789 100644 --- a/template/head.html +++ b/template/head.html @@ -1,4 +1,4 @@ - + diff --git a/template/header.html b/template/header.html index 9d5f11906..dc3bb85c9 100644 --- a/template/header.html +++ b/template/header.html @@ -16,5 +16,5 @@ MENU -
+
EDITURL diff --git a/xt/perl-nbsp.t b/xt/perl-nbsp.t index a3f65e24a..a9c3bbcd6 100755 --- a/xt/perl-nbsp.t +++ b/xt/perl-nbsp.t @@ -12,6 +12,7 @@ plan +@files; for @files.sort -> $file { my $ok = True; my $row = 0; + my @bad; for $file.IO.slurp.lines -> $line { $row++; if $line ~~ / ^ \s+ / { @@ -20,13 +21,14 @@ for @files.sort -> $file { for $line ~~ m:g/ 'Perl' $=(\s+) \d / -> $match { my $spaces = ~$match; if $spaces.chars != 1 || $spaces.uniname ne "NO-BREAK SPACE" { - $ok = False; last; + $ok = False; + @bad.push: $row; } } } my $error = $file; if !$ok { - $error ~= " (line $row)"; + $error ~= " (line{@bad>1 ?? "s" !! ""} {@bad.join: ', '})"; } ok $ok, "$error: Perl followed by a version should have a single non-breaking space." ; } diff --git a/xt/trailing-whitespace.t b/xt/trailing-whitespace.t index 94c963aac..ea16cd0bf 100755 --- a/xt/trailing-whitespace.t +++ b/xt/trailing-whitespace.t @@ -11,6 +11,7 @@ my @files = Test-Files.files\ .grep({! $_.contains: 'util/trigger-rebuild.txt'})\ .grep({! $_.contains: 'jquery'})\ .grep({! $_.ends-with: '.png'})\ + .grep({! $_.ends-with: '.svg'})\ .grep({! $_.ends-with: '.ico'}); plan +@files; diff --git a/xt/words.pws b/xt/words.pws index 249b6863b..197d202a9 100644 --- a/xt/words.pws +++ b/xt/words.pws @@ -415,6 +415,7 @@ getsockname getsockopt getuid gid +gists github github's gitlab @@ -1132,6 +1133,7 @@ superclass superclasses superglobals superset +svg sym symlink symlinked