Commit 593a3970 authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

move docs to /docs. create voyant doc files.

related to #18 and #19
parent 31ff63e5
Pipeline #128992 passed with stages
in 7 minutes and 25 seconds
...@@ -49,6 +49,12 @@ node { ...@@ -49,6 +49,12 @@ node {
download = true download = true
} }
processResources {
from ('docs/') {
into 'docs'
}
}
// execute task: gradle -q copyJS // execute task: gradle -q copyJS
task copyJS(type: Copy, dependsOn: npmInstall) { task copyJS(type: Copy, dependsOn: npmInstall) {
from 'node_modules/jquery/dist/jquery.min.js', from 'node_modules/jquery/dist/jquery.min.js',
......
...@@ -28,7 +28,7 @@ public class DocController { ...@@ -28,7 +28,7 @@ public class DocController {
return renderMarkdown(model, "index", locale); return renderMarkdown(model, "index", locale);
} }
@GetMapping("/doc/{doc}") @GetMapping("/docs/{doc}")
public String renderMarkdown( public String renderMarkdown(
Model model, Model model,
@PathVariable("doc") String doc, @PathVariable("doc") String doc,
......
...@@ -57,7 +57,10 @@ ...@@ -57,7 +57,10 @@
</a> </a>
<ul class="tg dropdown_menu -nav" role="menu"> <ul class="tg dropdown_menu -nav" role="menu">
<li class="" id="layout_18" role="presentation"> <li class="" id="layout_18" role="presentation">
<a aria-labelledby="layout_18" href="/doc/syntax" role="menuitem" tabindex="">${i18n['search']}</a> <a aria-labelledby="layout_18" href="/docs/syntax" role="menuitem" tabindex="">${i18n['search']}</a>
</li>
<li class="" id="layout_18" role="presentation">
<a aria-labelledby="layout_18" href="/docs/voyant" role="menuitem" tabindex="">Voyant</a>
</li> </li>
</ul> </ul>
</li> </li>
...@@ -107,4 +110,4 @@ ...@@ -107,4 +110,4 @@
#end #end
--> -->
</ul> </ul>
</nav> </nav>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment