mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-03-03 12:11:12 +00:00
Initialize shared gh-pages infrastructure
This commit is contained in:
commit
171918e41a
70 changed files with 35217 additions and 0 deletions
132
_includes/widget_templates.html
Normal file
132
_includes/widget_templates.html
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
<script type="text/html" id="project-documentation-widget-template">
|
||||
<div class="right-pane-widget--container no-top-border project-documentation--container">
|
||||
<div class="item-dropdown-widget">
|
||||
<div class="item-dropdown--title">{@= name @}</div>
|
||||
<div class="item--dropdown">
|
||||
<div class="item--body">
|
||||
<div class="item--body-title">
|
||||
<div class="item--left-column">Release</div>
|
||||
<div class="item--right-column">Documentation</div>
|
||||
</div>
|
||||
{@ _.each(releases, function(release) { @}
|
||||
<div class="item--body--version">
|
||||
<div class="item--left-column">
|
||||
<p>{@= release.versionDisplayName @}</p>
|
||||
{@ if(release.current) { @}
|
||||
<div class="spring-icon spring-icon-current-version"></div>
|
||||
{@ } @}
|
||||
<div class="spring-icon {@= release.statusIconClass() @}"></div>
|
||||
</div>
|
||||
<div class="item--right-column">
|
||||
<a href='{@= release.refDocUrl @}' class="docs-link reference-link">Reference</a>
|
||||
<a href='{@= release.apiDocUrl @}' class="docs-link api-link">API</a>
|
||||
</div>
|
||||
</div>
|
||||
{@ }); @}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="project-download-widget-controls-template">
|
||||
<div class="js-download-widget-selector">
|
||||
<select class='selector selectpicker'>
|
||||
{@ _.each(releases, function(release, index) { @}
|
||||
<option value="{@= index @}"
|
||||
data-content="
|
||||
<span>{@= release.versionDisplayName @}</span>
|
||||
{@ if(release.current) { @}
|
||||
<div class='spring-icon spring-icon-current-version'></div>
|
||||
{@ } @}
|
||||
<div class='spring-icon {@= release.statusIconClass() @}'/>"
|
||||
data-current="{@= release.current @}">
|
||||
()
|
||||
</option>
|
||||
{@ }); @}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="item-slider-widget js-item-slider--wrapper">
|
||||
<div class="item-slider--container">
|
||||
<div class="item--slider js-item--slider"></div>
|
||||
<div class="item js-active js-item" data-snippet-type='maven'>
|
||||
Maven
|
||||
</div>
|
||||
<div class="item js-item" data-snippet-type='gradle'>
|
||||
Gradle
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
{% capture maven_pom_template %}
|
||||
{% include pom.xml %}
|
||||
{% endcapture %}
|
||||
|
||||
{%if maven_pom_template contains 'not found in _includes directory' %}
|
||||
{% capture maven_pom_template %}
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{@= groupId @}</groupId>
|
||||
<artifactId>{@= artifactId @}</artifactId>
|
||||
<version>{@= version @}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
{% endcapture %}
|
||||
{% endif %}
|
||||
|
||||
<script type="text/html" id="project-download-maven-widget-template">
|
||||
{% highlight xml %}
|
||||
{{ maven_pom_template }}
|
||||
{% endhighlight %}
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="project-repository-maven-widget-template">
|
||||
{% highlight xml %}
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>{@= repository.id @}</id>
|
||||
<name>{@= repository.name @}</name>
|
||||
<url>{@= repository.url @}</url>
|
||||
<snapshots>
|
||||
<enabled>{@= repository.snapshotsEnabled @}</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
{% endhighlight %}
|
||||
</script>
|
||||
|
||||
{% capture gradle_template %}
|
||||
{% include build.gradle %}
|
||||
{% endcapture %}
|
||||
|
||||
{%if gradle_template contains 'not found in _includes directory' %}
|
||||
{% capture gradle_template %}
|
||||
dependencies {
|
||||
compile '{@= groupId @}:{@= artifactId @}:{@= version @}'
|
||||
}
|
||||
{% endcapture %}
|
||||
{% endif %}
|
||||
|
||||
<script type="text/html" id="project-download-gradle-widget-template">
|
||||
{% highlight groovy %}
|
||||
{{ gradle_template }}
|
||||
{% endhighlight %}
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="project-repository-gradle-widget-template">
|
||||
{% highlight groovy %}
|
||||
repositories {
|
||||
maven {
|
||||
url '{@= repository.url @}'
|
||||
}
|
||||
}
|
||||
{% endhighlight %}
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="project-download-zip-widget-template">
|
||||
This is a zip url
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue