Skip to content

Commit ebf6270

Browse files
authored
Create docs-preview.yml (#178)
* Create docs-preview.yml * test
1 parent ed0ec38 commit ebf6270

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/docs-preview.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: docs-preview
2+
on:
3+
pull_request_target:
4+
types: [opened]
5+
paths:
6+
- '**.asciidoc'
7+
- '**.jpg'
8+
- '**.png'
9+
- '**.gif'
10+
11+
permissions:
12+
pull-requests: write
13+
14+
jobs:
15+
doc-preview-pr:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: elastic/docs/.github/actions/docs-preview@master
19+
with:
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
repo: ${{ github.event.repository.name }}
22+
preview-path: 'guide/index.html'
23+
pr: ${{ github.event.pull_request.number }}

serverless/index.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ include::{security-serverless}/index.asciidoc[]
4545
include::./index-serverless-devtools.asciidoc[]
4646
include::./index-serverless-project-settings.asciidoc[]
4747

48+
4849
// Hidden pages
4950
include::./pages/explore-your-data-visualize-your-data-create-dashboards.asciidoc[leveloffset=+1]
5051
include::./pages/explore-your-data-visualize-your-data-create-visualizations.asciidoc[leveloffset=+1]

0 commit comments

Comments
 (0)