Skip to content

Commit

Permalink
Rename actions and fix docusaurus search config
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed May 28, 2024
1 parent 8a6b60e commit 9036410
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Build and Test
# This name appears on the "build" badge on README.
name: build

on:
pull_request:

jobs:
build-and-test:
build:
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Deploy Docs
name: deploy-docs

on:
release:
types: [published]
push:
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Package
name: publish-package

on:
workflow_dispatch:
Expand All @@ -16,7 +16,7 @@ on:
- prepatch

jobs:
build:
publish-package:
runs-on: ubuntu-latest

permissions:
Expand Down
8 changes: 7 additions & 1 deletion docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,13 @@ const config: Config = {
},
} satisfies Preset.ThemeConfig,
plugins: [
'@easyops-cn/docusaurus-search-local',
[
'@easyops-cn/docusaurus-search-local',
{
// For docs-only mode.
docsRouteBasePath: '/',
},
],
// Plugin for generating API docs.
[
'docusaurus-plugin-typedoc',
Expand Down

0 comments on commit 9036410

Please sign in to comment.