Skip to content

Conversation

@Simran-B
Copy link
Contributor

@Simran-B Simran-B commented Apr 15, 2024

Description

  • Don't use conflicting detection of long code blocks (element height vs. number of lines).
  • Ensure we always reveal ~5 lines or don't collapse content.
  • Don't collapse code blocks already hidden by default ("Show output").

Collation Analyzer example no longer cut off (below threshold), last AQL Analyzer example with "Show more" button:

https://deploy-preview-517--docs-hugo.netlify.app/stable/index-and-search/analyzers/#collation

Upstream PRs

  • 3.10:
  • 3.11:
  • 3.12:
  • 3.13:

Don't use conflicting detection of long code blocks (element height vs. number of lines). Ensure we always reveal ~5 lines or don't collapse content. Also don't collapse code blocks already hidden by default ("Show output").
@Simran-B Simran-B requested a review from ansoboleva April 15, 2024 11:45
@Simran-B Simran-B self-assigned this Apr 15, 2024
@Simran-B Simran-B requested a review from alexbakharew April 15, 2024 11:45
@arangodb-docs-automation
Copy link
Contributor

Deploy Preview Available Via
https://deploy-preview-517--docs-hugo.netlify.app

@cla-bot cla-bot bot added the cla-signed label Apr 15, 2024
@Simran-B
Copy link
Contributor Author

From testing the threshold:

image

@Simran-B
Copy link
Contributor Author

Simran-B commented Apr 15, 2024

Discovered an issue: tabbed examples like for ArangoSearch only get the "Show more" button for the active tab. The other tab is hidden, therefore the content has no height, and the code for adding the button is skipped (this is good for "Show output" but not for tabs).

Simran-B and others added 8 commits April 16, 2024 17:28
An anchor link does not contain a slash to split by. The second element is thus undefined and it got spliced in, then turned into an extra slash, breaking the fragment identifier.
This allows to independently call the latter, which we need to do for tabbed content for which we don't know the height until it is activated. The the event handler at a higher level so that it can handle buttons added after page load

Also remove some dead code for copy to clipboard.
@Simran-B Simran-B merged commit 0edd894 into main Apr 23, 2024
@Simran-B Simran-B deleted the DOC-660a branch April 23, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants