Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<code> blocks should get split automatically to avoid exceeding the 10k record size limit #119

Open
octogonz opened this issue Mar 18, 2019 · 0 comments

Comments

@octogonz
Copy link

octogonz commented Mar 18, 2019

What is the current behavior?

Large <code> blocks cause an error: "The jekyll-algolia plugin detected that one of your records exceeds the 10.00 Kb record size limit."

What is your expected behavior?

jekyll-algolia should automatically split these blocks into smaller records to avoid exceeding the size limit.

These <code> blocks are coming from Markdown ``` blocks. So there isn't a straightforward way for me to split them up: additional chunks would be visually rendered with separate borders around them. Whereas it seems that jekyll-algolia could do this pretty easily. It doesn't really matter where it chooses to split the code. I just want my search index to be able to find the page that contains that text.

Git repository to reproduce the issue:

Example documentation page with a large code block:

https://rushjs.io/pages/configs/rush_json/

Source code for this page:

https://github.com/Microsoft/rushjs.io-website/edit/master/pages/configs/rush_json.md

Ruby version used:

ruby 2.5.3p105

Jekyll version used:

jekyll 3.7.4

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

No branches or pull requests

1 participant