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

[feature]: Documentation UI #278

Open
andrewm-aero opened this issue May 26, 2022 · 3 comments
Open

[feature]: Documentation UI #278

andrewm-aero opened this issue May 26, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@andrewm-aero
Copy link

Feature Description

As a Software Factory Operator, I want my tenants and users to have easy-to-read and easy-to-find documentation on available templates, libraries, and configurations embedded into the Jenkins UI, extracted from the JTE groovy files.

As the size of our JTE configuration has grown, managing the documentation of available features and options to our users has become an increasing chore. I believe that the ideal case would be to have a page similar in structure and motivation to the Job DSL plugin's API Viewer which scans all configured library and configuration repositories, extracts Javadoc-style comments for each template, library, and library config field, and keyword, and presents them in a searchable HTML page.

@andrewm-aero andrewm-aero added the enhancement New feature or request label May 26, 2022
@steven-terrana
Copy link

that's a really interesting idea.

The jte-library-scaffold that provides a way to build a library source repository that's integrated with the same documentation framework JTE uses for its documentation.

Maybe it's an endpoint that maps to a site like this?

@steven-terrana
Copy link

the javadoc approach is interesting too.

Perhaps groovy already has some functionality to make this possible.

the aggregation across sources might be tricky though since templates, configs, and libraries can come from many sources at the same time

@andrewm-aero
Copy link
Author

andrewm-aero commented May 26, 2022

I'm not terribly picky about which documentation framework is used, so long as there is one recognized by the plugin, and so long as it can take multiple sources and "stitch" them together into a cohesive, searchable page (or set of pages) within the Jenkins UI. If this framework can do that, and it comes with the JTE maintainer's recommendation, I'm happy to learn it. If that's case, would it be reasonable to have the JTE check out the libraries/configs on startup, run the docs generator, and add it as static page to Jenkins? There'd probably need be some way to have it regenerate when new commits are made to the JTE repos, though.

For the Javadoc approach, the reason I like it is that one can embed the docs directly in the groovy, and not have to manage updating names in multiple places, and it might even be able to determine type validation information, required vs optional, etc, and auto-generate that info in the HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants