Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions/bindings/persistence docs track feature naming convention #297

Merged
merged 2 commits into from Feb 6, 2017
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/actions.md
Expand Up @@ -65,7 +65,7 @@ They are automatically imported and can be used to execute openHAB-specific oper
{% endif %}
<tr class="install-{{install}} source-{{action.source}}">
<td>
<h4><a href="{{base}}/addons/actions/{{ action.source }}/{{ action.id }}/readme.html">{{ action.label }}</a></h4>
<h4><a href="{{base}}/addons/actions/{{action.id}}/readme.html">{{action.label}}</a></h4>
<img src="{{base}}/images/tag-{{action.source}}.svg"> <img src="{{base}}/images/tag-install-{{install}}.svg">
</td>
<td>{{ action.description | markdownify }}</td>
Expand Down
2 changes: 1 addition & 1 deletion addons/bindings.md
Expand Up @@ -108,7 +108,7 @@ Bindings connect your smart home's devices and technologies to openHAB.
{% endif %}
<tr class="install-{{install}} source-{{binding.source}}">
<td>
<h4><a href="{{base}}/addons/bindings/{{ binding.source }}/{{ binding.id }}/readme.html">{{ binding.label }}</a></h4>
<h4><a href="{{base}}/addons/bindings/{{binding.id}}{% if binding.source == 'oh1' %}1{% endif %}/readme.html">{{ binding.label }}</a></h4>
<img src="{{base}}/images/tag-{{binding.source}}.svg"> <img src="{{base}}/images/tag-install-{{install}}.svg">
</td>
<td>{{ binding.description | markdownify }}</td>
Expand Down
2 changes: 1 addition & 1 deletion addons/persistence.md
Expand Up @@ -64,7 +64,7 @@ Persistence services enable the storage of item states over time.
{% endif %}
<tr class="install-{{install}} source-{{persist.source}}">
<td>
<h4><a href="{{base}}/addons/persistence/{{ persist.source }}/{{ persist.id }}/readme.html">{{ persist.label }}</a></h4>
<h4><a href="{{base}}/addons/persistence/{{persist.id}}/readme.html">{{ persist.label }}</a></h4>
<img src="{{base}}/images/tag-{{persist.source}}.svg"> <img src="{{base}}/images/tag-install-{{install}}.svg">
</td>
<td>{{ persist.description | markdownify }}</td>
Expand Down
9 changes: 6 additions & 3 deletions pom.xml
Expand Up @@ -324,7 +324,8 @@
def name = it.name
if(name.contains('binding')) {
def bindingId = it.name.replace('org.eclipse.smarthome.binding.', '').replace('org.openhab.binding.', '')
def simpleBindingNameDir = new File(bindings.path, bindingId)
def target = new File(project.basedir, 'addons/bindings')
def simpleBindingNameDir = new File(target.path, (source == 'oh1') ? bindingId + '1' : bindingId)
it.renameTo(simpleBindingNameDir)
def readme = new File(simpleBindingNameDir.path, 'README.md')
if(readme.exists()) {
Expand Down Expand Up @@ -376,7 +377,8 @@
def name = it.name
if(name.contains('action')) {
def actionId = it.name.replace('org.openhab.action.', '')
def simpleActionNameDir = new File(actions.path, actionId)
def target = new File(project.basedir, 'addons/actions')
def simpleActionNameDir = new File(target.path, actionId)
it.renameTo(simpleActionNameDir)
def readme = new File(simpleActionNameDir.path, 'README.md')
if(readme.exists()) {
Expand Down Expand Up @@ -428,7 +430,8 @@
def name = it.name
if(name.contains('persistence') &amp;&amp; !name.endsWith('.test')) {
def persistenceId = it.name.replace('org.openhab.persistence.', '')
def simplePersistenceNameDir = new File(persistence.path, persistenceId)
def target = new File(project.basedir, 'addons/persistence')
def simplePersistenceNameDir = new File(target.path, persistenceId)
it.renameTo(simplePersistenceNameDir)
def readme = new File(simplePersistenceNameDir.path, 'README.md')
if(readme.exists()) {
Expand Down