-
-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add local search and keep old docs temporarily
- Loading branch information
Showing
18 changed files
with
62 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: deploy deprecated docs | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "docs_deprecated/**" | ||
- ".github/workflows/deploy-doc-deprecated.yml" | ||
env: | ||
LAF_CI_DOCS_PAT: ${{ secrets.LAF_CI_DOCS_PAT }} | ||
LAF_CI_DOCS_APPID: ${{ secrets.LAF_CI_DOCS_APPID }} | ||
LAF_CI_DOCS_BUCKET_NAME: ${{ secrets.LAF_CI_DEPRECATED_DOCS_BUCKET_NAME }} | ||
LAF_API_URL: ${{ secrets.LAF_API_URL }} | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build Docs | ||
uses: ./.github/actions/build-docs | ||
|
||
- name: Setup laf-cli | ||
run: npm i laf-cli -g | ||
- name: Login laf-cli | ||
run: | | ||
laf user add doc -r ${{ env.LAF_API_URL }} | ||
laf user switch doc | ||
laf login ${{ env.LAF_CI_DOCS_PAT }} | ||
- name: Deploy to laf | ||
working-directory: docs_deprecated/.vitepress | ||
run: | | ||
laf app init ${{ env.LAF_CI_DOCS_APPID }} | ||
laf storage push -f ${{ env.LAF_CI_DOCS_BUCKET_NAME }} dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: laf-cli 命令行工具 | ||
--- | ||
|
||
# {{ $frontmatter.title }} | ||
# laf-cli 命令行工具 | ||
|
||
## 简介 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: laf-client-sdk | ||
--- | ||
|
||
# {{ $frontmatter.title }} | ||
# laf-client-sdk | ||
|
||
## 介绍 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: 新增数据 | ||
--- | ||
|
||
# {{ $frontmatter.title }} | ||
# 新增数据 | ||
|
||
Laf 云函数库中,新增数据非常简单,正规说法为插入文档。以下是插入单个文档和批量插入文档的写法。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: 数据库聚合操作 | ||
--- | ||
|
||
# {{ $frontmatter.title }} | ||
# 数据库聚合操作 | ||
|
||
在进行复杂的数据查询时,需要用到聚合操作。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: 数据库操作符 | ||
--- | ||
|
||
# {{ $frontmatter.title }} | ||
# 数据库操作符 | ||
|
||
Laf 云函数支持多种不同的数据库操作符,用于执行查询、更新、删除等操作。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: 删除数据 | ||
--- | ||
|
||
# {{ $frontmatter.title }} | ||
# 删除数据 | ||
|
||
Laf 云数据库删除数据,包括删除文档和删除集合。同时支持单个删除和批量删除。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: 地理信息 API | ||
--- | ||
|
||
# {{ $frontmatter.title }} | ||
# 地理信息 API | ||
|
||
注意:**如果需要对类型为地理位置的字段进行搜索,一定要建立地理位置索引**。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
title: 数据库运算 | ||
--- | ||
|
||
# {{ $frontmatter.title }} | ||
# 数据库运算 | ||
|
||
**等同于 mongoDB 聚合操作符概念** | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters