Skip to content

Commit

Permalink
docs: add package version to site
Browse files Browse the repository at this point in the history
  • Loading branch information
nlulic committed Dec 8, 2023
1 parent b97d09b commit 5efd011
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions site/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/** @type {import('next').NextConfig} */
const { version } = require("../package.json");

const nextConfig = {
output: "export",
env: {
PACKAGE_VERSION: version,
},
};

module.exports = nextConfig;
13 changes: 9 additions & 4 deletions site/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,15 @@ export default function Home() {
target="_blank"
className="flex space-x-2"
>
<TableFilled width={32} height={32} />
<span className="text-2xl font-semibold whitespace-nowrap">
slate-table
</span>
<TableFilled width={48} height={48} />
<div className="flex flex-col">
<span className="text-2xl font-semibold whitespace-nowrap">
slate-table
</span>
<span className="text-sm font-semibold leading-3">
v{process.env.PACKAGE_VERSION}
</span>
</div>
</a>
<a
href="https://github.com/nlulic/slate-table"
Expand Down

0 comments on commit 5efd011

Please sign in to comment.