Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Samrose-Ahmed committed Jul 15, 2022
1 parent 0763fa1 commit 7f70f1a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
!*.js
# Dependencies
/node_modules

Expand All @@ -19,6 +20,4 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

!babel.config.js
!docusaurus.config.js
!sidebars.js

5 changes: 4 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ const config = {
label: 'Docs',
},
{to: '/blog', label: 'Blog', position: 'left'},
// <iframe src="https://ghbtns.com/github-btn.html?user=twbs&repo=bootstrap&type=star&count=true&size=large" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
{
type: 'custom-githubButton',
position: "right",
},
{
href: 'https://github.com/matnolabs/matano',
label: 'GitHub',
Expand Down
12 changes: 12 additions & 0 deletions src/components/NavbarItems/GithubButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";

export default function GithubButton() {
return <iframe
src="https://ghbtns.com/github-btn.html?user=matanolabs&repo=matano&type=star&count=true&size=large"
frameBorder="0"
scrolling="0"
width="115"
height="30"
title="GitHub"
></iframe>;
}
4 changes: 1 addition & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ function HomepageHeader() {
export default function Home(): JSX.Element {
const { siteConfig } = useDocusaurusContext();
return (
<Layout
//title={`Open source security lake platform for AWS`}
description="Description will go into a meta tag in <head />">
<Layout>
<HomepageHeader />
<Head>
<title>Matano | Open source security lake for AWS</title>
Expand Down
9 changes: 9 additions & 0 deletions src/theme/NavbarItem/ComponentTypes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import ComponentTypes from '@theme-original/NavbarItem/ComponentTypes';
import GithubButton from '@site/src/components/NavbarItems/GithubButton';

// this is needed currently (07/2022) to add a custom component to the navbar
// (see https://github.com/facebook/docusaurus/issues/7227).
export default {
...ComponentTypes,
'custom-githubButton': GithubButton,
};

0 comments on commit 7f70f1a

Please sign in to comment.