eclipse-tractusx / sig-release

https://eclipse-tractusx.github.io/sig-release
Apache License 2.0
9 stars 10 forks source link

Upgrade docusaurus (tractus-x webpage) to newest version 3.5 #985

Open stephanbcbauer opened 2 weeks ago

stephanbcbauer commented 2 weeks ago

Overview

This feature will upgrade the Tractus-X website's Docusaurus framework from version 2.2.0 to 3.6.0 to enhance security by addressing vulnerabilities in outdated libraries. The upgrade involves removing deprecated plugins and implementing a new method to display API specifications across different KIT versions.

Explain the topic in 2 sentences

To update Tractus-X’s webpage to Docusaurus 3.6.0, we’ll remove unmaintained plugins and introduce API Hub for consistent API spec presentation across KIT versions, addressing syntax requirements imposed by the new MDX checker.

What's the benefit?

This update improves website security, reduces dependency on outdated plugins, and standardizes the API display across various KIT versions.

What are the Risks/Dependencies?

Detailed Explanation

This upgrade will:

Current Implementation

The current webpage uses Docusaurus 2.2.0 with an Open API plugin to display Swagger UI for some KITs, and a remote plugin that is no longer in use. Syntax rules for markdown files are less strict, resulting in potential errors when checked with the MDX checker in the new version.

Proposed Improvements

  1. Upgrade to Docusaurus 3.6.0.
  2. Remove the Open API and remote plugins.
  3. Integrate API Hub for consistent API presentation across KIT versions.
  4. Resolve MDX checker errors in the related KITs’ MDX and MD files.

Feature Team

Contributor

Committer

User Stories

Acceptance Criteria

Test Cases

Test Case 1

Steps

  1. Navigate to API documentation for both old and new KITs.
  2. Verify API specs are displayed via API Hub.

Expected Result

  1. API specs are consistently displayed in both old and new KIT versions.

Test Case 2

Steps

  1. Add a dummy kit (or maybe a demo kit) as example and for testing

Expected Result

  1. The KIT is displayed correctly without any errors and the correct API version and spec is linked.

Architectural Relevance ⇾ not needed for this upgrade ⇾ content deleted

Additional information

stephanbcbauer commented 1 week ago

Some hints from Release Management (@ther3sa) and Tractus-X Project Lead (@stephanbcbauer)

stephanbcbauer commented 1 week ago

@@jSchuetz88, @manojava-gk, @ybidois sorry for the short notice. I nearly forget to refine my feature. Can you please provide feedback on this? Thx

jSchuetz88 commented 1 week ago

Looks good to me, lets do it 👍

ybidois commented 1 week ago

@stephanbcbauer What about adding a second test case about "Adding a dummy kit" and see if it displays correctly along the current kits?

stephanbcbauer commented 1 week ago

@stephanbcbauer What about adding a second test case about "Adding a dummy kit" and see if it displays correctly along the current kits?

Thank you very much.I will add a second test case. What do you think about the overall description? Does it make sense? Is this feature or description? Good quality?

stephanbcbauer commented 1 week ago

@ybidois, @jSchuetz88 added the test case and put the status to Backlog

manojava-gk commented 1 week ago

this looks good to me

stephanbcbauer commented 1 week ago

@manojava-gk, @ybidois deleted you from the committer section, since you are not committers, correct. But i think overall that's an excellent contribution.

ClosedSourcerer commented 1 week ago

Please make sure that the mermaid plugin gets updated as well. Newer version should support chart types: mindmap, block-beta and xychart-beta

ClosedSourcerer commented 1 week ago

@MWADCM @LukasSchmetz We need to change our KIT and migrate the API documentation to the API Hub (For all Released KIT Versions)

LukasSchmetz commented 1 week ago

@MWADCM @LukasSchmetz We need to change our KIT and migrate the API documentation to the API Hub (For all Released KIT Versions)

@ClosedSourcerer Thanks for highlighting. Should we link that to our KIT Maintenance Feature for R25.03?