[
https://issues.apache.org/jira/browse/KAFKA-20541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18088637#comment-18088637
]
ASF GitHub Bot commented on KAFKA-20541:
----------------------------------------
muralibasani commented on PR #856:
URL: https://github.com/apache/kafka-site/pull/856#issuecomment-4695660934
> Sorry but as I said in [#856
(comment)](https://github.com/apache/kafka-site/pull/856#issuecomment-4371428908),
when building the docs the `generated` folder is in the artifact that we put
under `content/en`. So I think it would be better to pick it from there.
>
> Currently `generated` is picked from `static`. So we want to:
>
> * delete the `generated` copy under `static/42`, 42 currently has a copy
under `content/en`
> * move the `generated` folder of 43 under `content/en`
>
> Does that make sense?
Yes.
1. Moved `generated/` from `static/42/` and `static/43/` into
`content/en/42/generated/` and `content/en/43/generated/`. (For 4.2: the
previously-existing `content/en/42/generated/` was empty stubs that I deleted
in the last commit; this step moved the real files from `static/` into that
location.)
2. Updated the include-html shortcode to read from the content path, with a
fallback to /static/<v>/ for pre-4.2 versions so we don't need to touch their
markdown. (older versions (07–41) keep working without any markdown edits.)
3. Kept the catch-all mount so /<v>/generated/connect_rest.yaml urls still
work.
> Duplicate generated folder in kafka-site
> ----------------------------------------
>
> Key: KAFKA-20541
> URL: https://issues.apache.org/jira/browse/KAFKA-20541
> Project: Kafka
> Issue Type: Bug
> Components: website
> Reporter: Mickael Maison
> Assignee: Muralidhar Basani
> Priority: Major
>
> We have the generated content under both:
> - content/en/<VERSION>
> - static/<VERSION>
> For example:
> https://github.com/apache/kafka-site/tree/markdown/content/en/42/generated
> https://github.com/apache/kafka-site/tree/markdown/static/42/generated
--
This message was sent by Atlassian Jira
(v8.20.10#820010)