apify / apify-docs

This project is the home of Apify's documentation.
https://docs.apify.com
Apache License 2.0
26 stars 73 forks source link

fix: landing pages syntax highlighting [internal] #1222

Open webrdaniel opened 1 week ago

webrdaniel commented 1 week ago

reported here: https://apify.slack.com/archives/C0L33UM7Z/p1726736971578239

I've found out that it started with this commit https://github.com/apify/apify-docs/pull/1176

The issue was with package-lock, so I've tried to use the previous package-lock in the current master and update it with npm i. Looks like it is fixed but there are quite a lot of changes, so I hope it didn't break anything.

If you have an idea of how to fix this more gently please go ahead and try it or suggest it here.

barjin commented 3 days ago

The new changes are reusing the CodeBlock from the Docusaurus theme that has the code highlight working. The design is slightly different.

before after
obrazek obrazek

The reason for the broken highlight is still unknown; this also broke the ReactSyntaxHighlighter in the search modal preview panel (right side).

obrazek