-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add footer flexibility & markdown for custom components (#1502)
- Loading branch information
Showing
14 changed files
with
277 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{{#footer}} | ||
<div class="copyright"> | ||
<p>{{#package}}Developed by {{{authors}}}.{{/package}}</p> | ||
<p>{{#left}}{{{.}}}{{/left}}</p> | ||
</div> | ||
|
||
<div class="pkgdown"> | ||
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> {{#pkgdown}}{{version}}{{/pkgdown}}.</p> | ||
<p>{{#right}}{{{.}}}{{/right}}</p> | ||
</div> | ||
{{/footer}} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# pkgdown_footer() works by default | ||
|
||
Code | ||
pkgdown_footer(data, pkg) | ||
Output | ||
$left | ||
[1] "<p>Developed by bla.</p>" | ||
$right | ||
[1] "<p>Site built with <a href=\"https://pkgdown.r-lib.org/\" class=\"external-link\">pkgdown</a> 42.</p>" | ||
|
||
# pkgdown_footer() can use custom components | ||
|
||
Code | ||
pkgdown_footer(data, pkg) | ||
Output | ||
$left | ||
[1] "<p>Developed by bla. <strong><em>Wow</em></strong></p>" | ||
$right | ||
[1] "<p>Site built with <a href=\"https://pkgdown.r-lib.org/\" class=\"external-link\">pkgdown</a> 42.</p>" | ||
|
||
--- | ||
|
||
Code | ||
pkgdown_footer(data, pkg) | ||
Output | ||
$left | ||
[1] "<p><strong><em>Wow</em></strong></p>" | ||
$right | ||
[1] "<p>Site built with <a href=\"https://pkgdown.r-lib.org/\" class=\"external-link\">pkgdown</a> 42.</p>" | ||
|
||
# pkgdown_footer() throws informative error messages | ||
|
||
Can't find component footer.left.components.pof in '_pkgdown.yml'. | ||
|
||
--- | ||
|
||
Can't find component footer.right.components.bof in '_pkgdown.yml'. | ||
|
Oops, something went wrong.