Skip to content

Commit a2bc25e

Browse files
committed
chore: fix md bugs
1 parent 6ea64fe commit a2bc25e

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/liara.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ jobs:
1414
node-version: "20"
1515
- name: install-dependencies
1616
run: npm ci
17-
- name: convert-mdx-to-md
18-
working-directory: ./mdx-to-md-converter
19-
run: |
20-
npm install
21-
npm run convert
2217
- name: update-liara
2318
env:
2419
LIARA_TOKEN: ${{ secrets.IRAN_API_TOKEN }}

liara_nginx.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ location / {
2323
try_files $uri $uri/ $uri.html =404;
2424
}
2525

26+
# Serve LLMS markdown files and support extensionless URLs by falling back to .md
27+
location ~ ^/llms/(.+)$ {
28+
try_files $uri $uri/ $uri.md =404;
29+
}
2630

31+
2732
# NodeJS
2833
location ~ ^/app-deploy/nodejs/getting-started/?$ {
2934
return 301 /paas/nodejs/getting-started;

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev -p 3001",
7-
"build": "npm run sitemap && next build",
7+
"generate-llms": "npm --prefix mdx-to-md-converter ci && npm --prefix mdx-to-md-converter run convert",
8+
"build": "npm run generate-llms && npm run sitemap && next build",
9+
"postbuild": "sh -c \"if [ -d public/llms ]; then mkdir -p out/llms && cp -R public/llms/* out/llms/; fi; if [ -f public/all-links-llms.txt ]; then cp public/all-links-llms.txt out/all-links-llms.txt; fi\"",
810
"start": "next start",
911
"lint": "next lint",
1012
"sitemap": "node sitemap/generate.js"

0 commit comments

Comments
 (0)