Skip to content

Commit 4c492fe

Browse files
authored
feat: rebuild whole site (#473)
* feat: rebuild site * chore: tweaks * fix: fix docsearch * fix: fix action button * chore: remove homepage icons suggested by @CritasWang * chore: add missing license * chore: tweaks * fix: fix table * chore: fix table * chore: tweaks * chore: tweaks * chore: tweaks
1 parent fc72b4e commit 4c492fe

File tree

215 files changed

+3306
-4123
lines changed

Some content is hidden

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

215 files changed

+3306
-4123
lines changed

.asf.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,24 @@
1717
# under the License.
1818
#
1919

20-
2120
notifications:
22-
issues: reviews@iotdb.apache.org
21+
issues: reviews@iotdb.apache.org
2322
pullrequests: reviews@iotdb.apache.org
2423

2524
github:
26-
description: "Apache IoTDB Documentation and Site"
25+
description: 'Apache IoTDB Documentation and Site'
2726
homepage: https://iotdb.apache.org/
2827
labels:
2928
- timeseries
3029
- database
3130
- documentation
3231
enabled_merge_buttons:
3332
# enable squash button:
34-
squash: true
33+
squash: true
3534
# enable merge button:
36-
merge: false
35+
merge: false
3736
# disable rebase button:
38-
rebase: true
37+
rebase: true
3938
collaborators:
4039
- CritasWang
4140
- krystal-xiao
@@ -44,7 +43,7 @@ github:
4443

4544
staging:
4645
profile: ~
47-
whoami: asf-staging
46+
whoami: asf-staging
4847

4948
publish:
50-
whoami: asf-site
49+
whoami: asf-site

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 74 deletions
This file was deleted.

.github/workflows/site-build.yaml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,22 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v4
24+
2425
- name: Install pnpm
2526
uses: pnpm/action-setup@v4
26-
with:
27-
package_json_file: 'package.json'
28-
run_install: true
29-
version: 8
30-
- name: Use Node.js 20
27+
28+
- name: Use Node.js 22
3129
uses: actions/setup-node@v4
3230
with:
33-
node-version: 20
34-
cache: pnpm
31+
node-version: 22
32+
3533
- name: Install dependencies
3634
run: pnpm install
35+
3736
- name: Test build website
3837
env:
39-
NODE_OPTIONS: --max_old_space_size=8192
40-
run: pnpm run build
38+
NODE_OPTIONS: --max_old_space_size=8192
39+
run: pnpm build
4140

4241
deploy:
4342
runs-on: ubuntu-latest
@@ -50,21 +49,20 @@ jobs:
5049

5150
- name: Install pnpm
5251
uses: pnpm/action-setup@v4
53-
with:
54-
package_json_file: 'package.json'
55-
run_install: true
56-
version: 8
5752

58-
- name: Use Node.js 20
53+
- name: Use Node.js 22
5954
uses: actions/setup-node@v4
6055
with:
61-
node-version: 20
56+
node-version: 22
57+
6258
- name: Install dependencies
6359
run: pnpm install
60+
6461
- name: Build website
6562
env:
66-
NODE_OPTIONS: --max_old_space_size=8192
67-
run: pnpm run build
63+
NODE_OPTIONS: --max_old_space_size=8192
64+
run: pnpm build
65+
6866
- name: Deploy website
6967
env:
7068
IOTDB_WEBSITE_BUILD: ${{ secrets.IOTDB_WEBSITE_BUILD }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ pnpm-lock.yaml
3131
# Editor directories and files
3232
.vscode/*
3333
!.vscode/extensions.json
34-
!.vscode/settings.json
3534
.idea
3635
*.suo
3736
*.ntvs*

deploy.cjs

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
11
/*
2-
Licensed to the Apache Software Foundation (ASF) under one
3-
or more contributor license agreements. See the NOTICE file
4-
distributed with this work for additional information
5-
regarding copyright ownership. The ASF licenses this file
6-
to you under the Apache License, Version 2.0 (the
7-
"License"); you may not use this file except in compliance
8-
with the License. You may obtain a copy of the License at
9-
10-
http://www.apache.org/licenses/LICENSE-2.0
11-
12-
Unless required by applicable law or agreed to in writing,
13-
software distributed under the License is distributed on an
14-
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
KIND, either express or implied. See the License for the
16-
specific language governing permissions and limitations
17-
under the License.
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
1817
*/
1918

2019
const ghpages = require('gh-pages');
2120

22-
ghpages.publish('src/.vuepress/dist', {
23-
branch: 'asf-site',
24-
repo: 'https://github.com/apache/iotdb-website.git',
25-
message: 'Site checkin for project iotdb-website',
26-
dotfiles: true,
27-
}, (err) => {
28-
if (err instanceof Error) {
29-
console.error(err);
30-
process.exit(1);
31-
}
32-
});
21+
ghpages.publish(
22+
'src/.vuepress/dist',
23+
{
24+
branch: 'asf-site',
25+
repo: 'https://github.com/apache/iotdb-website.git',
26+
message: 'Site checkin for project iotdb-website',
27+
dotfiles: true,
28+
},
29+
(err) => {
30+
if (err instanceof Error) {
31+
console.error(err);
32+
process.exit(1);
33+
}
34+
},
35+
);

deploy_staging.cjs

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
11
/*
2-
Licensed to the Apache Software Foundation (ASF) under one
3-
or more contributor license agreements. See the NOTICE file
4-
distributed with this work for additional information
5-
regarding copyright ownership. The ASF licenses this file
6-
to you under the Apache License, Version 2.0 (the
7-
"License"); you may not use this file except in compliance
8-
with the License. You may obtain a copy of the License at
9-
10-
http://www.apache.org/licenses/LICENSE-2.0
11-
12-
Unless required by applicable law or agreed to in writing,
13-
software distributed under the License is distributed on an
14-
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
KIND, either express or implied. See the License for the
16-
specific language governing permissions and limitations
17-
under the License.
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
1817
*/
1918

2019
const ghpages = require('gh-pages');
2120

22-
ghpages.publish('src/.vuepress/dist', {
23-
branch: 'asf-staging',
24-
repo: 'https://github.com/apache/iotdb-website.git',
25-
message: 'Site checkin for project iotdb-website',
26-
dotfiles: true,
27-
}, (err) => {
28-
if (err instanceof Error) {
29-
console.error(err);
30-
process.exit(1);
31-
}
32-
});
21+
ghpages.publish(
22+
'src/.vuepress/dist',
23+
{
24+
branch: 'asf-staging',
25+
repo: 'https://github.com/apache/iotdb-website.git',
26+
message: 'Site checkin for project iotdb-website',
27+
dotfiles: true,
28+
},
29+
(err) => {
30+
if (err instanceof Error) {
31+
console.error(err);
32+
process.exit(1);
33+
}
34+
},
35+
);

eslint.config.js

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import jsConfig from '@eslint/js';
2+
import pluginVue from 'eslint-plugin-vue';
3+
import globals from 'globals';
4+
import { config, plugin, configs as tsConfigs } from 'typescript-eslint';
5+
6+
export default config(
7+
{
8+
ignores: [
9+
'dist/**',
10+
'node_modules/**',
11+
'!src/.vuepress/**',
12+
'src/.vuepress/.cache/**',
13+
'src/.vuepress/.temp/**',
14+
'src/.vuepress/public/**',
15+
],
16+
},
17+
18+
{
19+
languageOptions: {
20+
ecmaVersion: 'latest',
21+
sourceType: 'module',
22+
parserOptions: {
23+
extraFileExtensions: ['.vue'],
24+
projectService: true,
25+
tsconfigRootDir: import.meta.dirname,
26+
},
27+
},
28+
},
29+
30+
jsConfig.configs.recommended,
31+
...tsConfigs.strict,
32+
33+
{
34+
files: ['**/*.ts', '**/*.cts', '**/*.mts'],
35+
plugins: {
36+
'@typescript-eslint': plugin,
37+
},
38+
},
39+
...pluginVue.configs['flat/recommended'],
40+
41+
{
42+
files: ['**/*.{js,cjs,mjs,jsx}'],
43+
...tsConfigs.disableTypeChecked,
44+
},
45+
46+
{
47+
files: ['**/*.cjs'],
48+
rules: {
49+
'@typescript-eslint/no-require-imports': 'off',
50+
},
51+
},
52+
53+
{
54+
files: ['**/*.vue'],
55+
rules: {
56+
'vue/max-attributes-per-line': 'off',
57+
},
58+
},
59+
60+
{
61+
files: ['deploy.cjs', 'deploy_staging.cjs'],
62+
languageOptions: {
63+
globals: globals.node,
64+
},
65+
},
66+
);

0 commit comments

Comments
 (0)