From 252fd9b30a2099315dc1e47ad49916495be6f496 Mon Sep 17 00:00:00 2001
From: Yash raj chhabra <95337653+ychhabra-eightfold@users.noreply.github.com>
Date: Wed, 20 Apr 2022 20:51:54 +0530
Subject: [PATCH] chore: update readme with usage, and fix codecov url (#77)
---
packages/octuple/README.md | 24 +++++++++++++++++++++---
packages/octuple/package.json | 4 ++++
2 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/packages/octuple/README.md b/packages/octuple/README.md
index 87e77832a..882509d3e 100644
--- a/packages/octuple/README.md
+++ b/packages/octuple/README.md
@@ -6,7 +6,7 @@
-[](https://badge.fury.io/js/@eightfold.ai%2Foctuple)  [](https://codecov.io/gh/yrchhabra-eightfold/octuple)  [](https://opensource.org/licenses/MIT)
+[](https://badge.fury.io/js/@eightfold.ai%2Foctuple)  [](https://codecov.io/gh/ychhabra-eightfold/octuple)  [](https://opensource.org/licenses/MIT)


@@ -28,9 +28,9 @@ It represents a collection of assets, utilities, and React components for buildi
You can view the complete list of additions, fixes, and changes in the [change log](https://github.com/EightfoldAI/octuple/blob/main/CHANGELOG.md)
-## Usage
+## Install
-To use Octuple in your project run the following command:
+To install Octuple in your project run the following command:
Yarn
@@ -44,6 +44,24 @@ NPM
npm install @eightfold.ai/octuple
```
+## Usage
+
+```tsx
+import { PrimaryButton } from '@eightfold.ai/octuple';
+
+export const App = () => (
+ <>
+
+ >
+);
+```
+
+And import styles manually:
+
+```tsx
+import '@eightfold.ai/octuple/lib/octuple.css';
+```
+
## How can I contribute?
There are many ways to contribute to the Octuple project. Review the following sections to find out which one is right for you.
diff --git a/packages/octuple/package.json b/packages/octuple/package.json
index ea1c364b0..c3695eb7d 100644
--- a/packages/octuple/package.json
+++ b/packages/octuple/package.json
@@ -4,6 +4,10 @@
"license": "MIT",
"main": "lib/octuple.js",
"types": "lib/octuple.d.ts",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/EightfoldAI/octuple"
+ },
"scripts": {
"storybook": "start-storybook -p 2022",
"build-storybook": "rm -rf dist && mkdir dist && build-storybook -o dist",