Skip to content

Commit

Permalink
feat(website): added package version to website navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaPontrandolfo committed Dec 5, 2023
1 parent 6696603 commit fa9d732
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/docs-website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import type * as Preset from "@docusaurus/preset-classic";
import type { Config } from "@docusaurus/types";
import { themes } from "prism-react-renderer";
import { version } from "eslint-config-sheriff/package.json";

const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;
Expand Down Expand Up @@ -75,6 +76,11 @@ const config: Config = {
label: "Docs",
},
{ to: "/blog", label: "Blog", position: "left" },
{
position: "right",
value: `<div style="font-weight: 700;">v${version}</div>`,
type: "html",
},
{
href: "https://github.com/AndreaPontrandolfo/sheriff",
position: "right",
Expand Down

0 comments on commit fa9d732

Please sign in to comment.