Skip to content

Commit 0f8bea2

Browse files
floberndgithub-actions[bot]
authored andcommitted
Improve reference documentation (#8418)
1 parent aa042ba commit 0f8bea2

File tree

5 files changed

+24
-21
lines changed

5 files changed

+24
-21
lines changed

.github/workflows/docfx.yml

+15-17
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
name: 'CD'
22

3-
# TODO: Remove 'stack'
4-
53
on:
64
workflow_call:
75
inputs:
8-
release_tag:
9-
description: 'The release tag (release version)'
6+
target_branch:
7+
description: 'The target branch to which the documentation should be pushed to.'
108
type: 'string'
119
required: true
10+
name:
11+
description: 'The name to use for the documentation folder (defaults to the name of the current ref)'
12+
type: 'string'
13+
required: false
14+
default: ${{ github.ref_name }}
1215

1316
concurrency:
14-
group: 'docfx-stack'
17+
group: 'docfx'
1518
cancel-in-progress: false
1619

1720
env:
@@ -26,15 +29,9 @@ env:
2629

2730
jobs:
2831
docfx:
29-
name: 'Generate API Documentation'
32+
name: 'DocFx'
3033
runs-on: 'ubuntu-latest'
3134
steps:
32-
- name: 'Parse Version'
33-
id: 'version'
34-
uses: 'zyactions/semver@v1'
35-
with:
36-
version: ${{ inputs.release_tag }}
37-
3835
- name: 'Checkout'
3936
uses: 'actions/checkout@v4'
4037

@@ -47,6 +44,7 @@ jobs:
4744
run: |-
4845
dotnet tool update -g docfx
4946
47+
# TODO: Remove 'stack'
5048
- name: '.NET Cache Packages'
5149
uses: 'actions/cache@v4'
5250
with:
@@ -63,14 +61,14 @@ jobs:
6361
- name: 'Checkout'
6462
uses: 'actions/checkout@v4'
6563
with:
66-
ref: 'refdoc'
64+
ref: ${{ inputs.target_branch }}
6765

6866
- name: 'Commit'
6967
run: |-
70-
rm -r "./${{ steps.version.outputs.version }}" || true
71-
mv ../_site "./${{ steps.version.outputs.version }}"
68+
rm -r "./${{ inputs.name }}" || true
69+
mv ../_site "./${{ inputs.name }}"
7270
git config --global user.name '${{ github.actor }}'
7371
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
74-
git add .
75-
git commit -am "Add ${{ steps.version.outputs.version }}"
72+
git add -A
73+
git commit -am "Add ${{ inputs.name }}"
7674
git push

.github/workflows/docfx_manual.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55

66
jobs:
77
docfx:
8-
name: 'Generate Documentation'
8+
name: 'DocFx'
99
uses: ./.github/workflows/docfx.yml
1010
with:
11-
release_tag: ${{ github.ref_name }}
11+
target_branch: 'refdoc'
1212
secrets: 'inherit'

.github/workflows/release_stack.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818
secrets: 'inherit'
1919

2020
docfx:
21-
name: 'Generate Documentation'
21+
name: 'DocFx'
2222
if: ${{ !startsWith(github.event.release.tag_name, 'serverless-') }}
2323
uses: ./.github/workflows/docfx.yml
2424
with:
25-
release_tag: ${{ github.event.release.tag_name }}
25+
name: ${{ github.event.release.tag_name }}
26+
target_branch: 'refdoc'
2627
secrets: 'inherit'

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ Please refer to
5858
[the full documentation on elastic.co](https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/index.html)
5959
for comprehensive information on installation, configuration and usage.
6060

61+
The API reference documentation is available [here](https://elastic.github.io/elasticsearch-net).
62+
6163
## Versions
6264

6365
### Elasticsearch 8.x Clusters

docs/usage/index.asciidoc

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The sections below provide tutorials on the most frequently used and some less o
66

77
For a full reference, see the {ref}/[Elasticsearch documentation] and in particular the {ref}/rest-apis.html[REST APIs] section. The {net-client} follows closely the JSON structures described there.
88

9+
A .NET API reference documentation for the Elasticsearch client package is available https://elastic.github.io/elasticsearch-net[here].
10+
911
If you're new to {es}, make sure also to read {ref}/getting-started.html[Elasticsearch's quick start] that provides a good introduction.
1012

1113
* <<recommendations, Usage recommendations>>

0 commit comments

Comments
 (0)