Distinguish collections, improve update process (#514)
* Rename collection folders Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Change all occurences of addons and repos Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Add further corrections Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Remove temporary directories after processing Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Reduce addons menus, show current uncond. Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Fix typo Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Remove redundant addons from permalinks Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Sort UI menu entries correctly Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Split maven command Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>pull/483/head^2
parent
2cece1ff01
commit
826ef4abb4
|
@ -7,15 +7,9 @@ project.pbxproj
|
||||||
*.xcworkspacedata
|
*.xcworkspacedata
|
||||||
*.xcscmblueprint
|
*.xcscmblueprint
|
||||||
*.xcuserstate
|
*.xcuserstate
|
||||||
addons/uis/habmin/node_modules
|
|
||||||
addons/uis/habmin/target
|
|
||||||
|
|
||||||
# Update process
|
# Update process
|
||||||
_repos/smarthome
|
.external-resources
|
||||||
_repos/openhab-distro
|
|
||||||
_repos/openhab1-addons
|
|
||||||
_repos/openhab2-addons
|
|
||||||
_repos/openhab-bundles
|
|
||||||
|
|
||||||
# IntelliJ
|
# IntelliJ
|
||||||
*.iml
|
*.iml
|
||||||
|
|
38
README.md
38
README.md
|
@ -46,21 +46,31 @@ After that, it's as easy as:
|
||||||
|
|
||||||
## Automatically Generated Parts
|
## Automatically Generated Parts
|
||||||
|
|
||||||
Please note that a few parts MUST NOT BE MANUALLY EDITED!
|
Please note that a few parts of this repository MUST NOT BE MANUALLY EDITED!
|
||||||
These are copied from the source code repositories and some files are generated from them. These files/folders are:
|
These are copied from the source code repositories and some files are generated from them. These files/folders are:
|
||||||
|
|
||||||
```
|
- `addons_*`
|
||||||
_source/_data
|
- `concepts`
|
||||||
_source/concepts
|
|
||||||
_source/addons/bindings
|
|
||||||
_source/addons/iconsets
|
|
||||||
_source/addons/io
|
|
||||||
_source/addons/uis
|
|
||||||
```
|
|
||||||
|
|
||||||
The generation/update of these files can be triggered through `mvn clean package` in the repo root.
|
The generation/update of these files can be triggered through `bash update-external-resources.sh` in the repo root.
|
||||||
Please note that this repository works with sub-modules, so if you want to run this Maven generation, you should check out the repository recursively:
|
The process will create a temporary folder `.external-resources`, which is only used by the update script and can be ignored.
|
||||||
|
|
||||||
```
|
## About the `_addons_*` Folders
|
||||||
git clone --recursive https://github.com/openhab/openhab-docs
|
|
||||||
```
|
See [Jekyll Collections](https://jekyllrb.com/docs/collections/) for general details.
|
||||||
|
The folders represent collections of the different Addons types.
|
||||||
|
|
||||||
|
If you are here to help improve one of the contained READMEs, read carefully.
|
||||||
|
These files are mere copies of files in other repositories and will be overwritten on a regular basis.
|
||||||
|
Please find the original repository and add your contribution there.
|
||||||
|
|
||||||
|
At the time of this writing, the folders are automatically created and updated by the toolchain
|
||||||
|
|
||||||
|
- `update-external-resources.sh` → `pom.xml` → `process_addons.groovy`
|
||||||
|
|
||||||
|
Configuration of the collections happens through `_config.yml`.
|
||||||
|
The most important setting you need to be aware of, is, that all files in collections are mapped to certain paths:
|
||||||
|
|
||||||
|
- e.g. `_addons_bindings\astro\readme.md` → http://docs.openhab.org/addons/bindings/astro/readme.html
|
||||||
|
|
||||||
|
Check the mentioned files for more details.
|
||||||
|
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue