Samy Pessé
28915e906f
Fix invalid colors generated when deployed ( #17 )
...
* Try logging
* Try
* Try
* Fix?
* Format
* Remove log
2023-11-28 18:04:26 +01:00
Samy Pessé
02715436e7
Accept an X-GitBook-Api header to configure the API endpoint ( #14 )
...
* Accept a x-gitbook-api to use as the API endpoint
* Format
2023-11-27 19:00:31 +01:00
Samy Pessé
808f10d428
Namespace cache and prepare handling staging requests ( #13 )
...
* Implement UPSTASH_REDIS_NAMESPACE
* Accept X-GitBook-Host and switch to multi mode when present
* Format
2023-11-27 15:50:41 +01:00
Samy Pessé
315954dffc
Use the new document API to fetch page document ( #12 )
...
* Use new API
* Remove getPageDocument
* Format
2023-11-27 13:57:10 +01:00
Samy Pessé
fbd17713fe
Use newer APIs to optimize data loading and fix resolution of links in the TOC ( #11 )
...
* Update api@0.16 .0
* Fetch pages and files independantly
* Correctly resolve content ref in TOC
* Format
* Format
* Cleanup
2023-11-26 23:46:51 +01:00
Samy Pessé
84fd934fe1
Try custom cache ( #9 )
...
* Try custom cache
* Fix redis cache
* Comment
2023-11-21 21:19:08 +01:00
Samy Pessé
a4ec3c8c53
Refactor routing logic for production to support multi-tenancy ( #7 )
...
* Move back to use the middleware as the main logic
* Fix link
* Improve lookup to support docs.gitbook.com.localhost:3000
* Make it work with dev url in prod for now
* Start lookup with API
* Continue
* Prepare for cloudflare build
* Dummy commit
* Try to abort requests
* Support x-forwarded-host
* Test multiple modes
* Add logs
* Add logs
* Update next
* Default to multi-path
* Switch back to nodejs runtime
* Adapt to staging API
* Make sure to return an absolute url for a redirect
* Update api client and try single request
* Try again with concurrent lookup
2023-11-21 16:53:02 +01:00
Samy Pessé
88795e35d9
Update @gitbook/api 0.14.0 ( #6 )
...
* Simplify types
* More fixes
2023-11-15 13:46:30 +01:00
Samy Pessé
257f7cd62a
Add demo ( #4 )
2023-11-14 18:11:32 +01:00
Samy Pessé
77f769c9c2
Fix some TS issues and group import during lint ( #2 )
...
* Start fixing TS errors
* Continue
* Also add dom.iterable
* Group header and lint
2023-11-12 21:17:18 +01:00
Samy Pessé
61718847b0
Update typing for customization and use latest version of next.js
2023-11-09 19:10:20 +01:00
Samy Pessé
1d44267958
Fix icons
2023-11-04 23:40:17 +01:00
Samy Pessé
f190139d5d
Test fr
2023-11-04 23:37:55 +01:00
Samy Pessé
cf54430651
Format
2023-11-04 23:35:45 +01:00
Samy Pessé
d786e1332f
Test emoji
2023-11-04 23:35:39 +01:00
Samy Pessé
9ed5dc490e
Improve rendering of footer links
2023-11-04 23:30:17 +01:00
Samy Pessé
926fa0f52c
Improve rendering of images
2023-11-04 23:24:18 +01:00
Samy Pessé
a7c323a023
Start footer
2023-11-04 18:51:53 +01:00
Samy Pessé
e5d94dbd23
Add support for emoji in icon
2023-11-04 18:32:05 +01:00
Samy Pessé
208dca6bab
Start supporting collections
2023-11-04 15:18:30 +01:00
Samy Pessé
f45735798a
Start header links
2023-11-04 00:18:58 -04:00
Samy Pessé
abb3ed132a
Start theming header
2023-11-03 22:58:04 -04:00
Samy Pessé
47cc664b4f
Fetch customization settings
2023-11-03 21:36:40 -04:00
Samy Pessé
df84dda36a
Implement block content ref
2023-11-03 21:23:41 -04:00
Samy Pessé
1e389fca86
Use cache and fix crash in TOC
2023-11-03 21:03:38 -04:00
Samy Pessé
2d4faaf396
Add link to generate links in PDF mode
2023-11-03 16:59:37 -04:00
Samy Pessé
80e4d7186c
Better type and implement start of cards
2023-10-30 15:45:31 -04:00
Samy Pessé
b5b7090bb9
Start translations
2023-10-29 16:29:59 -04:00
Samy Pessé
af09b108d1
Add button for headings
2023-10-29 15:16:35 -04:00
Samy Pessé
e62f91dc0d
Start dark mode
2023-10-29 10:11:33 -04:00
Samy Pessé
cca37bc9e8
Start rendering images
2023-10-29 09:05:48 -04:00
Samy Pessé
873570543f
Start expandable
2023-10-24 22:14:20 +02:00
Samy Pessé
dd0e6db171
Start tabs
2023-10-24 22:07:19 +02:00
Samy Pessé
7295d25e4e
Start aside with sections
2023-10-24 21:42:45 +02:00
Samy Pessé
e1372b0ede
Make layout great!
2023-10-24 20:57:00 +02:00
Samy Pessé
e675454117
Add icons and improve toggeable buttons in the toc
2023-10-24 19:12:32 +02:00
Samy Pessé
cde014a355
Start prev/next navigation
2023-10-24 18:48:37 +02:00
Samy Pessé
6786f64c9f
Fix page link resolution
2023-10-24 17:45:13 +02:00
Samy Pessé
3443ed3e82
Start link and switch to tailwind-merge
2023-10-24 17:42:54 +02:00
Samy Pessé
02bbb39765
Simplify and generate og:image for each page
2023-10-23 21:32:29 +02:00
Samy Pessé
0b6910951d
Start
2023-10-22 23:48:31 +02:00