Skip to content

Commit 7ce6264

Browse files
committed
chore: add all-links-llms to .gitignore
1 parent a5d5016 commit 7ce6264

File tree

1,103 files changed

+157895
-158986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,103 files changed

+157895
-158986
lines changed

.github/workflows/liara.yaml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
name: Deploy to Production
2-
on:
3-
push:
4-
branches:
5-
- master
6-
jobs:
7-
deploy:
8-
runs-on: ubuntu-latest
9-
10-
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
13-
with:
14-
node-version: "20"
15-
- name: convert-mdx-to-md
16-
working-directory: ./mdx-to-md-converter
17-
run: |
18-
npm install
19-
npm run convert
20-
- name: update-liara
21-
env:
22-
LIARA_TOKEN: ${{ secrets.IRAN_API_TOKEN }}
23-
run: |
24-
npm i -g @liara/cli@7
25-
liara deploy --app="g2-the-docs" --api-token="$LIARA_TOKEN" --platform=docker --port=80 --no-app-logs
26-
- name: Sleep for 60 seconds
27-
run: sleep 60
28-
shell: bash
29-
- name: search-liara
30-
working-directory: ./indexer
31-
env:
32-
MEILI_PRIVATE_KEY: ${{ secrets.MEILI_PRIVATE_KEY }}
33-
MEILI_ROOT_URL: ${{ secrets.MEILI_ROOT_URL }}
34-
run: |
35-
npm i
36-
npm run start
1+
name: Deploy to Production
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: "20"
15+
- name: convert-mdx-to-md
16+
working-directory: ./mdx-to-md-converter
17+
run: |
18+
npm install
19+
npm run convert
20+
- name: update-liara
21+
env:
22+
LIARA_TOKEN: ${{ secrets.IRAN_API_TOKEN }}
23+
run: |
24+
npm i -g @liara/cli@7
25+
liara deploy --app="g2-the-docs" --api-token="$LIARA_TOKEN" --platform=docker --port=80 --no-app-logs
26+
- name: Sleep for 60 seconds
27+
run: sleep 60
28+
shell: bash
29+
- name: search-liara
30+
working-directory: ./indexer
31+
env:
32+
MEILI_PRIVATE_KEY: ${{ secrets.MEILI_PRIVATE_KEY }}
33+
MEILI_ROOT_URL: ${{ secrets.MEILI_ROOT_URL }}
34+
run: |
35+
npm i
36+
npm run start

.gitignore

Lines changed: 43 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
/src/pages/paas/nextjs/how-tos/connect-to-db/prisma.mdx
3-
4-
# dependencies
5-
/node_modules
6-
/indexer/node_modules
7-
/.pnp
8-
.pnp.js
9-
.yarn/install-state.gz
10-
11-
/sample.mdx
12-
13-
llms
14-
15-
# testing
16-
/coverage
17-
18-
# next.js
19-
/.next/
20-
/out/
21-
22-
# production
23-
/build
24-
25-
# misc
26-
.DS_Store
27-
*.pem
28-
29-
# debug
30-
npm-debug.log*
31-
yarn-debug.log*
32-
yarn-error.log*
33-
34-
# local env files
35-
.env*.local
36-
37-
# vercel
38-
.vercel
39-
40-
# typescript
41-
*.tsbuildinfo
42-
next-env.d.ts
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
/src/pages/paas/nextjs/how-tos/connect-to-db/prisma.mdx
3+
4+
# dependencies
5+
/node_modules
6+
/indexer/node_modules
7+
/.pnp
8+
.pnp.js
9+
.yarn/install-state.gz
10+
11+
/sample.mdx
12+
13+
llms
14+
all-links-llms.txt
15+
16+
# testing
17+
/coverage
18+
19+
# next.js
20+
/.next/
21+
/out/
22+
23+
# production
24+
/build
25+
26+
# misc
27+
.DS_Store
28+
*.pem
29+
30+
# debug
31+
npm-debug.log*
32+
yarn-debug.log*
33+
yarn-error.log*
34+
35+
# local env files
36+
.env*.local
37+
38+
# vercel
39+
.vercel
40+
41+
# typescript
42+
*.tsbuildinfo
43+
next-env.d.ts

Dockerfile

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# 1) Build
2-
FROM node:18-alpine AS builder
3-
4-
WORKDIR /app
5-
6-
COPY package*.json /app/
7-
8-
RUN npm ci
9-
10-
COPY . /app/
11-
12-
RUN npm run build
13-
14-
# 2) Run
15-
FROM registry2.iran.liara.ir/platforms/static-platform:base
16-
17-
COPY liara_nginx.conf /etc/nginx/conf.d
18-
COPY --from=builder /app/out /usr/share/nginx/html
1+
# 1) Build
2+
FROM node:18-alpine AS builder
3+
4+
WORKDIR /app
5+
6+
COPY package*.json /app/
7+
8+
RUN npm ci
9+
10+
COPY . /app/
11+
12+
RUN npm run build
13+
14+
# 2) Run
15+
FROM registry2.iran.liara.ir/platforms/static-platform:base
16+
17+
COPY liara_nginx.conf /etc/nginx/conf.d
18+
COPY --from=builder /app/out /usr/share/nginx/html

README.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
<p align="center">
2-
<img src="https://media.liara.ir/logos/download.svg" alt="Liar Logo" />
3-
</p>
4-
5-
---
6-
7-
This is the **official** documentation of [Liara](https://liara.ir), which is also available at [docs.liara.ir](https://docs.liara.ir). You can have your own documentation by following the steps below:
8-
9-
1. Clone the repository:
10-
```
11-
git clone https://github.com/liara-cloud/docs.git
12-
```
13-
14-
2. Navigate to the directory:
15-
```
16-
cd docs
17-
```
18-
19-
3. Make sure you have [NodeJS & npm](https://nodejs.org/en) installed. If not, please install them before proceeding.
20-
21-
4. Install the dependencies:
22-
```
23-
npm install
24-
```
25-
26-
5. Run the development server:
27-
```
28-
npm run dev
29-
```
30-
6. Open your browser and go to `http://localhost:3001`.
31-
and ... That's it!
32-
33-
## Branches
34-
- [master](https://github.com/liara-cloud/docs/tree/master): This is the main documentation of Liara
35-
- [old-docs](https://github.com/liara-cloud/docs/tree/old-docs): This is the old version of Liara's documentation
36-
37-
## Getting Help
38-
If you have questions, please [create a ticket](https://console.liara.ir/tickets/create)
39-
40-
---
41-
42-
Feel free to contribute!
43-
1+
<p align="center">
2+
<img src="https://media.liara.ir/logos/download.svg" alt="Liar Logo" />
3+
</p>
4+
5+
---
6+
7+
This is the **official** documentation of [Liara](https://liara.ir), which is also available at [docs.liara.ir](https://docs.liara.ir). You can have your own documentation by following the steps below:
8+
9+
1. Clone the repository:
10+
```
11+
git clone https://github.com/liara-cloud/docs.git
12+
```
13+
14+
2. Navigate to the directory:
15+
```
16+
cd docs
17+
```
18+
19+
3. Make sure you have [NodeJS & npm](https://nodejs.org/en) installed. If not, please install them before proceeding.
20+
21+
4. Install the dependencies:
22+
```
23+
npm install
24+
```
25+
26+
5. Run the development server:
27+
```
28+
npm run dev
29+
```
30+
6. Open your browser and go to `http://localhost:3001`.
31+
and ... That's it!
32+
33+
## Branches
34+
- [master](https://github.com/liara-cloud/docs/tree/master): This is the main documentation of Liara
35+
- [old-docs](https://github.com/liara-cloud/docs/tree/old-docs): This is the old version of Liara's documentation
36+
37+
## Getting Help
38+
If you have questions, please [create a ticket](https://console.liara.ir/tickets/create)
39+
40+
---
41+
42+
Feel free to contribute!
43+

indexer/constant.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import url from 'node:url';
2-
import path from 'node:path';
3-
4-
export const BASE_URL = "https://docs.liara.run"
5-
1+
import url from 'node:url';
2+
import path from 'node:path';
3+
4+
export const BASE_URL = "https://docs.liara.run"
5+
66
export const __dirname = path.dirname(url.fileURLToPath(import.meta.url));

0 commit comments

Comments
 (0)