Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions gradle/docs-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,14 @@ tasks.register('guideDocs', Copy) {

tasks.register('copyGhPages', Copy) {
group = 'documentation'
description = 'Copy the ghpages.html file to the root docs directory'
from(findProject(':core-docs').layout.projectDirectory.file('src/docs/index.tmpl'))
description = 'Copy the ghpages.html file to the plugin docs directory'

from(findProject(':core-docs').layout.projectDirectory.dir('src/docs')) {
include 'index.tmpl'
rename('index.tmpl', 'ghpages.html')
}

into(rootProject.layout.buildDirectory.dir('docs'))
rename('index.tmpl', 'ghpages.html')
}

tasks.register('copyGuide', Copy) {
Expand Down
31 changes: 8 additions & 23 deletions plugin-core/docs/src/docs/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,24 +85,21 @@ img {

<div id="container">
<h1>Grails Spring Security Core Plugin</h1>
<table id="properties">
<tbody>
<tr>
<td class="propName">Author</td>
<td>Puneet Behl</td>
</tr>
</tbody>
</table>

<hr />

<h2>Spring Security Core Plugin - Documentation</h2>
<ul>
<li><a href="/grails-spring-security/snapshot/index.html">Documentation Snapshot</a></li>
<!-- <li><a href="/grails-spring-security/latest/index.html">Latest Documentation</a></li> -->
<li><a href="/grails-spring-security/snapshot/core-plugin/guide/index.html">Documentation Snapshot</a></li>
<!-- <li><a href="/grails-spring-security/latest/core-plugin/guide/index.html">Latest Documentation</a></li> -->
</ul>

<h2>Grails 6.x.x and beyond</h2>
<h2>Grails 7.x.x and beyond</h2>
<ul>
<li><a href="/grails-spring-security/7.0.x/core-plugin/guide/index.html">User guide</a></li>
</ul>

<h2>Grails 6.x.x</h2>
<ul>
<li><a href="/grails-spring-security/6.0.x/index.html">User guide</a></li>
</ul>
Expand Down Expand Up @@ -156,17 +153,5 @@ img {
</p>

</div>

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-16219500-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
Loading