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

[TASK] Setup GitHub workflow "render-docs" #1771

Closed
wants to merge 8 commits into from
Closed

[TASK] Setup GitHub workflow "render-docs" #1771

wants to merge 8 commits into from

Conversation

alexander-nitsche
Copy link
Contributor

Automatically generate reST documentation files from the Fluid ViewHelpers implementation in Documentation/fluidtypo3/vhs/, commit and push.

This is inspired from the rendering workflow of the basic Fluid ViewHelpers documentation.

What i did:

  1. I tested the workflow by locally processing all steps and added the created documentation pages manually to the repository.
  2. I adapted the content structure to fit to the original Fluid ViewHelpers documentation.

What is missing:

  1. The fluid schema generator bug mentioned in this issue has to be fixed by someone with deeper Fluid knowledge.
  2. The workflow wording should be tested if (1) is fixed and the PR approved.

In the long run the Fluid documentation generator has to be adapted to generate proper reST. Currently it has some flaws.

@alexander-nitsche
Copy link
Contributor Author

This is how the generated ViewHelpers pages look like:
Screen Shot 2022-05-08 at 18 45 09

@alexander-nitsche
Copy link
Contributor Author

In the long run the Fluid documentation generator has to be adapted to generate proper reST. Currently it has some flaws.

Is now handled in PR TYPO3-Documentation/fluid-documentation-generator#5.

Automatically generate reST documentation files from
the Fluid ViewHelpers implementation in
Documentation/fluidtypo3/vhs/, commit and push.
The documentation files were created by manually processing the
"render-docs.yml" on a local machine. This is due to the fact
that the bin/generate-schema binary of the
typo3/fluid-schema-generator project does not yet work properly
with TYPO3 11+, which is documented in
TYPO3-Documentation/t3docs-ci-deploy#4
and has to be fixed to make "render-docs.yml" work properly.
The reST documentation exporter has been adapted to handle the
Markdown format of the VHS ViewHelpers documentation.
This helps to parse Markdown to reST in the Fluid Documentation
Generator.
Adjusted documentation in ViewHelper classes by replacing all
code blocks formatted by indentation with code blocks
wrapped by "```". Reflect these changes in the generated
documentation.
Disable until the related issue of the Fluid Schema Generator is
solved:

TYPO3-Documentation/t3docs-ci-deploy#4
@alexander-nitsche
Copy link
Contributor Author

I rebased the PR on the current development branch and re-enabled the automatic documentation rendering as the related issue has been fixed in meantime.

Most of the ViewHelper documentation is generated from the ViewHelper
source code. Therefore, the "Edit on GitHub" workflow is
counterproductive because it applies PRs to the reST files that will
be overwritten during the next generation run. Remove the
"Edit on GitHub" workflow and instead add a contribution page that
explains all the manual steps.
@alexander-nitsche
Copy link
Contributor Author

Has been integrated in meantime by Claus.

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.

None yet

1 participant