Skip to content

Update documentation due to the VitePress migration#1005

Merged
grego952 merged 20 commits intokyma-project:mainfrom
grego952:docsify-to-vitepress
Nov 21, 2025
Merged

Update documentation due to the VitePress migration#1005
grego952 merged 20 commits intokyma-project:mainfrom
grego952:docsify-to-vitepress

Conversation

@grego952
Copy link
Contributor

Description

Changes proposed in this pull request:

  • Update documentation due to the VitePress migration

Related issue(s)

@grego952 grego952 requested a review from a team as a code owner October 31, 2025 12:08
},
```

If you want to add documentation for a new module, you must also add the module repository name do the `deploy.yml` file, under `jobs.copy-docs.strategy.matrix.repository`. For example:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would say this is step 4.

Suggested change
If you want to add documentation for a new module, you must also add the module repository name do the `deploy.yml` file, under `jobs.copy-docs.strategy.matrix.repository`. For example:
4. In the `/kyma` repository, add the module repository name to the [`deploy.yml`](https://github.com/kyma-project/kyma/blob/main/.github/workflows/deploy.yml) file under the **jobs.copy-docs.strategy.matrix.repository** element. For example:


1. Create a pull request adding your content to a Markdown file located in the `/docs` folder.
2. Add a new `_sidebar.md` file including a link to your document, or update an existing `_sidebar.md` to include it.
2. Add a new `_sidebar.ts` file including a link to your document, or update an existing `_sidebar.ts` to include it.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
2. Add a new `_sidebar.ts` file including a link to your document, or update an existing `_sidebar.ts` to include it.
2. Go to [`/kyma/.vitepress/config.mjs`](https://github.com/kyma-project/kyma/blob/main/.vitepress/config.mjs#L138) and provide your document details in the **sidebar** element, under **themeConfig**. Use the following pattern:

We could also add the example:

      {
        text: 'Troubleshooting',
        link: '/04-operation-guides/troubleshooting/README',
      },

> **CAUTION:** When you update navigation paths in documentation, make sure you check all `_sidebar.md` files that may be affected.
> **CAUTION:** When you update navigation paths in documentation, make sure you check all `_sidebar.ts` files that may be affected.

4. Run the [Deploy VitePress site to GitHub Pages](https://github.com/kyma-project/kyma/actions/workflows/deploy.yml) or wait for the CronJob to start it (every day at midnight).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
4. Run the [Deploy VitePress site to GitHub Pages](https://github.com/kyma-project/kyma/actions/workflows/deploy.yml) or wait for the CronJob to start it (every day at midnight).
5. Run the [Deploy VitePress site to GitHub Pages](https://github.com/kyma-project/kyma/actions/workflows/deploy.yml) or wait for the CronJob to start it (every day at midnight).

> **CAUTION:** When you update navigation paths in documentation, make sure you check all `_sidebar.ts` files that may be affected.

4. Run the [Deploy VitePress site to GitHub Pages](https://github.com/kyma-project/kyma/actions/workflows/deploy.yml) or wait for the CronJob to start it (every day at midnight).
5. Make sure that the `public` folder is deleted after the build. If not, delete it manually to clean up the environment.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
5. Make sure that the `public` folder is deleted after the build. If not, delete it manually to clean up the environment.
6. Make sure that the `public` folder in the root of the `/kyma` repository is deleted after the build. If not, delete it manually to clean up the environment.


## Execute Prettier

Prettier helps maintain proper formatting. The project is already configured to use this formatter automatically, provided you are using Visual Studio Code (it leverages the VSCode Prettier plugin). Unfortunately, it runs prettier at commit time on Git; if you are not using Git integrated in VSCode for commits, you must execute it manually by running the following command:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if I understand. So if I'm using Visual Studio Code, do I need to install the VSC Prettier plugin?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll rephrase that.

Before you publish new documentation on the Kyma website, you can preview your changes to see if the formatting of the text is correct, images fit well, and links work as expected. To do that, see the following steps:

That is possible thanks to the [**docsify preview feature**](https://docsify.js.org/#/quickstart?id=preview-your-site) supported by [docsify](https://docsify.js.org/#/).
1. Go to the [`kyma/hack`](https://github.com/kyma-project/kyma/tree/main/hack), and execute the `copy_external_content.sh` script:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do the files in the hack folder also need to be updated once we add a new module repo? For example, https://github.com/kyma-project/kyma/blob/main/hack/copy_external_content.sh?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Definitely!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a note.

grego952 and others added 2 commits November 21, 2025 08:24
Co-authored-by: Małgorzata Świeca <malgorzata.swieca@sap.com>
Comment on lines +48 to +58
```mjs
{
text: 'My Module',
link: '/external-content/my-module/docs/user/README.md',
collapsed: true,
items: makeSidebarAbsolutePath(
myModuleSidebar,
'my-module',
),
},
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please indent the code example.

Comment on lines +62 to +72
```yaml
jobs:
copy-docs:
strategy:
matrix:
repository:
- btp-manager
- istio
- serverless
- {YOUR_MODULE_REPO}
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please make sure it is indented under the step.

Comment on lines +19 to +22
```bash
npm install
npm run docs:dev
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you indent it under the bullet point?

Comment on lines +26 to +29
```bash
npm run docs:build
npm run docs:preview
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you indent it under the bullet point?

@grego952 grego952 merged commit 9c4e3e9 into kyma-project:main Nov 21, 2025
1 of 2 checks passed
@grego952 grego952 deleted the docsify-to-vitepress branch November 21, 2025 10:00
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.

3 participants