forked from SignalBiometrics/ox-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support include files in markdown, refs Mermade#20
- Loading branch information
1 parent
699a45a
commit 92ab01b
Showing
8 changed files
with
231 additions
and
2 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 |
---|---|---|
|
@@ -3,6 +3,7 @@ compare.js | |
doit.sh | ||
source/layouts/layout*.erb | ||
spectacle | ||
dev/ | ||
|
||
# Logs | ||
logs | ||
|
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 |
---|---|---|
@@ -0,0 +1,167 @@ | ||
|
||
|
||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
<title>Master/Include Sample v1.0.0</title> | ||
|
||
<style> | ||
</style> | ||
<link rel="stylesheet" media="screen" href="pub/css/screen.css"> | ||
<link rel="stylesheet" media="print" href="pub/css/print.css"> | ||
<link rel="stylesheet" media="screen" href="pub/css/darkula.css"> | ||
|
||
<script src="source/javascripts/lib/_jquery.js"></script> | ||
<script src="source/javascripts/lib/_jquery.highlight.js"></script> | ||
<script src="source/javascripts/lib/_lunr.js"></script> | ||
<script src="source/javascripts/lib/_imagesloaded.min.js"></script> | ||
<script src="source/javascripts/lib/_energize.js"></script> | ||
<script src="source/javascripts/app/_lang.js"></script> | ||
<script src="source/javascripts/app/_search.js"></script> | ||
<script src="source/javascripts/app/_toc.js"></script> | ||
<script type="text/javascript"> | ||
$(function() { | ||
loadToc($('#toc'), '.toc-link', '.toc-list-h2, .toc-list-h3, .toc-list-h4, .toc-list-h5, .toc-list-h6', 10); | ||
setupLanguages($('body').data('languages')); | ||
$('.content').imagesLoaded( function() { | ||
recacheHeights(); | ||
refreshToc(); | ||
}); | ||
}); | ||
|
||
window.onpopstate = function() { | ||
activateLanguage(getLanguageFromQueryString()); | ||
}; | ||
</script> | ||
|
||
|
||
<meta name="theme-color" content="#F3F7F9" /> | ||
|
||
</head> | ||
|
||
<body data-languages="["javascript--nodejs","javascript","python","ruby","java","go"]"> | ||
<a href="#" id="nav-button"> | ||
<span> | ||
NAV | ||
<img src="source/images/navbar.png" class="undefined" alt="Navigation"> | ||
</span> | ||
</a> | ||
<div class="toc-wrapper"> | ||
<img src="source/images/logo.png" class="logo" alt="Logo"> | ||
|
||
<div class="lang-selector"> | ||
|
||
|
||
<a href="#" data-language-name="javascript--nodejs">Node.JS</a> | ||
|
||
|
||
|
||
<a href="#" data-language-name="javascript">JavaScript</a> | ||
|
||
|
||
|
||
<a href="#" data-language-name="python">Python</a> | ||
|
||
|
||
|
||
<a href="#" data-language-name="ruby">Ruby</a> | ||
|
||
|
||
|
||
<a href="#" data-language-name="java">Java</a> | ||
|
||
|
||
|
||
<a href="#" data-language-name="go">Go</a> | ||
|
||
|
||
</div> | ||
|
||
|
||
<div class="search"> | ||
<input type="text" class="search" id="input-search" placeholder="Search"> | ||
</div> | ||
<ul class="search-results"></ul> | ||
|
||
<div id="toc" class="toc-list-h1"> | ||
<ul class="toc-list-h1"> | ||
|
||
<li> | ||
<a href="#master-content" class="toc-h1 toc-link" data-title="Master content">Master content</a> | ||
|
||
<ul class="toc-list-h2"> | ||
|
||
<li> | ||
<a href="#included-content" class="toc-h2 toc-link" data-title="Included content">Included content</a> | ||
|
||
</li> | ||
|
||
<li> | ||
<a href="#included-content-2" class="toc-h2 toc-link" data-title="Included content 2">Included content 2</a> | ||
|
||
</li> | ||
|
||
</ul> | ||
|
||
</li> | ||
|
||
</ul> | ||
</div> | ||
|
||
<ul class="toc-footer"> | ||
|
||
<li><a href="https://mermade.github.io/shins/index.html">See OpenAPI example</a></li> | ||
|
||
</ul> | ||
|
||
</div> | ||
<div class="page-wrapper"> | ||
<div class="dark-box"></div> | ||
<div class="content"> | ||
<h1 id="master-content">Master content</h1> | ||
<h2 id="included-content">Included content</h2> | ||
<h3 id=""></h3> | ||
<p>This content comes from <code>include.md</code></p> | ||
<h2 id="included-content-2">Included content 2</h2> | ||
<h3 id=""></h3> | ||
<p>This content comes from <code>include.md</code></p> | ||
|
||
</div> | ||
<div class="dark-box"> | ||
|
||
<div class="lang-selector"> | ||
|
||
|
||
<a href="#" data-language-name="javascript--nodejs">Node.JS</a> | ||
|
||
|
||
|
||
<a href="#" data-language-name="javascript">JavaScript</a> | ||
|
||
|
||
|
||
<a href="#" data-language-name="python">Python</a> | ||
|
||
|
||
|
||
<a href="#" data-language-name="ruby">Ruby</a> | ||
|
||
|
||
|
||
<a href="#" data-language-name="java">Java</a> | ||
|
||
|
||
|
||
<a href="#" data-language-name="go">Go</a> | ||
|
||
|
||
</div> | ||
|
||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### | ||
|
||
This content comes from `include.md` |
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,26 @@ | ||
--- | ||
title: Master/Include Sample v1.0.0 | ||
language_tabs: | ||
- javascript--nodejs: Node.JS | ||
- javascript: JavaScript | ||
- python: Python | ||
- ruby: Ruby | ||
- java: Java | ||
- go: Go | ||
toc_footers: | ||
- '<a href="https://mermade.github.io/shins/index.html">See OpenAPI example</a>' | ||
includes: [] | ||
search: true | ||
highlight_theme: darkula | ||
--- | ||
|
||
# Master content | ||
|
||
## Included content | ||
|
||
include::include.md[] | ||
|
||
## Included content 2 | ||
|
||
!INCLUDE include.md | ||
|