Commit 150d493
committed
[SPARK-28752][BUILD][DOCS][FOLLOW-UP] Render examples imported from Jekyll properly via Rouge
### What changes were proposed in this pull request?
This PR proposes to use Pygment compatible format by Rouge. As of #26521, we use Rouge instead of Pygment wrapper in Ruby.
Rouge claims Pygment compatibility; and we should output as Pygment does.
```ruby
Rouge::Formatters::HTMLPygments.new(formatter)
```
wraps codes with `<div class="highlight"><pre>...` properly.
### Why are the changes needed?
To keep the documentation pretty and not broken.
### Does this PR introduce any user-facing change?
Theoretically, no.
This is rather a regression fix in documentation (that happens only by #26521 in master). See the malformed doc in preview - https://spark.apache.org/docs/3.0.0-preview2/sql-pyspark-pandas-with-arrow.html
### How was this patch tested?
Manually built the doc.
**Before:**

**After:**

Closes #27182 from HyukjinKwon/SPARK-28752-followup.
Authored-by: HyukjinKwon <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>1 parent 361583d commit 150d493
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments