Samy Pessé
5805c24255
Fix copy for code blocks in OpenAPI or AI answers ( #2250 )
2024-03-28 22:46:29 +01:00
Samy Pessé
d0ef225ea3
Make click on OpenAPI property name selects the entire text ( #2249 )
2024-03-28 22:44:03 +01:00
Samy Pessé
5f1d82cb5a
Fix rendering of select in cards ( #2248 )
2024-03-28 20:53:01 +01:00
Samy Pessé
14012d92f9
Fix cover image overflowing the card ( #2243 )
2024-03-27 18:20:16 +01:00
Samy Pessé
0ddbe5c0ee
Revert crossOrigin="anonymous" for images ( #2240 )
2024-03-26 23:19:20 +01:00
Samy Pessé
3a7864d731
Fix design of embed cards being centered ( #2239 )
2024-03-26 18:29:52 +01:00
Samy Pessé
73d806a796
Set z-index on annotation popover ( #2238 )
2024-03-26 16:46:19 +01:00
Samy Pessé
d40568c8f4
Fix OpenAPI tag in aside when text is long ( #2237 )
2024-03-26 14:02:17 +01:00
Samy Pessé
a6789513dc
Fix alignment and border around small images in a grid with captions ( #2229 )
2024-03-26 13:45:23 +01:00
Samy Pessé
0d99906774
Fix crash with concurrent loading of shiki syntaxes ( #2235 )
2024-03-26 11:30:38 +01:00
Greg Bergé
d3f9131af4
Support images & files in synced blocks ( #2234 )
2024-03-25 21:53:24 +01:00
Samy Pessé
0c99a57b3c
Also fix crossOrigin for images when zooming it ( #2232 )
2024-03-25 13:43:19 +01:00
Samy Pessé
ad9e8f2232
Fix authentication displayed for images ( #2231 )
2024-03-25 13:15:19 +01:00
Samy Pessé
c5a28f884a
Fix zoom on small images with custom zoom component ( #2228 )
2024-03-25 11:31:40 +01:00
Samy Pessé
2ed5445af8
Fix display of cover when TOC is hidden ( #328 )
...
* Add visual tests for page options
* Fix the case of a landing page
* Fix height of the aside when page has a cover
* Remove some visual tests
2024-03-22 23:46:35 +01:00
Samy Pessé
ff773233dd
Prevent click on images in links to zoom it ( #324 )
...
* Prevent click on images in links to zoom it
* Fix TS
2024-03-22 16:56:08 +01:00
Samy Pessé
44983f8495
Minor perf improvements to code block highlighting ( #323 )
...
* Use a singleton map when loading languages
* typing
* Lint
* Remove one trace
2024-03-22 16:43:22 +01:00
Viktor Renkema
435ccb10ce
Fix tab truncation behaviour ( #322 )
2024-03-22 12:18:49 +01:00
Samy Pessé
2a28f28421
Fix some links opening in new tab and links on blankslate ( #321 )
...
* Open links from TOC in same tab
* Fix page blankslate not resolving page links correctly
2024-03-21 14:11:42 +01:00
Samy Pessé
be45f23cc8
Use whitespace-pre to fix whitespace in highlighted text in search ( #320 )
...
* Use whitespace-pre to fix whitespace in highlighted text in search
* Correctly fix it
2024-03-21 13:10:58 +01:00
Brett Jephson
fff6dce8fc
RND-3192: images expanding card content beyond their width ( #281 )
...
* Fix for RND-3192: images expanding card content beyond their width
* Wrap Image in a size-restricting container
---------
Co-authored-by: Viktor Renkema <vrenkema@gmail.com >
2024-03-21 12:46:46 +01:00
Samy Pessé
cfcfbdf16c
Fix text/image alignment in cards ( #319 )
...
* Add a visual test
* Fix test
2024-03-21 12:15:58 +01:00
Samy Pessé
b029b1e23d
Fix display of advanced blocks in OL/Tasks lists ( #317 )
...
* Fix OL list style
* Format
* Fix it for tasks lists as well
* Default to fullPage
* Run some test without fullPage
* Run fullPage only on list
2024-03-21 09:50:18 +01:00
Samy Pessé
31799038dd
Improve rendering of complex emojis in favicon ( #315 )
...
* Improve rendering of complex emojis in favicon
* Lint
2024-03-20 19:25:42 +01:00
Samy Pessé
db4ecbc747
Fix long words in headings breaking the layout ( #314 )
2024-03-20 18:59:52 +01:00
Samy Pessé
d12aad6867
Fix different flickering when navigating in docs ( #307 )
...
* Prevent scroll flickering when switching between page with scroll and no scroll
* Oups
* Remove id
* Apply only on large device and use variable
* Fix default
2024-03-19 20:51:16 +01:00
Marc Laventure
4f039ecb2b
feat: add scalar api client ( #180 )
...
* wip
* feat: add scalar api client
* fix: pr feedback
* feat: add scalar react client package, remove vueary
* feat: add scalar proxy
* Move dependencies to package
* Format once
* Rename prop
* Use react context and simplify lazy loading
* Add loading state
* Format
* Move styles
* bun install
* bun
* fix: remove extraneous api-reference package
* feat: make operation functional with spec in client
* fix: column bug and http request type wrapping
* fix: add scalar api reference package
* Format
* bun install
* fix: scrolling in scalar modal
* Lazy load operations data in component
* fix: change dependency from api-reference to oas-utils to reduce size
* bun install
* Log error in the worker proxy
* Cleanup
* Comment "mode"
* Without credentials and referrerPolicy
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
Co-authored-by: Amrit <amrit@hockey-community.com >
2024-03-19 15:32:54 +01:00
Samy Pessé
cf958bacd1
Fallback to MathJax when KaTeX fails to compile math ( #303 )
...
* Start
* Use MathJax v3
* Format
* Improve font-size
* Lint
* Better handle loading
* Copy MathJax assets to public folder
* Attempt at using local assets for MathJax
* Use bun 1.0.31
* Try with bun 1.0.33
* Try fixing headers
* Simplify
* Simplify and not use suspense module
* Cleanup more
* Add test for Math
* Make math block scroll if needed
* Update packages/react-math/src/KaTeX.tsx
Co-authored-by: Greg Bergé <berge.greg@gmail.com >
* Use React.use
* Format
* Use exports
* Lint
* Disable cache in CI for lint
* Format
---------
Co-authored-by: Greg Bergé <berge.greg@gmail.com >
2024-03-19 11:34:53 +01:00
Samy Pessé
706aa42a6e
Fix RocketLoaderDetector being encoded ( #301 )
...
* Fix RocketLoaderDetector being encoded
* suppressHydrationWarning
* Show alert at the top of the page
2024-03-18 19:14:54 +01:00
Samy Pessé
4dcca8b3ec
Pass the nonce to the RocketLoaderDetector ( #300 )
2024-03-18 18:42:56 +01:00
Samy Pessé
d0b92dd408
Improve text displayed in mention for anchor content refs ( #287 )
...
* Resolve anchor content reference to the block text for mentions
* Only apply it for mentions/etc, where text is needed
* Handle tabs/expandable
* Rename to resolveAnchorText
2024-03-18 18:16:53 +01:00
Greg Bergé
718452728f
Detect Rocket Loader and advert about it on docs ( #295 )
2024-03-18 17:33:26 +01:00
Greg Bergé
3c96bf84b5
Upgrade Argos ( #296 )
...
* Upgrade Argos
* Wait for cookie dialog, avoid fullPage if not needed
* Fix E2E
* Cookies dialog
2024-03-18 15:30:45 +01:00
Greg Bergé
cc4a86cc23
Fix ordered list display ( #294 )
...
* Fix ordered list display
* Cover lists in E2E
2024-03-18 15:26:43 +01:00
Greg Bergé
c87197bb98
Replace shikiji by shiki ( #297 )
2024-03-18 15:11:22 +01:00
Samy Pessé
66dcaf850f
Ignore all errors for rendering integration blocks ( #293 )
2024-03-18 12:08:49 +01:00
Greg Bergé
5f70ed73b9
Fix page cover display ( #291 )
...
* Fix page cover display
Make it always looks good with the recommended size of 1990x480.
* Take maximum size on mobile
* Stabilize visual testing
2024-03-18 11:04:28 +01:00
Samy Pessé
bda3080b94
Don't show "Last updated" when no createdAt/updatedAt ( #292 )
2024-03-18 10:09:05 +01:00
Samy Pessé
9f5c68acfe
Fix passing ref to Link elements to make enter in search works ( #290 )
2024-03-18 09:41:15 +01:00
Samy Pessé
a27fa68ae6
Fix scroll to hash and update next to 14.1.3 ( #286 )
...
* Update next to 14.1.3
* Scroll to hash when url changes
* Simplify tests
* Lint and format
* Fix TS
* Dummy comment
* Try async function
2024-03-18 08:55:30 +01:00
Samy Pessé
9e8cde48d4
Fix URL.canParse failing on some browsers ( #285 )
...
* Fix call to URL.canParse failing on some browsers
* format
2024-03-15 21:04:05 +01:00
Steven H
9f75929269
Fix an issue where following a link to a different space would not update the ToC or header. ( #284 )
...
* Fix an issue where clicking links to other spaces would not update ToC/header
* Fix
* Remove dev text
* Use URL.CanParse for testing the external url
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-03-15 20:09:29 +01:00
Greg Bergé
50346135f9
Refactor image sizing logic ( #278 )
...
Fix RND-3140
2024-03-15 16:21:03 +01:00
Steven H
f98146f5b6
Show a single page when user clicks Export as PDF ( #279 )
2024-03-15 15:08:41 +00:00
Sebastian Graz
5dec1a1f0e
Top links visibility container queries ( #257 )
...
* improve top link vis queries & footer style fixes
* add ellipsis to menu items
* Add spacing to menu items
* Remove weird shadow
* Format
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-03-15 11:24:47 +01:00
Steven H
8c75bd364b
Revert "Add w-full to consider Cards block ( #261 )" ( #262 )
...
This reverts commit 06b94d4525 .
2024-03-14 15:42:06 +00:00
Viktor Renkema
06b94d4525
Add w-full to consider Cards block ( #261 )
2024-03-14 15:55:25 +01:00
Samy Pessé
cf4b1249a9
Optimize performances for reading revisions ( #251 )
...
* Optimize read of revisions with metadata=false when possible
* Format
* Fix
* Update src/components/AdminToolbar/AdminToolbar.tsx
Co-authored-by: Steven H <shne24@gmail.com >
---------
Co-authored-by: Steven H <shne24@gmail.com >
2024-03-13 12:54:32 +01:00
Sebastian Graz
270f8b55a5
Hints ( #232 )
...
* V1 hint refactor
* checkbox fix
* Update src/components/DocumentView/Hint.tsx
remove comment
Co-authored-by: Samy Pessé <samypesse@gmail.com >
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-03-11 18:28:20 +01:00
Samy Pessé
642e33444a
More immutable cache and pre-revalidation ( #229 )
...
* Try different approach
* Revalidate before cache expires
* TS
* Only replicate to local backends
* Ensure revalidate is done only once for the same key
* Improve perf of getCacheKey
* Simplify type
* Use better method and comment
* Use it 7 days only
2024-03-11 09:35:20 +01:00