-
-
Notifications
You must be signed in to change notification settings - Fork 694
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
gather-external-docs is broken (again...) #973
Comments
The feature file should not be relevant to docs. You can parse the pom.xml and binding.xml files for addon information, can't you? |
Should and shouldn't don't matter here. Yes, the pom.xml could be a valid base too. |
Sorry for that. I‘ll have a look if I can help here. |
Where are those scripts located? I did a quick search here but couldn't find them. |
I will have look tomorrow too.
You can find them in the final branch of this repository. |
Wow. Different branches. A rework is definitely necessary IMO. |
The different branches approach was done on purpose and i definetely want to keep this.
This is a historically grown structure... The final branch was introduced, to make contributing easier. We then separated contents (with those branches) and added the "edit this page links" aside. This way, we tried to lower the entry hurdle and bring more people to the docs. |
There should be no intermediate, assembly only repository or branch, that's what I mean. Only content. IMO no build should happen here. The website repo build would gather and assemble everything. And for generating previews we would checkout the website repo in our Travis script and use the very same build procedure (excluding the expensive gather step maybe). |
@Confectrician I found the groovy-script that processes addons feature-files. It is not so easy to change that, otherwise we would have to keep the list of excluded and included features and the names in different places in sync. But I have another idea: How often is that script executed? Every time a new snapshot is build? Each build aggregates the features.xml so that it is the same as it was before, it's just nmot part of the repo anymore but still deployed for the distribution. Do you think we can pick it up from there and parse that instead of the source file? |
I have also created this openhab/website#186 for an idea |
Where does it get deployed to? For Mid/Long term i want to simplify that anyways. |
https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/distro/openhab-addons/2.5.0-SNAPSHOT/ The file name changes but can be extracted from maven-metadata.xml |
Hey @J-N-K sorry for the delay. This looks good. We can even catche the correct snapshot folder from https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/distro/openhab-addons/ with the metadata.xml over there. I will try to get a fix now with a fixed snapshot folder. |
Working again. 🙌 Anyway we should aim for a simplification on mid and long term. |
Thanks to @J-N-K who gave me some support and his eyes for the jfrog part. |
And again with have to deal with a refactoring issue.
The gather external docs job (and due to this the complete addon docs build) is completely broken because of
https://github.com/openhab/openhab2-addons/issues/5222 and
https://github.com/openhab/openhab2-addons/pull/5555
Our build process is build up on feature.xml files in many parts
and especially the removed one was used for a big part.
Seems finally the time to rework the whole script has come now.
A ping to @openhab/2-x-add-ons-maintainers for info.
I know docs are a necessary part but not the most beloved one.
I would like to kindly ask you to think of the docs too, when reviewing some bigger changes that are not only related to one binding and will change folder structures.
This way we could have had prepared something maybe.
I am already following the activity in openhab2-addons for a while,
but its not that easy to be up to date all the time, if one is just reading most of the time.
The text was updated successfully, but these errors were encountered: