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

docs: host javadocs on GH #3377

Merged
merged 9 commits into from
Jan 4, 2023
Merged

docs: host javadocs on GH #3377

merged 9 commits into from
Jan 4, 2023

Conversation

ossdhaval
Copy link
Contributor

Prepare


Description

In order to version javadocs generated by each module, it was decided to host them in GH repo. This PR will generate javadocs for all the modules and move them to respective locations under jans/docs/admin/reference/javadoc/<module>.

A subsequent CR will process them further and publish them on MKDocs site as discussed with Mo.

Target issue

closes #issue-number-here

Implementation Details


Test and Document the changes

  • Static code analysis has been run locally and issues have been fixed
  • Relevant unit and integration tests have been added/updated
  • Relevant documentation has been updated if any (i.e. user guides, installation and configuration guides, technical design docs etc)

@ossdhaval ossdhaval self-assigned this Dec 21, 2022
@mo-auto mo-auto added area-CI Issue or changes required in automatic builds or CI infrastructure area-documentation Documentation needs to change as part of issue or PR labels Dec 21, 2022
.github/workflows/build-docs.yml Outdated Show resolved Hide resolved
@ossdhaval ossdhaval requested a review from moabu December 22, 2022 08:04
.github/workflows/build-docs.yml Outdated Show resolved Hide resolved
.github/workflows/build-docs.yml Outdated Show resolved Hide resolved
@ossdhaval ossdhaval requested a review from moabu December 28, 2022 12:55
echo "Move generated javadocs to respective doc site location"

echo "getting locations where javadocs got generated"
generated_doc_paths=($(find "$module" -type d -path '*/target/site/apidocs' | sed -r 's|/[^/]+$||' | sed -r 's|/[^/]+$||' | sed -r 's|/[^/]+$||'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is problematic. You should probably use mapfile since this returns multiple lines.

Something like:

mapfile -t generated_doc_paths < <(find "$module" -type d  -path '*/target/site/apidocs' | sed -r 's|/[^/]+$||' | sed -r 's|/[^/]+$||' | sed -r 's|/[^/]+$||')

This should help:
https://github.com/koalaman/shellcheck/wiki/SC2207

Adjust and test please.

@moabu moabu merged commit 9d038f1 into main Jan 4, 2023
@moabu moabu deleted the docs-push-javadocs-to-gh branch January 4, 2023 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-CI Issue or changes required in automatic builds or CI infrastructure area-documentation Documentation needs to change as part of issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants