Samy Pessé
fc9238498d
Only use GITBOOK_TOKEN when request is using default API ( #309 )
...
* Only use GITBOOK_TOKEN when request is using default API
* Format
2024-03-20 10:40:38 +01:00
Samy Pessé
2420f9b730
Return private cache-control when receiving prefetch request ( #308 )
2024-03-20 00:17:59 +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
Samy Pessé
37be6f3164
Support options in the OpenAPI spec to control the look and feel ( #306 )
...
* Don't show code-samples if x-codeSamples is defined
* Support x-hideTryItPanel to hide "Try it"
* Fix display of code samples
2024-03-19 16:32:15 +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é
71e993d0ca
Fix support for page redirects with uppercases ( #305 )
2024-03-19 14:37:45 +01:00
Samy Pessé
6695de7b79
Fix inline math not displayed with KaTeX ( #304 )
...
* Fix mathjax loading
* Fix inline math not being displayed
* Format
2024-03-19 12:39:53 +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é
85a32fda4f
Wrap RocketLoaderDetector in DOMContentLoaded ( #302 )
2024-03-18 19:35:31 +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é
9b6d34bdbc
Remove screenshot from AI result ( #298 )
...
Not possible to have it stable
2024-03-18 15:53:41 +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
Valentino Hudhra
69dcf75083
Align loading skeleton with content ( #288 )
2024-03-18 14:48:40 +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é
df92c72164
Fix resolution of first page document when content starts with empty group ( #289 )
...
* Fix resolution of first page document when content starts with empty group
* Lint
2024-03-18 09:23:23 +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
Samy Pessé
5c7c17fe02
Fix OpenAPI parsing for Swagger 2.0 YAML anchors ( #282 )
2024-03-15 18:09:44 +01:00
Johan Preynat
66506143ef
Redirect uppercase pages path to lowercase ( #273 )
...
* Redirect to lowercase pathname when page path has uppercase
* Also redirect in generateMetadata
* Rollback changes in middleware normalizeURL
* Improve argument type
* Only redirect in page component
2024-03-15 17:01:45 +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
Steven H
88a7ab21a2
Revert a change in the way we await for local caches to update. ( #277 )
2024-03-15 14:03:00 +00:00
Steven H
a4099dff9e
Remove awaiting for local caches to set their values whilst we investigate hanging pages. ( #275 )
2024-03-15 13:47:31 +00:00
Steven H
98f91d9e82
Reduce local caches to 30s ( #274 )
2024-03-15 13:34:52 +00:00
Greg Bergé
4c2625c277
Fix memory cache usage, use the same value of 1 min for non immutable in local cache ( #272 )
2024-03-15 12:37:27 +01:00
Greg Bergé
77b6228677
Fix an issue where we were caching mutable cache entries indefinitely. ( #270 )
2024-03-15 11:22:15 +00:00
Johan Preynat
ff93689d4e
Rollbacking lowercasing paths since it breaks share links... ( #271 )
2024-03-15 12:01:58 +01:00
Steven H
d8ffa5d69c
Fix an issue where parsing an OpenAPI schema without securitySchemas would crash the page. ( #263 )
2024-03-15 10:27:23 +00:00
Samy Pessé
f77b2b6cd7
Fix resolution of content-refs to pages in another space ( #267 )
...
* Fix resolution of content-refs to pages in another space
* Fix title of the content ref
2024-03-15 11:25:23 +01: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
Johan Preynat
e462ac837e
Redirect URLs containing uppercase characters to lowercase ( #266 )
...
* Add tests for normalizeURL
* Redirect requests containing uppercase in pathname to lowercase via normalizeURL
* Fix typo
2024-03-15 11:24:41 +01:00
Taran Vohra
a21673e4c1
use sameSite: none for va cookie ( #265 )
...
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-03-15 15:52:10 +05:30
Johan Preynat
c6537422a4
Use bun 1.0.30 for now in CI ( #269 )
2024-03-15 11:03:37 +01:00
Johan Preynat
654a9e6227
Increase getDocument timeout to 20s to prevent failing while the API is normalizing documents ( #264 )
2024-03-14 20:35:00 +01:00
Steven H
80d45c3ff7
Force light mode when exporting PDF. ( #242 )
2024-03-14 16:40:49 +00: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
Steven H
e5a9d16d7e
Mitigate long loading times on spaces with many files. ( #260 )
2024-03-14 11:41:11 +00:00
Samy Pessé
d0eebceacf
Batch request for getRevisionFile to avoid too many sub-requests ( #259 )
...
* Try approach with batching
* Improve it to support getRevision
* Fix
* Real fix
* Implement skip
* Lint
2024-03-13 18:10:07 +01:00
Steven H
ee3221885c
Remove Sentry trace/transaction ( #258 )
2024-03-13 16:35:18 +00:00
Greg Bergé
76dbf0f0d3
Tag synced block in API ( #256 )
2024-03-13 15:32:52 +01:00