Skip to content

Commit b661905

Browse files
authored
Merge branch 'main' into RHIDP-3835-Home-Page-Document-how-users-can-customize-the-Home-page
2 parents 83749be + 8e6a217 commit b661905

File tree

276 files changed

+5956
-1613
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+5956
-1613
lines changed

.asciidoctor/docs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ table {
220220
border:0;
221221
font-size:1rem;
222222
line-height:1.6667;
223-
table-layout:fixed
223+
/* commented out as it breaks on Safari on Mac // table-layout:fixed */
224224
}
225225
table caption {
226226
color:#585858;

.github/workflows/build-asciidoc.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ name: GitHub Pages
1717

1818
on:
1919
push:
20-
branches:
20+
branches:
2121
- main
2222
- rhdh-1.**
2323
- 1.**.x
24+
- release-1.**
2425

2526
jobs:
2627
adoc_build:
@@ -40,14 +41,14 @@ jobs:
4041
run: |
4142
# update
4243
sudo apt-get update -y || true
43-
# install
44-
sudo apt-get -y -q install asciidoctor && asciidoctor --version
44+
# install
45+
sudo apt-get -y -q install podman && podman --version
4546
echo "GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
4647
4748
- name: Build guides and indexes
4849
run: |
4950
echo "Building branch ${{ env.GIT_BRANCH }}"
50-
build/scripts/build.sh -b ${{ env.GIT_BRANCH }}
51+
build/scripts/build-ccutil.sh -b ${{ env.GIT_BRANCH }}
5152
5253
# repo must be public for this to work
5354
- name: Deploy
@@ -59,7 +60,7 @@ jobs:
5960
keep_files: true
6061
publish_dir: ./titles-generated
6162

62-
- name: Cleanup merged PR branches
63+
- name: Cleanup merged PR branches
6364
run: |
6465
PULL_URL="https://api.github.com/repos/redhat-developer/red-hat-developers-documentation-rhdh/pulls"
6566
GITHUB_TOKEN="${{ secrets.RHDH_BOT_TOKEN }}"
@@ -69,7 +70,7 @@ jobs:
6970
git checkout gh-pages; git pull || true
7071
dirs=$(find . -maxdepth 1 -name "pr-*" -type d | sed -r -e "s|^\./pr-||")
7172
refs=$(cat pulls.html | grep pr- | sed -r -e "s|.+.html>pr-([0-9]+)</a>.+|\1|")
72-
for d in $(echo -e "$dirs\n$refs" | sort -uV); do
73+
for d in $(echo -e "$dirs\n$refs" | sort -uV); do
7374
PR="${d}"
7475
echo -n "Check merge status of PR $PR ... "
7576
PR_JSON=$(curl -sSL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $GITHUB_TOKEN" "$PULL_URL/$PR")

.github/workflows/pr.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ on:
2727
- main
2828
- rhdh-1.**
2929
- 1.**.x
30+
- release-1.**
3031

3132
concurrency:
3233
group: ${{ github.workflow }}-${{ github.event.number || github.event.pull_request.head.ref }}
@@ -47,7 +48,7 @@ jobs:
4748
echo "✓"
4849
4950
adoc_build:
50-
name: Asciidoctor Build For PR branch preview
51+
name: Ccutil Build For PR branch preview
5152
runs-on: ubuntu-latest
5253
needs: authorize
5354
permissions:
@@ -68,13 +69,13 @@ jobs:
6869
# update
6970
sudo apt-get update -y || true
7071
# install
71-
sudo apt-get -y -q install asciidoctor && asciidoctor --version
72+
sudo apt-get -y -q install podman && podman --version
7273
echo "GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
7374
7475
- name: Build guides and indexes
7576
run: |
7677
echo "Building PR ${{ github.event.pull_request.number }}"
77-
build/scripts/build.sh -b "pr-${{ github.event.number }}"
78+
build/scripts/build-ccutil.sh -b "pr-${{ github.event.number }}"
7879
7980
- name: Pull from origin before pushing (if possible)
8081
run: |
@@ -90,14 +91,19 @@ jobs:
9091
keep_files: true
9192
publish_dir: ./titles-generated
9293

93-
- name: PR comment with doc preview
94-
uses: actions/github-script@v7
95-
with:
96-
github-token: ${{ secrets.RHDH_BOT_TOKEN }}
97-
script: |
98-
github.rest.issues.createComment({
99-
issue_number: context.issue.number,
100-
owner: context.repo.owner,
101-
repo: context.repo.repo,
102-
body: 'PR Preview: https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-${{ github.event.number }}/'
103-
});
94+
- name: PR comment with doc preview, replacing existing comments with a new one each time
95+
shell: bash
96+
env:
97+
GH_TOKEN: ${{ secrets.RHDH_BOT_TOKEN }}
98+
run: |
99+
PR_NUM="${{ github.event.number }}"
100+
ORG_REPO="${{ github.repository_owner }}/${{ github.event.repository.name }}"
101+
gh repo set-default "${ORG_REPO}"
102+
# for a given PR, check for existing comments from rhdh-bot; select the last one (if more than one)
103+
if [[ $(gh api "repos/${ORG_REPO}/issues/${PR_NUM}/comments" -q 'map(select(.user.login=="rhdh-bot"))|last|.id') ]]; then
104+
# edit that comment:
105+
gh pr comment ${PR_NUM} -R "${ORG_REPO}" --edit-last --body "Updated preview: https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-${PR_NUM}/ @ $(date "+%x %X")"
106+
else
107+
# or create a new one:
108+
gh pr comment ${PR_NUM} -R "${ORG_REPO}" --body "Preview: https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-${PR_NUM}/"
109+
fi

.github/workflows/style-guide.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Verify style guide compliance on pull request
3+
on: [pull_request]
4+
5+
jobs:
6+
vale:
7+
name: Linting with Vale
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Install Asciidoctor
13+
run: sudo apt-get install -y asciidoctor
14+
- name: Run Vale on new and modified content
15+
uses: errata-ai/[email protected]
16+
with:
17+
files: assemblies
18+
vale_flags: "--minAlertLevel=warning"
19+
reporter: github-pr-review
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.RHDH_BOT_TOKEN }}
22+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.RHDH_BOT_TOKEN }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
titles/*/build
33
index.html
44
titles-generated/
5-
.vale.ini
65
.vale-styles/RedHat
76
.vscode
87
.cache/
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; .vale.ini
2+
; Specifies Vale configuration
3+
; See: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/user-guide/installing-vale-cli/
4+
;
5+
; Download and search Vale styles in this directory:
6+
StylesPath = ../..
7+
; Minimum alert level to display:
8+
MinAlertLevel = suggestion
9+
; Display alerts on AsciiDoc files:
10+
[*.adoc]
11+
; Apply these styles:
12+
BasedOnStyles = DeveloperHub

.vale.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# .vale.ini
2+
# Specifies Vale configuration
3+
# See: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/user-guide/installing-vale-cli/
4+
#
5+
6+
# Download and search Vale styles in this directory:
7+
StylesPath = ".vale-styles"
8+
9+
# Minimum alert level to display:
10+
MinAlertLevel = suggestion
11+
12+
# Styles to download:
13+
Packages = RedHat
14+
15+
# Display alerts on AsciiDoc files:
16+
[*.adoc]
17+
# Apply these styles:
18+
BasedOnStyles = RedHat,DeveloperHub

archive/proc-customize-rhdh-branding.adoc

Lines changed: 0 additions & 55 deletions
This file was deleted.

artifacts/attributes.adoc

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,26 @@
1313
:product-version: 1.3
1414
:product-bundle-version: 1.3.0
1515
:product-chart-version: 1.3.0
16-
:product-backstage-version: 1.27.7
16+
:product-backstage-version: 1.29.2
1717
:rhdeveloper-name: Red Hat Developer
1818
:rhel: Red Hat Enterprise Linux
1919
:odf-name: OpenShift Data Foundation
2020

21+
:my-product-url: https://__<my_developer_hub_url>__
22+
2123
// Red Hat Platforms
2224
:ocp-brand-name: Red Hat OpenShift Container Platform
2325
:ocp-short: OpenShift Container Platform
2426
:ocp-very-short: RHOCP
2527
:osd-brand-name: Red Hat OpenShift Dedicated
2628
:osd-short: OpenShift Dedicated
2729
// minimum and current latest supported versions
28-
:ocp-version-min: 4.12
29-
:ocp-version: 4.15
30+
:ocp-version-min: 4.14
31+
:ocp-version: 4.17
3032
// First mention of OpenShift CLI or `oc` in a module
3133
:openshift-cli: pass:quotes[OpenShift CLI (`oc`)]
34+
:rhsso-brand-name: Red Hat Single-Sign On
35+
:rhsso: RHSSO
3236

3337
// Partner Platforms
3438
:aws-brand-name: Amazon Web Services
@@ -43,6 +47,8 @@
4347
:aks-short: AKS
4448
:gke-brand-name: Google Kubernetes Engine
4549
:gke-short: GKE
50+
:gcp-brand-name: Google Cloud Platform
51+
:gcp-short: GCP
4652

4753
// Release Notes
4854
:rn-product-title: Release notes for Red Hat Developer Hub
@@ -67,3 +73,33 @@
6773

6874
:LinkPluginsGuide: https://access.redhat.com/documentation/en-us/red_hat_developer_hub/{product-version}/html-single/configuring_plugins_in_red_hat_developer_hub/index
6975
:NameOfPluginsGuide: Configuring plugins in {product}
76+
77+
:release-notes-url: https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html-single/release_notes/index
78+
:release-notes-title: Release notes
79+
80+
:installing-and-viewing-dynamic-plugins-url: https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html-single/installing_and_viewing_dynamic_plugins/index
81+
:installing-and-viewing-dynamic-plugins-title: Installing and viewing dynamic plugins
82+
83+
:authentication-book-url: https://docs.redhat.com/documentation/en-us/red_hat_developer_hub/{product-version}/html-single/authentication/index
84+
:authentication-book-title: Authentication
85+
86+
:authorization-book-url: https://docs.redhat.com/documentation/en-us/red_hat_developer_hub/{product-version}/html-single/authorization/index
87+
:authorization-book-title: Authorization
88+
89+
:installing-on-ocp-book-url: https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html-single/installing_red_hat_developer_hub_on_openshift_container_platform/index
90+
:installing-on-ocp-book-title: Installing {product} on {ocp-short}
91+
92+
:installing-on-eks-book-url: https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html-single/installing_red_hat_developer_hub_on_amazon_elastic_kubernetes_service/index
93+
:installing-on-eks-book-title: Installing {product} on {eks-brand-name}
94+
95+
:installing-on-aks-book-url: https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html-single/installing_red_hat_developer_hub_on_microsoft_azure_kubernetes_service/index
96+
:installing-on-aks-book-title: Installing {product} on {aks-brand-name}
97+
98+
:installing-in-air-gap-book-url: https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html-single/installing_red_hat_developer_hub_in_an_air-gapped_environment/index
99+
:installing-in-air-gap-book-title: Installing {product} in an air-gapped environment
100+
101+
:upgrading-book-url: https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html-single/upgrading_red_hat_developer_hub/index
102+
:upgrading-book-title: Upgrading {product}
103+
104+
:plugins-configure-book-url: https://docs.redhat.com/en/documentation/red_hat_developer_hub/{product-version}/html-single/configuring_dynamic_plugins/index
105+
:plugins-configure-book-title: Configuring dynamic plugins
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
= Enabling the Argo CD plugin
2+
3+
You can use the Argo CD plugin to visualize the Continuous Delivery (CD) workflows in OpenShift GitOps. This plugin provides a visual overview of the application’s status, deployment details, commit message, author of the commit, container image promoted to environment and deployment history.
4+
5+
.Prerequisites
6+
7+
* Add Argo CD instance information to your `app-config.yaml` configmap as shown in the following example:
8+
9+
+
10+
[source,yaml]
11+
----
12+
argocd:
13+
appLocatorMethods:
14+
- type: 'config'
15+
instances:
16+
- name: argoInstance1
17+
url: https://argoInstance1.com
18+
username: ${ARGOCD_USERNAME}
19+
password: ${ARGOCD_PASSWORD}
20+
- name: argoInstance2
21+
url: https://argoInstance2.com
22+
username: ${ARGOCD_USERNAME}
23+
password: ${ARGOCD_PASSWORD}
24+
----
25+
26+
* Add the following annotation to the entity’s `catalog-info.yaml` file to identify the Argo CD applications.
27+
28+
+
29+
[source,yaml]
30+
----
31+
annotations:
32+
...
33+
# The label that Argo CD uses to fetch all the applications. The format to be used is label.key=label.value. For example, rht-gitops.com/janus-argocd=quarkus-app.
34+
35+
argocd/app-selector: '${ARGOCD_LABEL_SELECTOR}'
36+
----
37+
38+
* (Optional) Add the following annotation to the entity’s `catalog-info.yaml` file to switch between Argo CD instances as shown in the following example:
39+
40+
+
41+
[source,yaml]
42+
----
43+
annotations:
44+
...
45+
# The Argo CD instance name used in `app-config.yaml`.
46+
47+
argocd/instance-name: '${ARGOCD_INSTANCE}'
48+
----
49+
50+
+
51+
[NOTE]
52+
====
53+
If you do not set this annotation, the Argo CD plugin defaults to the first Argo CD instance configured in `app-config.yaml`.
54+
====
55+
56+
.Procedure
57+
58+
. Add the following to your dynamic-plugins ConfigMap to enable the Argo CD plugin.
59+
+
60+
[source,yaml]
61+
----
62+
global:
63+
dynamic:
64+
includes:
65+
- dynamic-plugins.default.yaml
66+
plugins:
67+
- package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-argo-cd-backend-dynamic
68+
disabled: false
69+
- package: ./dynamic-plugins/dist/backstage-community-plugin-redhat-argocd
70+
disabled: false
71+
----
72+
73+
[role="_additional-resources"]
74+
.Additional resources
75+
76+
* The package path, scope, and name of the {company-name} ArgoCD plugin has changed since 1.2. For more information, see link:{release-notes-url}#removed-functionality-rhidp-4293[Breaking Changes] in the _{rn-product-title}_.
77+
78+
* For more information on installing dynamic plugins, see link:{installing-and-viewing-dynamic-plugins-url}[{installing-and-viewing-dynamic-plugins-title}].

0 commit comments

Comments
 (0)