Skip to content

Commit

Permalink
always publish rendered Markdown as static content
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcphers committed Apr 22, 2015
1 parent fd5995e commit ef82d0e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ public RSConnectPublishWizard(RSConnectPublishInput input,
input.getContentType() == RSConnect.CONTENT_TYPE_HTML ||
input.getContentType() == RSConnect.CONTENT_TYPE_PRES)
{
// self-contained static content
return new PublishStaticDestPage("Publish", "Publish", null, input,
false);
}
else if (input.getContentType() == RSConnect.CONTENT_TYPE_DOCUMENT &&
input.getSourceRmd().getExtension().toLowerCase().equals(".md"))
{
// pure Markdown -- always publish as static
return new PublishStaticDestPage("Publish", "Publish", null, input,
false);
}
Expand Down

0 comments on commit ef82d0e

Please sign in to comment.