Skip to content

Move documentation into src and make docs processing a single source of truth#2718

Draft
jimtng wants to merge 11 commits into
openhab:mainfrom
jimtng:refactor-prepare-docs
Draft

Move documentation into src and make docs processing a single source of truth#2718
jimtng wants to merge 11 commits into
openhab:mainfrom
jimtng:refactor-prepare-docs

Conversation

@jimtng
Copy link
Copy Markdown
Contributor

@jimtng jimtng commented May 8, 2026

Move repository documentation into a new src/ layout and add tooling to support the migration and source-driven docs pipeline. Centralize docs-processing logic so other repos (notably openhab-website) can source the processing code from openhab-docs, removing duplicated processing logic and ensuring the website build always uses the latest processing logic.

Highlights:

  • Moved ruby scripts into scripts/
  • Documents moved: bulk relocation of documentation into src to match the exact final structure of the docs/ directory.
  • No more manually adjusting the ruby script for any modifications in the structure. Everything in src/ will be processed and deployed automatically.
  • Removed some old directories / pages
  • Website integration: openhab-website clones openhab-docs during preprocessing and loads docs-processing ruby code from that clone, eliminating duplication, reducing maintenance, and creating a single source of truth for docs processing.

…of truth

This lets openhab-website use the same script when it clones
openhab-docs during its preprocessing and load the latest processing logic
instead of duplicating it.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 8, 2026

Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).

Built without sensitive environment variables

Name Link
🔨 Latest commit fd57d31
🔍 Latest deploy log https://app.netlify.com/projects/openhab-docs-preview/deploys/6a0071858338be0008a8d540
😎 Deploy Preview https://deploy-preview-2718--openhab-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@jimtng
Copy link
Copy Markdown
Contributor Author

jimtng commented May 8, 2026

@florian-h05 this is what we discussed earlier about deduplicating the processing scripts between website and docs. Also see its counterpart in openhab/openhab-website#560

jimtng added 2 commits May 8, 2026 22:37
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@jimtng jimtng force-pushed the refactor-prepare-docs branch from 5cdc904 to ea46ce4 Compare May 8, 2026 12:59
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@jimtng jimtng force-pushed the refactor-prepare-docs branch from ea46ce4 to d8db01b Compare May 8, 2026 13:02
jimtng added 4 commits May 8, 2026 23:09
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@jimtng jimtng marked this pull request as ready for review May 9, 2026 13:19
@jimtng
Copy link
Copy Markdown
Contributor Author

jimtng commented May 9, 2026

The web site build that relies on this new PR is green now! This PR must be merged after being rebased on the latest main so that we can pick up and migrate the latest documents into src/

jimtng added 3 commits May 10, 2026 13:14
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@jimtng jimtng marked this pull request as draft May 11, 2026 02:44
@jimtng
Copy link
Copy Markdown
Contributor Author

jimtng commented May 11, 2026

I won't have a lot of availability in the next month. Switching this to draft for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant