Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kicito
Copy link
Contributor

@kicito kicito commented Oct 21, 2024

This PR adds workflow for standard library documentation generation. It includes:

  • Modifications to joliedoc to allow specifying the output format through command-line arguments
  • mdbook Mustache Template Integration: Implementation of a mdbook mustache template based on previous work referenced here: https://github.com/thesave/build_jsl

Requirement

New secret:
API_TOKEN_GITHUB=TOKEN # a token with write permission for "Contents" for docs repository, in order to push the generated files.

Workflow description

The workflow runs after Java CI on the main branch is completed, or triggered manually.

It builds Jolie from the commit and runs joliedoc on each library, applying some script to modify content for the Service/module level that is missing information from the joliedoc, and then pushing the generated file to the docs repo. In case of publishing a new library, the action also modifies SUMMARY.md accordingly. The target branch name is based on the Jolie version specified in pom.xml.

Note

In the case of a library that contains several ports, the action will guess the joliedoc generated file from the inputport name, otherwise it will take the first generated file to show on the documentation page.

@kicito kicito force-pushed the feature/stdlib-doc-workflow branch from 5877dfd to ee38977 Compare October 23, 2024 11:31
@fmontesi fmontesi requested a review from Copilot November 3, 2024 19:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no suggestions.

@kicito kicito force-pushed the feature/stdlib-doc-workflow branch 17 times, most recently from d0bb06a to bf8bb0e Compare November 19, 2024 21:40
attempt to fix path

attempt to fix path 2

install jolie within action

debug

revert debug
md filetype only support port documentation
@kicito kicito force-pushed the feature/stdlib-doc-workflow branch from bf8bb0e to 7b6465f Compare November 19, 2024 21:46
@kicito kicito marked this pull request as ready for review November 19, 2024 21:52
@fmontesi fmontesi merged commit 5310ad6 into jolie:master Nov 21, 2024
6 checks passed
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.

2 participants