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
Greg Bergé
7d04336b5f
Support synced blocks ( #223 )
2024-03-08 09:16:01 +01:00
Samy Pessé
2742d961ee
Remove feedback toast ( #217 )
2024-03-06 18:27:25 +01:00
Samy Pessé
77527f0a4e
Fallback for Intl.RelativeTimeFormat for old browsers ( #219 )
2024-03-06 17:08:09 +01:00
Steven H
9436549510
Fix an issue where ordered list items were not respecting the start property from the API. ( #218 )
2024-03-06 14:51:19 +00:00
Samy Pessé
203e9103de
Fix crash when displaying invalid Swagger 2.0 block ( #214 )
...
* Ignore errors when converting Swagger 2 to OpenAPI 3
* Apply page-api-block only when a block is actually displayed
* Format
* Try to be more lax
2024-03-06 10:43:11 +01:00
Samy Pessé
d22944419f
Prevent crash when integration associated to a block is no longer installed ( #213 )
...
* Prevent crash when integration is not installed for a block
* Format
2024-03-05 20:24:51 +01:00
Samy Pessé
fdaf722ba1
Align table cells to the middle ( #211 )
2024-03-05 18:17:32 +01:00
Samy Pessé
6c64841325
Use hardlinks instead of Next link for collection dropdown ( #210 )
2024-03-05 18:01:59 +01:00
Samy Pessé
a22bb55715
Do not crash on invalid LaTeX formulas ( #208 )
2024-03-05 16:16:29 +01:00
Samy Pessé
c8935c62c8
Fix code block highlighting crashing when containing \r ( #205 )
2024-03-05 11:15:58 +01:00
Samy Pessé
1e1d202b5a
Improve PDF export for tabs/expandables/api blocks ( #204 )
...
* Fix integrations blocks and text being too long
* Fix size of code blocks
* Open expandable by default on print mode
* Render tabs one after the other
* Adjust colors
* Open all in openapi when printing
* Fix title
* Format
* Fix TS
2024-02-29 19:49:03 +01:00
Samy Pessé
d304c853fb
Fix header logo ( #203 )
2024-02-29 14:46:56 +01:00
Samy Pessé
70c6c9df42
First pass at implementing ContentKit ( #69 )
...
* Start
* Try webframe
* Lint and format
* Move to package
* Continue
* Implement card and cleanup contexts
* Start code blocks
* Start rendering image
* Continue with card
* Start stack
* Start text
* Start modal
* Format
* Continue
* Fix TS errors
* Cleanup
* Make markdown work with server components
* Format
* Add visual test
* Lint and format
* Fix lifecycle
* Implement textinput
* Divider
* Remove console logs
* Remove listSpaceIntegrationsBlocks
2024-02-28 14:46:47 +01:00
Samy Pessé
46b3e461dd
Fix code block highlighting resulting in shared promises ( #195 )
...
* Fix code block highlighting resulting in shared promises
* Lint
* Fix tests
2024-02-28 10:44:47 +01:00
Samy Pessé
76ba5d043e
Use customization.title instead of space.title ( #194 )
...
* Use customization.title instead of space.title
* Format
* Fix TS
2024-02-28 10:26:04 +01:00
Samy Pessé
5e12c0a9be
Ignore errors when tracking page views ( #193 )
2024-02-27 16:27:09 +01:00
Samy Pessé
7ed89fe0fe
Ignore errors with animate calls ( #192 )
2024-02-27 11:48:40 +01:00
Samy Pessé
05de8109bb
Fix crash for some code blocks with annotations ( #190 )
...
* Start
* Add failing test
* Better handle nested tokens
* Run tests in CI
* Comment
* Fix another case
2024-02-27 11:03:51 +01:00
Samy Pessé
41278bad68
Fix responsiveness of API blocks ( #189 )
...
* Add unit test
* Fix responsiveness of API blocks with 2 columns
2024-02-24 17:14:06 +01:00
Samy Pessé
884f5aabb0
Fix text overflowing on long words ( #188 )
...
* Break words when overflowing
* Format and add tests
2024-02-24 17:00:11 +01:00
Samy Pessé
eea1323c17
Don't show aside when there is only one aside ( #187 )
2024-02-24 15:17:53 +01:00
Samy Pessé
341264e879
Fix page not found and main layout ( #186 )
...
* Switch to a global layout
* Format and improve main layout
* Fix TS
* Real fix
* Cleanup
2024-02-23 22:53:02 +01:00
Samy Pessé
56143277b7
Expose window.GitBook to integrations ( #185 )
...
* Expose window.GitBook to integrations
* Simplify
* Oups
* Use basic script to load integrations
* Preload the scripts
2024-02-23 13:32:09 +01:00
Samy Pessé
aeeb9b0305
Hide table header when column titles are empty ( #182 )
...
* Hide table header when column titles are empty
* Add test
* Skip downloading puppeteer for some CI jobs
2024-02-22 13:23:56 +01:00
Samy Pessé
9a25c8c19c
Fix size of cards in table ( #178 )
2024-02-20 19:01:41 +01:00
Samy Pessé
a2d967e98e
Use Joypixels instead of native emojis ( #176 )
...
* fist test
* Use a font
* Cleanup
* Use right fallbacks for fonts
* Lint
* Cleanup and comment
* Add visual test
2024-02-20 13:54:57 +01:00