mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-24 13:02:10 +00:00
Remove 'not found in _includes' hacks
Remove the use if "unless contains 'not found in _includes directory'" hacks that were previously used to detect when _includes were missing. This change is required as the hack no longer works with the latest Jekyll release (and therefore also with GitHub). Additional 'custom_pom_template' and 'custom_gradle_template' flags must now be set in _config.yml if you want to include a custom pom.xml or build.gradle file.
This commit is contained in:
parent
171918e41a
commit
85ed196cf4
@ -25,6 +25,10 @@ github_repo_url: http://github.com/spring-projects/spring-framework
|
||||
# Project forum URL
|
||||
forum: http://forum.spring.io/forum/spring-projects/container
|
||||
|
||||
# If you want to include a custom pom.xml or gradle template set these value to true and add _include files
|
||||
custom_pom_template: false
|
||||
custom_gradle_template: false
|
||||
|
||||
|
||||
### The following properties are constant for most projects
|
||||
|
||||
|
@ -1,11 +1,9 @@
|
||||
{% include documentation.html %}
|
||||
{%unless badges contains 'not found in _includes directory' %}
|
||||
<div class="right-pane-widget--container no-top-border">
|
||||
<div class="project-sub-link--wrapper">
|
||||
{% include badges.html %}
|
||||
</div>
|
||||
</div>
|
||||
{%endunless%}
|
||||
<div class="right-pane-widget--container no-top-border project-sidebar-resource--wrapper">
|
||||
{{ related_resources | markdownify }}
|
||||
</div>
|
||||
|
@ -62,11 +62,11 @@
|
||||
</script>
|
||||
|
||||
|
||||
{% if site.custom_pom_template %}
|
||||
{% capture maven_pom_template %}
|
||||
{% include pom.xml %}
|
||||
{% endcapture %}
|
||||
|
||||
{%if maven_pom_template contains 'not found in _includes directory' %}
|
||||
{% else %}
|
||||
{% capture maven_pom_template %}
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@ -99,11 +99,11 @@
|
||||
{% endhighlight %}
|
||||
</script>
|
||||
|
||||
{% if site.custom_gradle_template %}
|
||||
{% capture gradle_template %}
|
||||
{% include build.gradle %}
|
||||
{% endcapture %}
|
||||
|
||||
{%if gradle_template contains 'not found in _includes directory' %}
|
||||
{% else %}
|
||||
{% capture gradle_template %}
|
||||
dependencies {
|
||||
compile '{@= groupId @}:{@= artifactId @}:{@= version @}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user