Commit Graph

  • d99b453bc4 Fix issue where published content crashes when localstorage is disabled (#2371) spastorelli 2024-07-10 14:56:21 +02:00
  • aaf5793cb7 Use schema.example if defined, even if value is falsy (#2370) Samy Pessé 2024-07-05 16:34:48 +02:00
  • 9b1762d2ab Fix invalid api response from carbon (#2369) Samy Pessé 2024-07-05 15:55:35 +02:00
  • 8d38d000fd Fix RND-4344 (#2368) Samy Pessé 2024-07-04 17:04:35 +02:00
  • 4cf9cdd56d Fix ToC not re-rendering when linking to a variant from SearchResults (#2366) Scott Cazan 2024-07-03 12:22:08 +02:00
  • 39406bbf54 Use published URL for site when displaying results for a Site space (#2364) Scott Cazan 2024-07-02 16:14:39 +02:00
  • 9c5c1e5b68 Show sources with no answer (#2363) Scott Cazan 2024-06-28 15:25:01 +02:00
  • 6929b0b98b Prevent SVG images to be resized and rendered on the /~gitbook/image endpoint (#2362) Johan Preynat 2024-06-27 12:24:46 +02:00
  • 7c26d491b1 Fix passing the correct nonce for iframely script and preload it (#2360) Johan Preynat 2024-06-25 17:11:19 +02:00
  • 97035a054a Tree shake unused code for Sentry (#2359) Johan Preynat 2024-06-25 15:55:48 +02:00
  • db45c6d773 Rework context to actually share memory cache between middleware and handlers for all requests (#2358) Johan Preynat 2024-06-25 14:30:38 +02:00
  • e3f5f81e62 Use fnv1a instead of SHA256 to create images signatures (#2353) Johan Preynat 2024-06-24 13:31:18 +02:00
  • c773f8b5e7 Bump next@14.2.4 bump-next Johan Preynat 2024-06-24 12:07:31 +02:00
  • f5df40e17d Use a singleton to store the memory cache in an internal WeakMap for the current request (#2356) Johan Preynat 2024-06-24 11:13:03 +02:00
  • e13c76efed Set preconnect links to main domains on render (#2354) Johan Preynat 2024-06-21 17:02:02 +02:00
  • 4a11d8d9eb Share memory cache between middleware and request handler (#2347) Johan Preynat 2024-06-21 11:13:06 +02:00
  • 5c9335b5ff Forward content resolution API response tags to local caches forward-content-resolution-tags Johan Preynat 2024-06-21 10:36:21 +02:00
  • 009ed8cc6e Call trackViewInSiteById API endpoint when tracking view for sites (#2350) spastorelli 2024-06-21 10:01:35 +02:00
  • 106cbbd987 Add support for examples in OpenAPI block (#2314) vibhanshub 2024-06-20 16:02:58 +05:30
  • 56e5c3c3f8 Parse cache tags returned from the API set them in response (#2349) Johan Preynat 2024-06-20 10:09:02 +02:00
  • 1dc3234003 Fix page metadata title (#2348) Taran Vohra 2024-06-18 20:52:12 +05:30
  • 22dc0d4ff5 Fix passing revalidateBefore option when calling cacheResponse to ensure these go through background revalidation (#2342) Johan Preynat 2024-06-17 17:16:12 +02:00
  • 3a4caf062c Add getContentTitle to properly render the title for sites & legacy published content (#2343) Taran Vohra 2024-06-17 20:28:21 +05:30
  • 8ad0657159 Use site's share key as context while fetching site spaces (#2341) Taran Vohra 2024-06-14 20:59:05 +05:30
  • d8a4ecd0c6 Pass site url as context to listSiteSpaces API (#2339) Taran Vohra 2024-06-14 10:40:18 +05:30
  • 65c7968438 Add German Locale support (#2317) David Burghoff 2024-06-13 15:04:49 +02:00
  • 3914f11150 Add Brazilian Portuguese translation (#2285) Rodrigo Castro 2024-06-13 13:54:47 +01:00
  • d363908297 Add contributors to readme, bump API (#2333) Addison 2024-06-12 15:24:18 +02:00
  • 414556ac7a Remove cache client-side (#2337) Greg Bergé 2024-06-10 11:17:48 +02:00
  • e30c249498 Standalone output for next docker Samy Pessé 2024-06-09 21:01:57 +02:00
  • 5288f76ded Define top-level dependencies Samy Pessé 2024-06-09 20:39:03 +02:00
  • c768e9a90a Add another space to ignore list whilst we debug issues. (#2334) Steven H 2024-05-28 19:02:07 +01:00
  • 553f1f228f Bump @gitbook/api to 0.48.0 (#2328) Taran Vohra 2024-05-24 20:10:25 +05:30
  • 30986528a7 bump @gitbook/api to 0.47 (#2327) Taran Vohra 2024-05-24 19:07:54 +05:30
  • c933c8f1ac Allow debugging VA on localhost by removing the redirect. stevenh/allow-debugging-VA Steven Hall 2024-05-17 10:36:03 +01:00
  • c70c2ddad8 Bump next-on-pages version to fix SSRF attack. (#2319) Steven H 2024-05-16 17:05:58 +01:00
  • efadeec3f0 Stricter port check for Image Optimization API stevenh/stricter-port-check-for-images Steven Hall 2024-05-16 11:07:01 +01:00
  • ee26206cdd bump sentry to latest bump-sentry-8 Scott Cazan 2024-05-15 16:35:05 +02:00
  • cf74d00758 chore: update scalar client (#2316) Marc Laventure 2024-05-14 11:52:09 -07:00
  • 224269c271 See if assetPrefix is the problem stevenh/rnd-3861-ssrf-possible-with-url-_nextimage-2 Steven Hall 2024-05-14 17:47:33 +01:00
  • b083894407 Test non-wildcard Steven Hall 2024-05-14 17:28:11 +01:00
  • 285841f8ea Fix regex Steven Hall 2024-05-14 17:20:58 +01:00
  • 1af6488220 Test without sentry Steven Hall 2024-05-14 17:15:44 +01:00
  • 87490a2bd1 Fixing SSRF for Next Image (again) Steven Hall 2024-05-14 17:08:21 +01:00
  • 0fac399b3f Add lockfile example-openapi-block Vib Bhardwaj 2024-05-14 17:18:41 +02:00
  • 1d8875416b Remove console log Vib Bhardwaj 2024-05-14 17:13:25 +02:00
  • 24a889cf50 Add support for examples in the OpenAPI block Vib Bhardwaj 2024-05-14 17:12:18 +02:00
  • c2256bfd14 Fix an issue where attackers could use the Nextjs image endpoint to redirect to any URL. (#2312) Steven H 2024-05-14 11:34:33 +01:00
  • edb68df499 Apply fix from marclave stevenh/update-scalar-client Steven Hall 2024-05-14 10:59:58 +01:00
  • 4cb2ae91b0 Merge remote-tracking branch 'origin/main' into stevenh/update-scalar-client Steven Hall 2024-05-14 10:58:57 +01:00
  • 0f9a4f4aa7 Fix an issue where attackers could use the Nextjs image endpoint to redirect to any URL. stevenh/rnd-3861-ssrf-possible-with-url-_nextimage Steven Hall 2024-05-14 10:56:12 +01:00
  • 5d73a0f062 chore: fix some typos in README.md (#2290) fuyangpengqi 2024-05-13 22:22:07 +08:00
  • 8f5f6c61f8 Setup the pull_request workflow on actions (#2311) Samy Pessé 2024-05-13 16:10:15 +02:00
  • 9a86965ba1 Fix VA cookie to be only set if basePaths match (#2300) Taran Vohra 2024-05-06 21:02:48 +05:30
  • c8d5f825fc Update GitBook trademark (#2305) Scott Cazan 2024-05-02 12:18:02 +02:00
  • 9ed7dc24db feat: update scalar deps Steven Hall 2024-05-01 15:22:28 +01:00
  • 5db3cbc2ce Render Embed blocks that can be handled by an integration in the Space. (#2302) Steven H 2024-04-25 15:25:53 +01:00
  • f8d148bec4 Use plain code highlighting on some spaces that are currently crashing. (#2301) Steven H 2024-04-25 09:50:08 +01:00
  • 198dd9f158 Investigate an issue where images with 127.0.0.1 in the URL are not correctly resolved. (#2298) Steven H 2024-04-19 17:21:22 +01:00
  • 2b63bc158a Improve rendering of File column in tables. (#2297) Steven H 2024-04-19 16:58:46 +01:00
  • 4a8097d968 Use site space context from token in multi-id mode when provided (#2295) spastorelli 2024-04-19 16:51:12 +02:00
  • 0f7ac7ca08 Merge branch 'main' into fix-iframely-csp fix-iframely-csp Samy Pessé 2024-04-18 08:39:09 -07:00
  • f1440ca7ef Fix preview crashing when token do not include site data (#2292) spastorelli 2024-04-18 17:36:16 +02:00
  • 119c22af11 Pass a nonce to the script for cdn.iframe.ly/embed.js Samy Pessé 2024-04-18 08:25:11 -07:00
  • 7ef2eeed13 fix site cache tag to exclude org id (#2291) Taran Vohra 2024-04-18 20:28:39 +05:30
  • 4005895337 Fix previews for sites in multi-id mode (#2289) Taran Vohra 2024-04-18 18:19:52 +05:30
  • bf450e5cc7 Support GitHub-flavoured Markdown when parsing OpenAPI descriptions. (#2288) Steven H 2024-04-17 14:21:07 +01:00
  • 4c3b88ce30 Disable memcache stevenh/rnd-3599-toothlessdevgitbookio-crashing-in-production Steven Hall 2024-04-17 13:27:23 +01:00
  • a2fc95be6c Test log Steven Hall 2024-04-17 13:15:15 +01:00
  • e73be147da Fix type Steven Hall 2024-04-17 13:07:03 +01:00
  • b64f5a6551 Fully dynamic imports of languages Steven Hall 2024-04-17 13:02:03 +01:00
  • 4c12722c0a Use appropriate customization settings for sites (#2279) Taran Vohra 2024-04-17 17:28:14 +05:30
  • ac124a7ea5 Add e2e tests for site variants (#2286) Taran Vohra 2024-04-16 20:59:58 +05:30
  • 1de25056fa Fix space dropdown showing for single variant sites and update E2E tests (#2284) spastorelli 2024-04-16 15:29:15 +02:00
  • bf3d2032ab Avoid crashing Cloudflare Worker when syntax highlighting too many lines of code. (#2283) Steven H 2024-04-15 11:57:22 +01:00
  • bfb2342ab3 Add support for integration inject script for sites (#2277) spastorelli 2024-04-11 10:28:24 +02:00
  • 76cbc3c10f Print signature and url when having error with image resizing (#2275) Samy Pessé 2024-04-09 10:22:36 +01:00
  • c80c76d50d Override site's spaces published URLs (#2274) Taran Vohra 2024-04-09 09:59:25 +05:30
  • 263c89391e Add HSTS and other security headers (#2271) Johan Preynat 2024-04-08 19:44:57 +02:00
  • ebf742e81a Use a sampleRate of 0.1 for edge/node runtimes (#2273) Samy Pessé 2024-04-08 14:05:01 +01:00
  • 685317f508 Fix full-width for code-blocks and embeds (#2272) Samy Pessé 2024-04-08 13:45:42 +01:00
  • 0c224861e3 Sites support (#2262) Taran Vohra 2024-04-08 17:06:22 +05:30
  • 7c0cd40a2d type' stevenh/kv-debugging Steven Hall 2024-04-05 13:54:40 +02:00
  • 5b30483b64 Logs Steven Hall 2024-04-05 13:50:00 +02:00
  • e1fdce020f log scottcazan/cache-docs-typo Steven Hall 2024-04-04 16:22:59 +02:00
  • 84e01f255e small typo Scott Cazan 2024-04-04 15:47:11 +02:00
  • a007604ab1 Bump caches for documents. (#2265) Steven H 2024-04-04 14:09:43 +02:00
  • 3076e96061 Fix an issue where OpenAPI blocks could not be fetched. (#2267) Steven H 2024-04-04 12:28:30 +02:00
  • a3741dd65f Bump caches for revisions. (#2263) Steven H 2024-04-04 11:15:29 +02:00
  • 07085a5b89 Set tracking prompt cookie age to 365days instead of a session cookie (#2266) Taran Vohra 2024-04-04 14:39:27 +05:30
  • 9c918253af Bump caches for files. stevenh/rnd-3492-adobe-docs-not-loading-an-error-occurredthe-url-is-2 Steven Hall 2024-04-03 23:15:11 +02:00
  • 22869e01e3 Bump caches for revisions. Steven Hall 2024-04-03 23:13:35 +02:00
  • 36600bc0c7 Fix styling for cards when no cover is defined (#2261) Samy Pessé 2024-04-02 23:10:59 +01:00
  • 5b7488b066 Handle ?theme query string to force theme in preview mode (#2260) Samy Pessé 2024-04-02 12:55:27 +01:00
  • 86088dea43 Merge remote-tracking branch 'origin/main' into stevenh/synced-blocks-new-api stevenh/synced-blocks-new-api Steven Hall 2024-04-02 10:39:20 +01:00
  • c1ef7f2782 Fix display of parameter's description in OpenAPI block (#2258) Samy Pessé 2024-04-01 23:35:59 +01:00
  • f26ab0cf80 Remove mask on page cover (#2257) Samy Pessé 2024-04-01 23:21:21 +01:00
  • 7c570a008e Use a sample rate of 10% for Sentry errors (#2256) Samy Pessé 2024-04-01 22:07:43 +01:00
  • 1d71d85ed7 Don't test redirect on path that are longer than 512 (#2255) Samy Pessé 2024-04-01 01:49:48 +01:00
  • 4f728c0137 Fix parsing of Swagger 2.0 when it can be patched (#2254) Samy Pessé 2024-03-31 19:13:34 +01:00