-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1393 from jediwhale/master
Documentation for publishing HTML #1387
- Loading branch information
Showing
3 changed files
with
76 additions
and
3 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
68 changes: 68 additions & 0 deletions
68
...ot/FitNesse/UserGuide/AdministeringFitNesse/RestfulServices/PublishingHtml.wiki
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,68 @@ | ||
To publish a site, use the URL: ''!-http://MySite:MyPort?publish&destination=my/path-!'' | ||
|
||
The entire site will be written as static HTML files, in a directory structure the same as the page structure. | ||
|
||
Two files must be supplied in the ''!-FitNesseRoot/files/fitnesse-!'' directory: | ||
|
||
''publishResources.txt'' provides a list of resources to be extracted into ''my/path/files/fitnesse''. | ||
|
||
Sample: | ||
{{{css/fitnesse_wiki.css | ||
css/fitnesse_pages.css | ||
bootstrap/css/fitnesse-bootstrap.css | ||
javascript/jquery-3.5.1.min.js | ||
javascript/fitnesse.js | ||
bootstrap/js/bootstrap.js | ||
bootstrap/js/respond.js | ||
images/fitnesse-logo-large.png | ||
images/fitnesse-logo.png | ||
images/fitnesse_architecture.jpg | ||
images/keyboard_shortcuts.png | ||
images/symlinkDiagram.gif | ||
}}} | ||
|
||
''publishTemplate.html'' provides a template for the HTML files. This can contain the following tokens that will be replaced with content from each page: | ||
* $title$ | ||
* $breadcrumbs$ | ||
* $body$ | ||
* $footer$ | ||
Sample: | ||
{{{<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>$title$</title> | ||
<link rel="stylesheet" type="text/css" href="files/fitnesse/css/fitnesse_wiki.css"> | ||
<link rel="stylesheet" type="text/css" href="files/fitnesse/css/fitnesse_pages.css"> | ||
<link rel="stylesheet" type="text/css" href="files/fitnesse/bootstrap/css/fitnesse-bootstrap.css"> | ||
<script src="files/fitnesse/javascript/jquery-3.5.1.min.js" type="text/javascript"></script> | ||
<script src="files/fitnesse/javascript/fitnesse.js" type="text/javascript"></script> | ||
<script src="files/fitnesse/bootstrap/js/bootstrap.js" type="text/javascript"></script> | ||
<script src="files/fitnesse/bootstrap/js/respond.js" type="text/javascript"></script> | ||
</head> | ||
<body class="wikiPage"> | ||
<nav class="navbar-fixed-top " role="navigation"> | ||
<div class="navbar navbar-default"> | ||
<div class="navbar-header"> | ||
<a href="FrontPage" class="navbar-brand" ><span>FitNesse</span></a> | ||
</div> | ||
<ul class="nav navbar-nav"> | ||
<li><a href="FitNesseFeatures">Features</a></li> | ||
<li><a href="FitNesseDownload">Download</a></li> | ||
<li><a href="PlugIns">Plug-ins</a></li> | ||
<li><a href="FitNesse.UserGuide">User Guide</a></li> | ||
</ul> | ||
</div> | ||
<ol class="breadcrumb"> | ||
$breadcrumbs$ | ||
</ol> | ||
</nav> | ||
<article> | ||
$body$ | ||
</article> | ||
<footer> | ||
$footer$ | ||
</footer> | ||
</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