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
Samy Pessé
cf1f281119
Fix color of the title in the header when theme is custom ( #174 )
2024-02-20 09:14:04 +01:00
Samy Pessé
773fa50d41
Fix H# in aside and link to expandables ( #173 )
...
* Set ID on expandables
* Do not include h3
* Add a hash link
* Format
* Add tests
2024-02-19 20:00:18 +01:00
Samy Pessé
9b285625d9
Hide page footer navigation when disabled in customization ( #171 )
2024-02-19 15:24:43 +01:00
Samy Pessé
1ad9bfd6f3
Fix image size in some cases ( #170 )
2024-02-18 21:28:11 +01:00
Samy Pessé
1a37b17a68
Implement color mark ( #168 )
...
* Define text and background colors
* Handle dark mode
* Add content tests
2024-02-18 00:21:50 +01:00
Samy Pessé
c5455d4498
Display page emoji in content-ref blocks ( #167 )
2024-02-17 21:23:22 +01:00
Samy Pessé
a82c548f42
Fix image size and alignment ( #166 )
...
* Fix image alignment
* Fix size of inline image
* Correctly size images
2024-02-16 18:58:59 +01:00
Sebastian Graz
eead1dba66
add heading hash order conditional ( #165 )
...
* add heading hash order conditional
* v1 api color pass
* Delete .env
* Format
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-02-16 10:29:18 +01:00
Samy Pessé
fa734fb217
Fix border radius for tabs and code-blocks when using straight corners ( #163 )
...
* Fix border radius for tabs and code-blocks when using straight corners
* Format
2024-02-15 15:37:18 +01:00
Samy Pessé
46a1b58d01
Fix responsiveness of footer ( #162 )
2024-02-15 12:54:29 +01:00
Sebastian Graz
12520ccede
Style sprint 4 ( #160 )
...
* Commit
* make light base lighter, improve table legiblity
* improve hover leg on toc
* improve tabs leg
* improve tab design
* improve expandable leg
* slight global color tweak
* hide debugger
2024-02-15 11:50:04 +01:00
Samy Pessé
ebdec4966b
Use absolute URLs for logos ( #161 )
2024-02-15 10:06:05 +01:00
Samy Pessé
0b620640fa
Fix hiding the table of content when disabled in page options ( #159 )
...
* Hide TOC when page is configured to hide it
* Improve layout in different cases
2024-02-14 17:19:07 +01:00