Skip to content

Commit

Permalink
Modify doc site < https://urluploader.vercel.app >
Browse files Browse the repository at this point in the history
- Docs Site 90 % Complete
- Deploy page folder 50 % complete
kalanakt committed Dec 27, 2022
1 parent a0d8ad9 commit 380bdcc
Showing 13 changed files with 122 additions and 16 deletions.
6 changes: 4 additions & 2 deletions docs/components/changelog.tsx
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ function ChangeLog() {
}, []);
return (
<div className={styles.container}>
{books && (
{books ? (
<div className="books">
{books.map((book: { commit: { message: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal; author: { date: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal; }; comment_count: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal; verification: { verified: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal; }; }; html_url: string; comments_url: string; author: {
[x: string]: string; login: string; avatar_url: string;
@@ -46,12 +46,14 @@ function ChangeLog() {
</div>
<div className={styles.iconset}>
<div className={styles.bicon}>Committer : <a href={book.author.html_url}><img className={styles.avatar} alt="github icon" src={book.author.avatar_url} width={25} height={25} /></a></div>
<div className={styles.bicon}><a href={book.comments_url}> Comments : {book.commit.comment_count}</a></div>
<div className={styles.bicon}> Comments : {book.commit.comment_count}</div>
</div>
</div>
);
})}
</div>
) : (
<span>404 : Page Not Found</span>
)}
</div>
)
4 changes: 3 additions & 1 deletion docs/components/releases.tsx
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ function Releases() {
}, []);
return (
<div className={styles.container}>
{books && (
{books ? (
<div className="books">
{books.map((book: {
[x: string]: any; commit: { message: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal; author: { date: string; }; comment_count: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal; verification: { verified: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal; }; }; html_url: string; comments_url: string; author: {
@@ -52,6 +52,8 @@ function Releases() {
);
})}
</div>
) : (
<span>404 : Page Not Found</span>
)}
</div>
)
8 changes: 3 additions & 5 deletions docs/components/sponsors.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.container {
padding: 8px;
justify-content: start;
align-items: center;
display: flex;
@@ -11,13 +10,13 @@

.sponsor_card {
width: 180px;
height: 150px;
height: 100px;
border-radius: 8px;
}

.sponsor_cardh {
width: 180px;
height: 150px;
height: 100px;
background-color: rgba(19, 17, 41, 0.692);
border-radius: 8px;
border-width: 2px;
@@ -28,7 +27,7 @@
.sponsor_img {
display: flex;
width: 180px;
height: 100px;
height: 75px;
justify-content: center;
align-items: center;
overflow-x: hidden;
@@ -52,6 +51,5 @@
justify-content: center;
align-items: center;
flex-direction: row;
height: 50px;
box-shadow: 2px;
}
2 changes: 1 addition & 1 deletion docs/components/sponsors.tsx
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ function Sponsors() {
<img className={styles.simg} src='./tmwad.png' alt='TMWAD IMG' width={200} height={50}/>
</div>
<div className={styles.sponsor_links}>
<a href="/" target="_blank">Web Site</a>
<a href="/" target="_blank">TMWAD Telegram</a>
</div>
</div>
</div>
10 changes: 10 additions & 0 deletions docs/pages/deploy.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Deploy Bot


| Host | Website | Introduction |
| :--- | :---- | ---: |
| [Digital Ocean ↗](/deploy/digital-ocean) | [digitalocean.com](https://www.digitalocean.com/) | Esay, free trail, Credit Card Requre |
| [Heroku ↗](/deploy/heroku) | [heroku.com](https://www.heroku.com/) | 100% Deploy Efficiency, 5$ per month `recomend` |
| [Koyeb ↗](/deploy/koyeb) | [koyeb.com](https://www.koyeb.com/) | Host 2 Apps free, Esay, Credit Card Requre |
| [Railway ↗](/deploy/railway) | [railway.app](https://www.railway.app/) | User Friendly, Esay & free trail No Credit Card Requre `recomend` |
| [Render ↗](/deploy/render) | [render.com](https://www.render.com/) | Good Ui & Ux, Free Trail, No Credit Card Requre |
5 changes: 4 additions & 1 deletion docs/pages/deploy/digital-ocean.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# digital ocean deploy
# Digital Ocean Deploy

- Not Started Yet
- Your P.R. Highly Appreciate
27 changes: 26 additions & 1 deletion docs/pages/deploy/heroku.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
#heroku deploy
import { Tab, Tabs } from 'nextra-theme-docs'

# Heroku Deploy
_Heroku is Esay way to deploy All Url Uploader. But you need to pro account in heroku_

__Use method one or two to deploy your bot.__

<Tabs items={['Method One : Esay Step', 'Method Two : Quick Deploy For Pro']}>
<Tab>
- Create Heroku Account if Already Have? Log In To Account
- Fork The Repositery On [GitHub](https://github.com/kalanakt/All-Url-Uploader)
- Copy Your Repositery Url Address - `https://github.com/USER_NAME/All-Url-Uploader`
- Open [https://kalanakt.github.io/ToHeroku/app/](https://kalanakt.github.io/ToHeroku/app/) In Another Tab
- Past Copied Link & Click Genarate Link. You'll Redirect to heroku app
- Add Enviroment Veriable & Click Deploy
- Start the Bot On Telegram : Boom!!! Enjoy Your Bot
</Tab>
<Tab>
- Create Heroku Account if Already Have? Log In To Account
- Fork The Repositery On [GitHub](https://github.com/kalanakt/All-Url-Uploader)
- Click Create New App On Heroku. Add .env Veriables And Deploy App
- On Deploy Tab Click Connect To Github
- Connect Forked Repositery And Deploy Again
- Start the Bot On Telegram : Boom!!! Enjoy Your Bot
</Tab>
</Tabs>
1 change: 0 additions & 1 deletion docs/pages/deploy/keyob.mdx

This file was deleted.

4 changes: 4 additions & 0 deletions docs/pages/deploy/koyeb.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# keyob deploy

- Not Started Yet
- Your P.R. Highly Appreciate
22 changes: 21 additions & 1 deletion docs/pages/deploy/railway.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# railway
import { Tab, Tabs } from 'nextra-theme-docs'

# Railway Deploy
_Railway is Free. You'll Get 500 Hr_

__Use method one or two to deploy your bot.__

<Tabs items={['Method One : Esay', 'Method Two : Deploy Your Own For Pro']}>
<Tab>
[![Deploy on Railway](https://railway.app/button.svg)](/)
</Tab>
<Tab>
- Fork The Repositery On [GitHub](https://github.com/kalanakt/All-Url-Uploader)
- Create [Railway](https://railway.app) Account. if Already Have? Go to [Dashboard](https://railway.app/dashboard)
- Start [ + New Project ] & Select `Deploy From Github`
- Connect Your Github Account with railway & Select forked repo then Deploy
- This Should Fail. Next Add .env Variables in Variables Tab.
- Railway will Auto deploy Your App.
- Start the Bot On Telegram : Boom!!! Enjoy Your Bot
</Tab>
</Tabs>
27 changes: 27 additions & 0 deletions docs/pages/deploy/render.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Tab, Tabs } from 'nextra-theme-docs'

# Render Deploy
_Render is Free. You'll Get 500 Hr_

__Use method one or two to deploy your bot.__

<Tabs items={['Method One : Deploy with Docker', 'Method Two : Deploy with Python 3']}>
<Tab>
- Fork The Repositery On [GitHub](https://github.com/kalanakt/All-Url-Uploader)
- Create [Render](https://dashboard.render.com/) Account if Already Have? Go To [Dashboard](https://dashboard.render.com/)
- Start [ New + ] Project and Slect web service.
- Connect a github awith render and select forked repository
- keep `Environment` as `Docker`
- Expand [ Advance ] button and add .env Veriables. Click [ Create Web Service ] or Click Add Secret File. add sample_config.py with content
- Start the Bot On Telegram : Boom!!! Enjoy Your Bot
</Tab>
<Tab>
- Fork The Repositery On [GitHub](https://github.com/kalanakt/All-Url-Uploader)
- Create [Render](https://dashboard.render.com/) Account if Already Have? Go To [Dashboard](https://dashboard.render.com/)
- Start [ New + ] Project and Slect web service.
- Connect a github awith render and select forked repository
- Toggle `Environment` to `Python 3`
- Expand [ Advance ] button and add .env Veriables. Click [ Create Web Service ] or Click Add Secret File. add sample_config.py with content
- Start the Bot On Telegram : Boom!!! Enjoy Your Bot
</Tab>
</Tabs>
20 changes: 18 additions & 2 deletions docs/pages/index.mdx
Original file line number Diff line number Diff line change
@@ -8,5 +8,21 @@ A simple telegram Bot, Upload Media File| video To telegram using the direct dow
- Bot Can upload document, video & audio types.
- Deploy To Heroku | locally | VPS | Digital Ocean | Koyeb | Render.
- Custom thumbnail support.
- /thumb - view your custom thumbunli
- /delthumb - delete your custom thumbunli

## Commands

- /start - Start the Bot
- /help - Introduction to use url uploader bot
- /about - About the Bot
- /thumb - view your custom thumbnail
- /delthumb - delete your custom thumbnail
- /thumb - Add custom thumbnail to your uploaded file ( send thumbnail and reply /thumb to it)
- /delthumb - To Delete your custom thumbnail

## Ask Questions

For questions and support please use [Discussions](https://github.com/kalanakt/All-Url-Uploader/discussions). The issue list of this repo is exclusively for bug reports and feature requests.

## Found Bug ?

Make sure to read the Issue Reporting [Checklist](https://github.com/kalanakt/All-Url-Uploader/discussions/categories/issue-reporting-checklist). before opening an [issue](https://github.com/kalanakt/All-Url-Uploader/issues). Issues not conforming to the guidelines may be closed immediately.
2 changes: 1 addition & 1 deletion docs/theme.config.tsx
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ const config: DocsThemeConfig = {
🎉 All-Url-Uploader 2.0 is released. Read more →
</a>,
},
logo: <span>All-url-uploader</span>,
logo: <span>All Url Uploader</span>,
project: {
link: 'https://github.com/kalanakt/All-Url-Uploader',
},

0 comments on commit 380bdcc

Please sign in to comment.