Compare commits
7 Commits
8d332b9496
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ae3128481 | |||
|
|
b6133442ec | ||
|
|
88a033b7bb | ||
|
|
7b699886e2 | ||
|
|
90f1539aae | ||
|
|
4d995ba250 | ||
|
|
adc5b78aa9 |
33
.gitea/workflows/build.yml
Normal file
33
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Build Docusaurus Site
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
git clone "http://172.17.0.1:3000/${{ github.repository }}.git" .
|
||||
git checkout "${{ github.sha }}"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build Docusaurus
|
||||
run: npm run build
|
||||
|
||||
- name: Deploy to 1Panel OpenResty site
|
||||
run: |
|
||||
SITE_DIR="/opt/1panel/apps/openresty/openresty/www/sites/docs.makefire.fun/index"
|
||||
|
||||
mkdir -p "${SITE_DIR}"
|
||||
rm -rf "${SITE_DIR}"/*
|
||||
cp -r build/* "${SITE_DIR}/"
|
||||
|
||||
echo "✅ Docs deploy complete"
|
||||
ls -la "${SITE_DIR}"
|
||||
@@ -11,9 +11,9 @@ slug: /my-custom-url
|
||||
|
||||
Markdown text with [links](./hello.md)
|
||||
|
||||
Let's see how to [Create a page](/create-a-page).
|
||||
Let's see how to [Create a page](./tutorial-basics/create-a-page.md).
|
||||
|
||||
Let's see how to [Create a page](./create-a-page.md).
|
||||
Let's see how to [Create a page](./tutorial-basics/create-a-page.md).
|
||||
|
||||
### Images
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
||||
|
||||
/** @type {import('@docusaurus/types').Config} */
|
||||
const config = {
|
||||
title: '瑞彩千寻产品线',
|
||||
title: '产品线',
|
||||
tagline: '高精度定位/北三短报文',
|
||||
url: 'https://www.makefire.fun',
|
||||
baseUrl: '/',
|
||||
@@ -142,11 +142,7 @@ const config = {
|
||||
title: '链接',
|
||||
items: [
|
||||
{
|
||||
label: '瑞彩电子',
|
||||
href: 'https://www.reecam.net/',
|
||||
},
|
||||
{
|
||||
label: '千寻位置',
|
||||
label: '位置',
|
||||
href: 'https://www.qxwz.com/',
|
||||
},
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user