Skip to content

Commit

Permalink
website updates and changing font to preload
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Aug 6, 2023
1 parent f7dc4a1 commit 95293af
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
10 changes: 7 additions & 3 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ The documentation website has been built using [Docusaurus 2](https://docusaurus
# Install node dependencies:
$ npm install
# build the website:
$ npm run build
# Install node dependencies:
$ npm install
# serve and automatically build the website:
# automatically build and serve:
$ npm run start
# build and serve for production:
$ npm run build
$ npm run serve
```

## :heart: Contributions
Expand Down
4 changes: 0 additions & 4 deletions website/docs/examples/files.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ Active Table recognises this module via the `window` element as `window.XLSX`. H
If you are using a dependancy manager such as npm, you can dynamically import the module and assign it to window.XLSX:

```
import * as xlsx from "xlsx";
import("xlsx").then((module) => {
window.XLSX = module;
});
Expand All @@ -36,8 +34,6 @@ Active Table recognises this module via the `window` element as `window.XLSX`. H
window.XLSX: <br />

```
import * as xlsx from "xlsx";
import("https://cdn.sheetjs.com/xlsx-0.19.3/package/dist/xlsx.full.min.js").then((module) => {
window.XLSX = module;
});
Expand Down
9 changes: 9 additions & 0 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ const config = {
'https://raw.githubusercontent.com/OvidijusParsiunas/active-table/main/assets/social-media/social-media.png',
},
{name: 'twitter:title', content: 'Active Table'},
{name: 'twitter:card', content: 'summary_large_image'},
{name: 'twitter:site', content: '@activetable'},
{name: 'twitter:description', content: 'Framework agnostic table component for editable data experience'},
{
name: 'twitter:image',
Expand Down Expand Up @@ -118,6 +120,13 @@ const config = {
indexName: 'activetable',
},
}),
stylesheets: [
{
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap',
rel: 'preload',
as: 'stylesheet',
},
],
};

module.exports = config;
4 changes: 2 additions & 2 deletions website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import ExploreButton from './exploreButton/exploreButton';
import SmallScreen from './smallScreen/smallScreen';
import FadeInContent from './utils/fadeInContent';
import StartPanel from './startPanel/startPanel';
import PreloadFont from './preload/preloadFont';
import Features from './features/features';
import FadeInNav from './utils/fadeInNav';
import Footer from './footer/footer';
Expand All @@ -16,7 +15,8 @@ export default function Home() {
<Layout description="Fully customisable editable table component">
<main>
<FadeInNav></FadeInNav>
<PreloadFont></PreloadFont>
{/* WORK - see if this is still required */}
{/* <PreloadFont></PreloadFont> */}
<div id="homepage-content" ref={homepageContentRef} className="invisible-component">
<StartPanel></StartPanel>
<Features></Features>
Expand Down

0 comments on commit 95293af

Please sign in to comment.