Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Oct 17, 2023
1 parent 662ec91 commit b5448c1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions docs/guides/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ sidebar_position: 1
---

import CodeBlock from "@theme/CodeBlock"
import {release as versionData} from "../../src/gen/github.json"
import github from "../../src/gen/github.json"

<>
You can install the latest version - <b> {versionData.tag_name}</b>, by using one of the following methods:
You can install the latest version - <b> {github.release.tag_name}</b>, by using one of the following methods:
</>

## Homebrew
Expand Down Expand Up @@ -37,7 +37,7 @@ import {release as versionData} from "../../src/gen/github.json"
Follow the steps below to manually install the cli on your system:

<CodeBlock language="bash">
{`curl -sSL https://raw.githubusercontent.com/tailcallhq/tailcall/main/install.sh | bash -s -- ${versionData.tag_name}`}
{`curl -sSL https://raw.githubusercontent.com/tailcallhq/tailcall/main/install.sh | bash -s -- ${github.release.tag_name}`}
</CodeBlock>

This command fetches and executes the Tailcall installation script. The installed files are located in the `~/.tailcall` directory.
Expand All @@ -54,15 +54,15 @@ If you want to install Tailcall with Docker, follow the steps below. Before star

1. Pull the latest Tailcall Docker image using the following command:

<CodeBlock language="bash">docker pull tailcallhq/tailcall/tc-server:{versionData.tag_name}</CodeBlock>
<CodeBlock language="bash">docker pull tailcallhq/tailcall/tc-server:{github.release.tag_name}</CodeBlock>

This command fetches the latest version of the Tailcall Docker image from the Docker registry.

2. Run the Tailcall Docker container with the following command:

<CodeBlock language="bash">
docker run -p 8080:8080 -p 8081:8081 tailcallhq/tailcall/tc-server:
{versionData.tag_name}
{github.release.tag_name}
</CodeBlock>

This command starts the Tailcall server in a Docker container. Similar to the homebrew installation, it exposes a the graphQL endpoint on port 8080.
Expand Down
4 changes: 2 additions & 2 deletions docs/intro/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ sidebar_position: 1
label: Quick Start
---

import {release as versionData} from "../../src/gen/github.json"
import github from "../../src/gen/github.json"

## Installation

<>
You can install the latest version - <b>{versionData.tag_name}</b>, by using
You can install the latest version - <b>{github.release.tag_name}</b>, by using
<b> homebrew</b>.
</>

Expand Down
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ const config = {
title: "Docs",
items: [
{
to: "/intro/quickstart",
to: "/docs/intro/quickstart",
label: "Introduction",
},
{
to: "/guides/installation",
to: "/docs/guides/installation/",
label: "Installation",
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/components/install.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from "react"
import CodeBlock from "@theme/CodeBlock"
import {release as versionData} from "../gen/github.json" // path to your JSON file
import github from "../gen/github.json" // path to your JSON file

const InstallCommand = () => {
const version = versionData.version
const version = github.release.version
const command = `curl -sSL https://raw.githubusercontent.com/tailcallhq/tailcall/master/install.sh | bash -s -- ${version}`

return (
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Layout from "@theme/Layout"
import clsx from "clsx"
import React, {useEffect, useState} from "react"

import {github} from "../gen/github.json"
import github from "../gen/github.json"
import styles from "./index.module.css"

function HomepageHeader() {
Expand Down Expand Up @@ -40,7 +40,7 @@ function HomepageHeader() {
style={{transition: "max-width 1s", opacity: "1s"}}
className="w-full overflow-hidden whitespace-nowrap max-w-[100px] opacity-100"
>
&nbsp; {github.stargazers_count}
&nbsp; {github.github.stargazers_count}
</span>
</Link>
</div>
Expand Down

0 comments on commit b5448c1

Please sign in to comment.