Samy Pessé
da215347f4
Add aria-busy to loading components ( #95 )
2024-01-20 18:34:52 +01:00
Samy Pessé
ec075af455
Store the build version in the generator meta tag ( #104 )
...
* Store the build version in the generator meta tag
* Format
* Send header with version
* Add header on 404 as well
2024-01-20 12:43:59 +01:00
Samy Pessé
1f7530aaf8
Set a user-agent for the API ( #103 )
...
* Pass user-agent and allow configuring it with envs
* Format
2024-01-19 14:55:04 +01:00
Samy Pessé
8c44653292
Add back last modified date in the footer of the page ( #102 )
2024-01-18 23:13:49 +01:00
Samy Pessé
a6f7a71af9
Fix right click to save images ( #100 )
2024-01-17 12:19:33 +01:00
Samy Pessé
b16636c180
Only show table progress on browsers that supports it ( #99 )
2024-01-17 12:18:31 +01:00
Samy Pessé
64a9e27ca7
Resolve revision and change request URL correctly ( #98 )
...
* Add tests for getURLLookupAlternatives
* Match correctly revisions and changes URLs
* Use revision and changerequets ID passed from lookup
* Prevent indexing these urls
* Start
* Start rendering toolbar
* Update api client
* Format
* Format
* Mock resolve of snippet
* Add test for revision
2024-01-15 09:42:38 +01:00
Samy Pessé
3c44eb4f80
Fix resolving redirect by encoding path ( #97 )
2024-01-12 21:37:14 +01:00
Samy Pessé
6e5208d3ae
Fix handling of special chars in the URL ( #96 )
...
* Fix handling of special chars in the URL
* Add log
* More logs
* Test encoding
* Cleanup
2024-01-12 21:18:23 +01:00
Samy Pessé
3c2dbb7b10
Fix crash on invalid selectors ( #94 )
2024-01-12 17:45:27 +01:00
Samy Pessé
59a8e74e39
Remove useless console.log ( #93 )
2024-01-12 16:55:09 +01:00
Samy Pessé
2a1e491fee
Show loading indicator when loading first results in search ( #92 )
...
* Show loading indicator when loading first results in search
* Fornat
* Format
2024-01-12 15:40:46 +01:00
Samy Pessé
7d60c75dd8
Allow seo indexation of x-gitbook-search-indexation ( #91 )
2024-01-11 18:33:46 +01:00
Samy Pessé
f4ac246a09
Redirect to original image when cloudflare resize is returning an error ( #90 )
2024-01-09 14:05:32 +01:00
Samy Pessé
e7c184cc99
Search across all spaces in a collection ( #89 )
...
* Start buttons
* Run the search globally
* Improve look and feel
* Improve text
* Format
* Fix TS
2024-01-08 19:23:12 +01:00
Samy Pessé
28be5aaeca
Fix resolution of URL for collection URLs ( #88 )
2024-01-07 23:19:05 +01:00
Samy Pessé
5f6ca7af56
Hide trademark when disable in customization settings ( #87 )
...
* Hide trademark when disabled in customization
* Fix padding in toc
* Run upload of artifacts when failed
2024-01-07 13:55:01 +01:00
Samy Pessé
46a726f3a8
Fix visual tests being unreliable ( #86 )
...
* Test
* Upload failed tests as artifacts
* Format
2024-01-06 19:11:30 +01:00
Samy Pessé
a1fca33947
Switch to <a> instead of next Link for aside ( #85 )
2024-01-05 17:51:10 +01:00
Sebastian Graz
ccfcaa590b
Style PR ( #84 )
...
* fixes for table values
* color tweaks rating
* inc legibility on aside active
* add tab separators
* fix hint icon
* fix header colors & remove custom balance
* Better mobile burger colors
* remove border from logofallback img
* style divider dark mode
* compact header + file + expandable hover + mt mobile nav
* testing file types
2024-01-04 18:43:37 +01:00
Samy Pessé
87e67866a4
Fix condition to render document being reversed ( #83 )
...
* Fix condition to render document
* Format
2024-01-02 18:31:15 +01:00
Samy Pessé
0c80f96579
Show grid of sub-pages when page is empty ( #82 )
...
* Add a blankslate when the page has no document
* Format
2024-01-02 17:55:43 +01:00
Samy Pessé
22eeaca92c
Add support for all column types ( #81 )
...
* Support files and content ref
* Display all column types
* Pass width
* Format
2024-01-02 10:43:52 +01:00
Sebastian Graz
66ba1c244f
Styling PR ( #80 )
...
* add BR to TOC links
* fix sticky TOC padding
* increase searchbar contrast
* align toc and aside
* copy on hover only
* nicer tabs
* more dynamic table sizes
* dynamic expandable treatment
* skeleton v1
* modal spacing + close modal on source click
* fix page link icon TOC
* add PDF separate spacing
* fix TW Intellisense + further styling of loadingpane
* properly style skeletons
* better loading panels, AI search enhancement while waiting
* Commit
* Use the same state for answer
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-01-02 09:09:01 +01:00
Samy Pessé
0668d8a287
Track page view ( #42 )
...
* Track page view using a server action
* Track the page view
* Format
* Track it once
* Support no page an pass language
* Update API client
2023-12-29 15:28:49 +01:00
Samy Pessé
2fdf3e3838
Progressive loading ( #79 )
...
* Suspense boundary and progressive loading on blocks
* Start refactoring to better leverage app router
* Use skeleton for page layout
* Improve dynamic toc
* Switch page full width to be client side only
* Format
* Remove old PageLoading
* Fix first page not marked as active
* Close search when clicking search link
2023-12-28 14:38:15 +01:00
Samy Pessé
1c2d68c518
Fix handle of multi-id and improve PDF UI in that case ( #78 )
...
* Fix handling urls with direct space ID
* Preserve all search params when navigating in the PDF UI
* Show a trademark on the pdf page
* Generate proper trademark url
* Format
* Cleanup
2023-12-27 16:32:59 +01:00
Samy Pessé
c8358feeeb
Support an "api" query parameter in mode multi-id ( #77 )
2023-12-27 14:15:47 +01:00
Samy Pessé
6cf73e4962
Support URL path to directly access a space by its ID (even private) ( #76 )
...
* Handle URLs /~space/:id
* Validate permissions in multi-id mode
2023-12-27 13:46:35 +01:00
Samy Pessé
67b20138dd
Show loading, fix z-index and prevent print from opening ( #75 )
2023-12-27 11:37:44 +01:00
Samy Pessé
83f4cb5968
Add link to PDF export in the page and improve PDF UI ( #73 )
...
* Add buttons to pdf page
* Present as page
* Fix break
* Show active page
* Add description
* Make buttons work
* Handle back link
* Show alert when reaching maximum
* Format
2023-12-26 23:14:46 +01:00
Samy Pessé
24f5e73bbe
PDF export ( #72 )
...
* Start
* Improve generation
* Improve style
* Lint
* Use tilde instead of dot in the url
* Improve style
* Fix page group
* Format
* Add visual tests for PDF
2023-12-26 18:36:44 +01:00
Sebastian Graz
1fde857aee
Stylepr ( #60 )
...
* hint leading
* first attempt at themed ui
* v2 theme ui
* fix feedback
* fix hint css override
* cookie
* more sensible scroll logic
* Add better heading margin
* inline code styling
* fix copy button, list vis, next/prev mobile
* add shortcut to search button
* search button, toc
* add toc style
* fix toc hover
* safari fix
* simplify search, swagger, next/prev
* add mask to page cover
* codeblock fix
* global defaults
* improve mobile cards
* modal changes
* change mask intensity dark mode, fix table progress zindex
* a target
* selection, footer, search icon
* fix card resp
* fix multi col images
* fix aside
* card item pos
* search vis
* reuse same header for mobile
* fix header and search legibility
* format
* Sidebar changes
* remove linear gradient light mode page cover
2023-12-26 14:38:54 +01:00
Samy Pessé
4d38479a0f
Render inline images ( #71 )
...
* Implement inline images
* Format
2023-12-26 12:22:19 +01:00
Samy Pessé
db4d4a3408
Format ( #70 )
2023-12-26 11:20:08 +01:00
Samy Pessé
7267398d5b
Use caching for search/ask and rich content for answers ( #68 )
...
* Use caching for search/ask
* Refactor DocumentView to be ready to be used for other stuff
* Start logic to use document
* Fix comment
* Remove log
* Format and typecheck
2023-12-25 22:59:14 +01:00
Samy Pessé
2d4c9880fd
Fix last accessibility issue in cookies modal and try CI to monitor regressions ( #67 )
...
* Add aria-label to cookies modal
* Test lighthouse
* Remove lighthouse as it doesn't work in bun
https://github.com/oven-sh/bun/issues/4958
* Translate everything in search
2023-12-24 17:44:36 +01:00
Samy Pessé
231654e43b
Improve accessibility of the cookie banner ( #66 )
2023-12-24 16:30:34 +01:00
Samy Pessé
bfdf6640c8
Add "Edit on GitHub" in aside ( #58 )
...
* Start showing link in the aside
* Show link in aside
* Add icon next to link
* Fix padding
2023-12-24 16:04:25 +01:00
Samy Pessé
528a06c65a
Improve scroll and aside ( #64 )
...
* Scroll to the right location and show active section in aside
* Format
2023-12-24 16:02:34 +01:00
Samy Pessé
f7cb622863
Render inline emojis as native emojis ( #65 )
2023-12-24 14:53:22 +01:00
Samy Pessé
6f6dde1aa4
Update tailwind to 3.4 ( #63 )
...
* Update tailwind to 3.4.0
* Update tailwind-merge
* Fix responsive for cards in the footer
* Make card responsive
* Lint
2023-12-24 01:26:51 +01:00
Samy Pessé
3188795a52
Improve not found error ( #62 )
...
* Implement error page
* Improve color
* Lint
* Add padding for mobile
2023-12-23 23:25:01 +01:00
Samy Pessé
e681aa6ba1
Use card for embed and display caption ( #61 )
...
* Use card for embed and display caption
* Fix warnings in icon
2023-12-23 22:49:28 +01:00
Samy Pessé
215c724a9b
Use Cloudflare Cache API as one of the cache backend ( #59 )
...
* Implement cache for cloudflare
* Start using it
* Fix cache use
* Generate proper URLs
* Comment
* Fix cache always resulting in cache miss
* Log
* Correctly cancel redis
* Write to fallback caches
* Disable memory cache
* Re-enable memory cache
* Try patching
* Use it
* Also patch package.json
* Fix TS errors
* Remove yarn.lock
* Fix local error
* Lint
* Try bunx to fix vercel build
* Update lockfile
* Add back revalidating
2023-12-22 11:05:14 +01:00
Sebastian Graz
c1d3f990f1
Styling PR ( #56 )
...
* v1 loading state
* refactor primitives
* fix order
* fix toast styling
* v1 rating
* transition on page spinner
* visual fixes
2023-12-21 16:51:36 +01:00
Samy Pessé
6a62f42521
Lazy load KaTeX CSS ( #57 )
...
* First attempt at lazy loading it
* New approach
* Format
* Remove logs
2023-12-21 15:11:06 +01:00
Samy Pessé
e81d65dc2e
Fix typescript error
2023-12-21 12:38:09 +01:00
Sebastian Graz
c5f75116d3
Commit ( #45 )
2023-12-21 12:27:12 +01:00
Samy Pessé
c18ec51a4a
Experiment with setting Cloudflare-CDN-Cache-Control to force caching
2023-12-21 10:24:11 +01:00