Skip to content

Conversation

@gengliangwang
Copy link
Member

What changes were proposed in this pull request?

After #40269, there is no border in the generated tables of Spark doc(for example, https://spark.apache.org/docs/latest/sql-ref-ansi-compliance.html) . This PR is to fix it by restoring part of the table style in https://github.com/apache/spark/pull/40269/files#diff-309b964023ca899c9505205f36d3f4d5b36a6487e5c9b2e242204ee06bbc9ce9L26

This PR also unifies all the styles of tables by removing the class="table table-striped" in HTML style tables in markdown docs.

Why are the changes needed?

Fix a regression in the table CSS of Spark docs

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manually build docs and verify.
Before changes:
image

After changes:
image

Was this patch authored or co-authored using generative AI tooling?

Generated-by: ChatGPT 4

@gengliangwang
Copy link
Member Author

This is a backport of #44096

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @gengliangwang .

@gengliangwang
Copy link
Member Author

@dongjoon-hyun Thanks, I am merging this one.

@dongjoon-hyun
Copy link
Member

Sure, go ahead~

gengliangwang added a commit that referenced this pull request Nov 30, 2023
### What changes were proposed in this pull request?

After #40269, there is no border in the generated tables of Spark doc(for example,  https://spark.apache.org/docs/latest/sql-ref-ansi-compliance.html) .  This PR is to fix it by restoring part of the table style in https://github.com/apache/spark/pull/40269/files#diff-309b964023ca899c9505205f36d3f4d5b36a6487e5c9b2e242204ee06bbc9ce9L26

This PR also unifies all the styles of tables by removing the `class="table table-striped"` in HTML style tables in markdown docs.

### Why are the changes needed?

Fix a regression in the table CSS of Spark docs

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manually build docs and verify.
Before changes:
<img width="931" alt="image" src="https://github.com/apache/spark/assets/1097932/1eb7abff-65af-4c4c-bbd5-9077f38c1b43">

After changes:
<img width="911" alt="image" src="https://github.com/apache/spark/assets/1097932/be77d4c6-1279-43ec-a234-b69ee02e3dc6">

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: ChatGPT 4

Closes #44097 from gengliangwang/fixTable3.5.

Authored-by: Gengliang Wang <gengliang@apache.org>
Signed-off-by: Gengliang Wang <gengliang@apache.org>
@viirya
Copy link
Member

viirya commented Nov 30, 2023

Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants