Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix definition list dd parsing * Handle callout lists * Clean up parsing/rendering/templates, doc is now handled as a top-level section with subsections.
- Loading branch information
Showing
5 changed files
with
116 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
<div class='man-page'> | ||
<%= header %> | ||
<%= sections %> | ||
<div id="header"> | ||
<h1><%= name %> Manual Page</h1> | ||
<% if !header.nil? %> | ||
<h2><%= header.name %></h2> | ||
<div class="sectionbody"><%= header.content %></div> | ||
<% elsif !preamble.nil? %> | ||
<div class="preamble"> | ||
<div class="sectionbody"> | ||
<%= preamble.content %> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<%= content %> | ||
</div> |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
<% if !anchor.nil? %> | ||
<a name="#<%= anchor %>"> | ||
<a name="<%= anchor %>"> | ||
<% end %> | ||
<h<%= level %> id="<%= section_id %>"><%= name %></h<%= level%>> | ||
<% if !anchor.nil? %> | ||
</a> | ||
<% end %> | ||
<div class="sectionbody"><%= content %></div> | ||
<div class="sect<%= level %>"> | ||
<h<%= level + 1 %> id="<%= section_id %>"><%= name %></h<%= level + 1 %>> | ||
<% if !anchor.nil? %> | ||
</a> | ||
<% end %> | ||
<% if level == 1 %> | ||
<div class="sectionbody"><%= content %></div> | ||
<% else %> | ||
<%= content %> | ||
<% end %> | ||
</div> |
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,7 @@ | ||
<div class="colist arabic"> | ||
<ol> | ||
<% content.each do |li| %> | ||
<li><p><%= li %></p></li> | ||
<% end %> | ||
</ol> | ||
</div> |