-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement help preview for local package(s) (#1259)
* Implement help preview for local package * Remove debugging file write * Check if linked files exist * Use custom open file command * Add 00Index preview * Add DESCRIPTION preview * Add warning message for failing links * Refactoring * Hide openExternal command for previews * Allow multiple R-file references * Tweak regex * Handle line breaks in R file list * Tweak Index preview * Optionally exclude preview-aliases from getAllAliases
- Loading branch information
1 parent
b3e107e
commit 73d2fbb
Showing
12 changed files
with
1,003 additions
and
168 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<head> | ||
<title> | ||
<%= packageTitle %> | ||
</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> | ||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<h1> | ||
<%= packageTitle %> | ||
</h1> | ||
<hr /> | ||
<h2>Documentation for package ‘<%= packageName %> ’ version <%= packageVersion %> | ||
</h2> | ||
|
||
<ul> | ||
<li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li> | ||
</ul> | ||
|
||
<h2>Help Pages</h2> | ||
|
||
<table width="100%"> | ||
<% topics.forEach((topic)=> { %> | ||
<tr> | ||
<td style="width: 25%;"><a href="<%= topic.href %>"><%= topic.name %></a></td> | ||
<td><%= topic.title %></td> | ||
</tr> | ||
<% }) %> | ||
</table> | ||
</div> | ||
</body> | ||
|
||
</html> |
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
Oops, something went wrong.