Skip to content

Commit

Permalink
fix: Here we go!
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Jun 1, 2022
1 parent a475371 commit 4f38da4
Show file tree
Hide file tree
Showing 153 changed files with 2,725 additions and 17,526 deletions.
8 changes: 0 additions & 8 deletions docs/.gitignore

This file was deleted.

30 changes: 0 additions & 30 deletions docs/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/src/pages/docs/api.md → docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const {
scrollToOffset,
} = useVirtual({
size,
parentRef,
getScrollElement: () => parentRef.current
estimateSize,
overscan,
horizontal,
Expand Down
54 changes: 54 additions & 0 deletions docs/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"docSearch": {
"appId": "",
"indexName": "",
"apiKey": ""
},
"menu": [
{
"label": "Adapters",
"children": [
{ "label": "React Virtual", "to": "adapters/react-virtual" },
{ "label": "Solid Virtual", "to": "adapters/solid-virtual" },
{ "label": "Svelte Virtual", "to": "adapters/svelte-virtual" },
{ "label": "Vue Virtual", "to": "adapters/vue-virtual" }
]
},
{
"label": "Guide",
"children": [
{ "label": "Introduction", "to": "guide/00-introduction" },
{ "label": "Installation", "to": "guide/01-installation" },
{ "label": "Virtualization", "to": "guide/02-virtualization" }
]
},
{
"label": "Core APIs",
"children": [{ "label": "Virtualizer", "to": "api/core/table" }]
},
{
"label": "React Examples",
"children": [
{ "to": "examples/react/fixed", "label": "Fixed" },
{ "to": "examples/react/variable", "label": "Variable" },
{ "to": "examples/react/dynamic", "label": "Dynamic" },
{ "to": "examples/react/padding", "label": "Padding" },
{ "to": "examples/react/sticky", "label": "Sticky" },
{ "to": "examples/react/infinite-scroll", "label": "Infinite Scroll" },
{ "to": "examples/react/smooth-scroll", "label": "Smooth Scroll" }
]
},
{
"label": "Solid Examples",
"children": [{ "to": "", "label": "Coming Soon!" }]
},
{
"label": "Svelte Examples",
"children": [{ "to": "", "label": "Coming Soon!" }]
},
{
"label": "Vue Examples",
"children": [{ "to": "", "label": "Coming Soon!" }]
}
]
}
File renamed without changes.
5 changes: 0 additions & 5 deletions docs/jsconfig.json

This file was deleted.

106 changes: 0 additions & 106 deletions docs/next.config.js

This file was deleted.

8 changes: 4 additions & 4 deletions docs/src/pages/docs/overview.md → docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function RowVirtualizerFixed() {
const parentRef = React.useRef()

const rowVirtualizer = useVirtual({
size: 10000,
parentRef,
count: 10000,
getScrollElement: () => parentRef.current
estimateSize: React.useCallback(() => 35, []),
})

Expand All @@ -37,12 +37,12 @@ function RowVirtualizerFixed() {
<div
className="ListInner"
style={{
height: `${rowVirtualizer.totalSize}px`,
height: `${rowVirtualizer.getTotalSize()}px`,
width: '100%',
position: 'relative',
}}
>
{rowVirtualizer.virtualItems.map(virtualRow => (
{rowVirtualizer.getVirtualItems().map((virtualRow) => (
<div
key={virtualRow.index}
className={virtualRow.index % 2 ? 'ListItemOdd' : 'ListItemEven'}
Expand Down
83 changes: 0 additions & 83 deletions docs/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions docs/postcss.config.js

This file was deleted.

2 changes: 0 additions & 2 deletions docs/public/robots.txt

This file was deleted.

10 changes: 0 additions & 10 deletions docs/src/components/ArrowRight.js

This file was deleted.

12 changes: 0 additions & 12 deletions docs/src/components/Banner.js

This file was deleted.

Loading

0 comments on commit 4f38da4

Please sign in to comment.