Skip to content

Commit 9eb5554

Browse files
author
Carlos Santana
authored
Carbon 3 (#462)
* fix redirect end with slash / Signed-off-by: Carlos Santana <csantana23@gmail.com> * white background Signed-off-by: Carlos Santana <csantana23@gmail.com> * move previous announcement only home Signed-off-by: Carlos Santana <csantana23@gmail.com>
1 parent c5d6ddc commit 9eb5554

File tree

6 files changed

+52
-14
lines changed

6 files changed

+52
-14
lines changed

docs/css/extra.css

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
--md-default-bg-color: #f4f4f4;
44
}
55
:root > * {
6-
--md-code-bg-color: #efefef;
76
--md-accent-fg-color: #030303;
87
}
98
.md-nav {
@@ -101,3 +100,28 @@ span.md-ellipsis {
101100
font-size: .7rem;
102101
padding: 2px 0;
103102
}
103+
104+
/* top git source icon */
105+
.md-header__source {
106+
width: 2rem;
107+
}
108+
109+
/* search box */
110+
.md-search__inner {
111+
width: 8rem;
112+
}
113+
114+
/* center colum white */
115+
.md-content {
116+
background-color: #fff;
117+
}
118+
119+
/* adjust center column */
120+
.md-main__inner {
121+
margin-top: 0px;
122+
}
123+
124+
/* top banner home page */
125+
[data-md-color-primary=black] .md-header {
126+
background-color: #161616;
127+
}

docs/reference/tools/container-image-security-enforcement.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ This will create a public and private key combination that can be used to sign a
4848
#### Saving the private key in a vault
4949

5050

51-
Once your key has been generated, the private key should be stored within a credentials vault, such as [Key Protect](../tools/key-protect.html) or [IBM HyperProtect Crypto Services](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-overview).
51+
Once your key has been generated, the private key should be stored within a credentials vault, such as [Key Protect](key-protect.md) or [IBM HyperProtect Crypto Services](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-overview).
5252

53-
The private key should be placed in the vault as a base64 encoded string, which can be accessed by your [Tekton](../tools/tekton.html) pipeline during the image building task.
53+
The private key should be placed in the vault as a base64 encoded string, which can be accessed by your [Tekton](tekton.md) pipeline during the image building task.
5454

5555
To place the private key in a vault
5656

5757
```shell
58-
ENCODED_PRIVATE_KEY=$(gpg --export-secret-key <KEY_FINGERPRINT> | base64)
58+
ENCODED_PRIVATE_KEY=$(gpg --export-secret-key <KEY_FINGERPRINT> | base64)
5959

6060
curl -X POST https://<region>.kms.cloud.ibm.com/api/v2/keys \
6161
-H 'authorization: Bearer <IAM_token>' \
@@ -83,7 +83,7 @@ Both [Key Protect](https://cloud.ibm.com/apidocs/key-protect) and [Hyper Protect
8383

8484
#### Saving the public key
8585

86-
The public key needs to be made available to the cluster for verifying container image signatures by either creating a secret within the cluster, or making the public key available through [Artifactory](../tools/artifactory.html).
86+
The public key needs to be made available to the cluster for verifying container image signatures by either creating a secret within the cluster, or making the public key available through [Artifactory](artifactory.md).
8787

8888
Use the following commands to make the public key available for policy enforcement by creating a secret within the cluster:
8989

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ site_description: >-
33
The Cloud-Native Toolkit is an open-source collection of assets that enable application development and support teams to deliver business value quickly using Red Hat OpenShift or Kubernetes
44
site_url: https://cloudnativetoolkit.dev
55
site_author: Cloud-Native Toolkit development team
6-
repo_name: cloud-native-toolkit/developer-guide
6+
repo_name: ""
77
repo_url: https://github.com/cloud-native-toolkit/developer-guide
88
docs_dir: docs
99
site_dir: public
@@ -26,7 +26,7 @@ theme:
2626
- navigation.tracking
2727
# - navigation.tabs.sticky
2828
# - navigation.top
29-
use_directory_urls: false
29+
use_directory_urls: true
3030
plugins:
3131
- search:
3232
lang: en

overrides/assets/stylesheets/home.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,17 @@
8585
--md-primary-bg-color--light: #fff; /* Search bar text */
8686
--md-default-fg-color: #fff; /* Search result box section header */
8787
--md-default-fg-color--light: #eee; /* Search box result text */
88-
88+
89+
}
90+
91+
/* top banner home page */
92+
[data-md-color-primary=black] .md-header {
93+
background-color: #161616;
94+
border-bottom: 1px solid #393939;
8995
}
96+
97+
98+
article.md-content__inner.md-typeset {
99+
background-color: #161616;
100+
border-left: 1px solid #393939;
101+
}

overrides/home.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525
<link rel="stylesheet" href="{{ 'assets/stylesheets/home.css' | url }}" />
2626

27+
<!-- Announcement bar -->
28+
{% block announce %}
29+
<a href="https://cloud-native-toolkit.github.io/dev-guide">
30+
Previous version of site can be found here
31+
</a>
32+
{% endblock %}
33+
2734
<!-- Tabs -->
2835
{% block tabs %}{% endblock %}
2936

overrides/main.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@
4747

4848
{% endblock %}
4949

50-
<!-- Announcement bar -->
51-
{% block announce %}
52-
<a href="https://cloud-native-toolkit.github.io/dev-guide">
53-
Previous version of site can be found here
54-
</a>
55-
{% endblock %}
50+
5651

5752
<!-- Theme-related JavaScript -->
5853
{% block scripts %}

0 commit comments

Comments
 (0)