Skip to content

Commit ecda010

Browse files
committedFeb 26, 2023
docs: Update search plugin
1 parent 255b93e commit ecda010

File tree

5 files changed

+2998
-3005
lines changed

5 files changed

+2998
-3005
lines changed
 

‎.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ jobs:
8686
with:
8787
# fetch complete history so that the "last updated by" texts can be set correctly
8888
fetch-depth: 0
89-
- name: Use Node.js 14.x
89+
- name: Use Node.js 18.x
9090
uses: actions/setup-node@v1
9191
with:
92-
node-version: 14.x
92+
node-version: 18.x
9393
- name: Build Docs
9494
run: |
9595
cd docs
@@ -102,7 +102,7 @@ jobs:
102102
with:
103103
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
104104
BRANCH: gh-pages
105-
FOLDER: docs/build/OpenWeatherMap-PHP-API
105+
FOLDER: docs/build
106106
CLEAN: true
107107
SINGLE_COMMIT: true
108108
GIT_CONFIG_NAME: GitHub Actions

‎.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

‎docs/docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = {
110110
],
111111
],
112112
plugins: [
113-
// require('path').resolve(__dirname, '../../docusaurus-search-local'),
113+
// require('path').resolve(__dirname, '../../docusaurus-search-local/packages/docusaurus-search-local'),
114114
require.resolve('@cmfcmf/docusaurus-search-local')
115115
]
116116
};

‎docs/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
"private": true,
55
"scripts": {
66
"start": "docusaurus start",
7-
"build": "docusaurus build --out-dir build/OpenWeatherMap-PHP-API",
7+
"build": "docusaurus build",
88
"swizzle": "docusaurus swizzle",
99
"serve": "docusaurus serve",
1010
"deploy": "docusaurus deploy"
1111
},
1212
"dependencies": {
13-
"@cmfcmf/docusaurus-search-local": "^0.9.3",
14-
"@docusaurus/core": "^2.0.0-beta.14",
15-
"@docusaurus/preset-classic": "^2.0.0-beta.14",
16-
"clsx": "^1.1.1",
13+
"@cmfcmf/docusaurus-search-local": "^1.0.0",
14+
"@docusaurus/core": "^2.3.1",
15+
"@docusaurus/preset-classic": "^2.3.1",
16+
"clsx": "^1.2.1",
1717
"react": "^17.0.2",
1818
"react-dom": "^17.0.2"
1919
},

‎docs/yarn.lock

+2,988-2,996
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.