forked from illuscio-dev/azure-pipelines-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.yml
34 lines (27 loc) · 967 Bytes
/
doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
parameters:
# What the primary language of this build is. Choices are GO | PYTHON | DOCKER.
- name: language
type: string
# Whether to generate protobuff docs
- name: docProtoc
type: boolean
# Whether to create static go API docs.
- name: docGodoc
type: boolean
steps:
- ${{ if eq(parameters.language, 'GO') }}:
- template: doc_setup_go.yml
parameters:
docGodoc: ${{ parameters.docGodoc }}
- ${{ if eq(parameters.language, 'PYTHON') }}:
- template: doc_setup_python.yml
# Generate protoc docs. We do this after the Go docs so the go static documentation
# does not overwrite our proto.html output
- ${{ if parameters.docProtoc }}:
- template: doc_generate_proto_static.yml
# Build Documentation With Sphinx
- script: python setup.py build_sphinx -E
displayName: Build docs
condition: succeeded()
# Set up docs for github pages publishing.
- template: doc_publish_github_pages.yml