Skip to content

Commit 93e0fe1

Browse files
authored
docs(static-deploy): add workflow file location for GitHub Pages (#21004)
1 parent 8b6c4ea commit 93e0fe1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.vitepress/config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,11 @@ export default defineConfig({
486486
languages: ['ts', 'js', 'json'],
487487
codeTransformers: [transformerTwoslash()],
488488
config(md) {
489-
md.use(groupIconMdPlugin)
489+
md.use(groupIconMdPlugin, {
490+
titleBar: {
491+
includeSnippet: true,
492+
},
493+
})
490494
md.use(markdownItImageSize, {
491495
publicDir: path.resolve(import.meta.dirname, '../public'),
492496
})

guide/static-deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Now the `preview` command will launch the server at `http://localhost:8080`.
6363

6464
2. Go to your GitHub Pages configuration in the repository settings page and choose the source of deployment as "GitHub Actions", this will lead you to create a workflow that builds and deploys your project, a sample workflow that installs dependencies and builds using npm is provided:
6565

66-
<<< ./static-deploy-github-pages.yaml#content
66+
<<< ./static-deploy-github-pages.yaml#content [.github/workflows/deploy.yml]
6767

6868
## GitLab Pages and GitLab CI
6969

0 commit comments

Comments
 (0)