|
6 | 6 | orbs: |
7 | 7 | publish-docs: infinitered/[email protected] # Replace with the actual version |
8 | 8 |
|
9 | | -# Define common parameters |
10 | | -common_params: &publish_docs_params |
11 | | - description: "The description that will appear on autogenerated indexes and components." |
12 | | - |
13 | | - git_username: "Your CI Username" |
14 | | - label: "The label that will appear in the sidebar of the docs site." |
15 | | - project_name: 'name-of-project' |
16 | | - source_docs_dir: "docs" |
17 | | - source_repo_directory: "source" |
18 | | - target_docs_dir: "docs" |
19 | | - target_repo: "[email protected]:your-org/your-repo.git" |
20 | | - target_repo_directory: "target" |
| 9 | + # You can define a YAML anchor and reference it later. |
| 10 | + common_params: &publish_docs_params |
| 11 | + description: "The description that will appear on autogenerated indexes and components." |
| 12 | + |
| 13 | + git_username: "Your CI Username" |
| 14 | + label: "The label that will appear in the sidebar of the docs site." |
| 15 | + project_name: 'name-of-project' |
| 16 | + source_docs_dir: "docs" |
| 17 | + source_repo_directory: "source" |
| 18 | + target_docs_dir: "docs" |
| 19 | + target_repo: "[email protected]:your-org/your-repo.git" |
| 20 | + target_repo_directory: "target" |
21 | 21 |
|
22 | | -workflows: |
23 | | - build_docs: |
24 | | - jobs: |
25 | | - - publish-docs/build_docs: |
26 | | - # this will expand to all the parameters defined in the anchor |
27 | | - <<: *publish_docs_params |
28 | | - publish_to_docs_site: |
29 | | - jobs: |
30 | | - - publish-docs/publish_docs: |
31 | | - # this will expand to all the parameters defined in the anchor |
32 | | - <<: *publish_docs_params |
| 22 | + workflows: |
| 23 | + build_docs: |
| 24 | + jobs: |
| 25 | + - publish-docs/build_docs: |
| 26 | + # this will expand to all the parameters defined in the anchor |
| 27 | + <<: *publish_docs_params |
| 28 | + publish_to_docs_site: |
| 29 | + jobs: |
| 30 | + - publish-docs/publish_docs: |
| 31 | + # this will expand to all the parameters defined in the anchor |
| 32 | + <<: *publish_docs_params |
0 commit comments