-
Notifications
You must be signed in to change notification settings - Fork 83
Improve look and feel of olm site #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
// | ||
// Left side navigation | ||
// | ||
.td-sidebar-nav { | ||
padding-right: 0.5rem; | ||
margin-right: -15px; | ||
margin-left: -15px; | ||
|
||
@include media-breakpoint-up(md) { | ||
@supports (position: sticky) { | ||
// max-height: calc(100vh - 10rem); | ||
max-height: calc(100vh - 4rem); | ||
overflow-y: auto; | ||
} | ||
} | ||
|
||
|
||
@include media-breakpoint-up(md) { | ||
display: block !important; | ||
} | ||
|
||
|
||
&__section { | ||
li { | ||
list-style: none; | ||
} | ||
|
||
ul { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
@include media-breakpoint-up(md) { | ||
& > ul { | ||
padding-left: .5rem; | ||
} | ||
} | ||
|
||
|
||
padding-left: 0; | ||
} | ||
|
||
&__section-title { | ||
display: block; | ||
//font-weight: $font-weight-medium; | ||
font-weight: 550; | ||
|
||
.active { | ||
//font-weight: $font-weight-bold; | ||
font-weight: 800; | ||
color: $gray-900; | ||
} | ||
|
||
a { | ||
color: $gray-700; | ||
} | ||
} | ||
|
||
.td-sidebar-link { | ||
display: block; | ||
padding-bottom: 0.375rem; | ||
|
||
&__page { | ||
color: $gray-600; | ||
font-weight: $font-weight-light; | ||
} | ||
} | ||
|
||
a { | ||
&:hover { | ||
color: $blue; | ||
text-decoration: none; | ||
} | ||
|
||
&.active { | ||
//font-weight: $font-weight-bold; | ||
font-weight: 800; | ||
color: $gray-800; | ||
|
||
} | ||
} | ||
|
||
.dropdown { | ||
a { | ||
color: $gray-700; | ||
} | ||
|
||
.nav-link { | ||
padding: 0 0 1rem; | ||
} | ||
} | ||
} | ||
|
||
.td-sidebar { | ||
padding-top: 4rem; | ||
margin-bottom: var(--of--spacer--md); | ||
display:flex; | ||
justify-content: center; | ||
background: var(--of--color-white--200); | ||
span { | ||
margin-left: var(--of--spacer--md); | ||
font-family: var(--of--font-family); | ||
} | ||
@include media-breakpoint-up(md) { | ||
padding-top: var(--of--spacer--md); | ||
padding-bottom: 4rem; | ||
background-color: $td-sidebar-bg-color; | ||
margin-bottom: 0; | ||
padding-right: 1rem; | ||
border-right: 1px solid $td-sidebar-border-color; | ||
} | ||
|
||
&__toggle { | ||
line-height: 1; | ||
color: $gray-900; | ||
margin: 1rem; | ||
} | ||
|
||
&__search { | ||
padding: 1rem 15px; | ||
margin-right: -15px; | ||
margin-left: -15px; | ||
} | ||
|
||
&__inner { | ||
order: 0; | ||
|
||
@include media-breakpoint-up(md) { | ||
@supports (position: sticky) { | ||
position: sticky; | ||
top:71px; | ||
z-index: 10; | ||
height: calc(100vh - 6rem); | ||
} | ||
} | ||
|
||
|
||
@include media-breakpoint-up(xl) { | ||
flex: 0 1 320px; | ||
} | ||
|
||
|
||
.td-search-box { | ||
width: 100%; | ||
} | ||
|
||
&__heading { | ||
padding: var(--of--spacer--md); | ||
background: var(--of--color-brand--300); | ||
color: var(--of--color-white--100); | ||
margin-left: -15px; | ||
margin-right: -15px; | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,16 @@ description: > | |
|
||
- [git](https://git-scm.com/downloads) | ||
- [go](https://golang.org/dl/) version `v1.12+`. | ||
- [docker](https://docs.docker.com/install/) version `17.03`+. | ||
- Alternatively [podman](https://github.com/containers/libpod/blob/master/install.md) `v1.2.0+` or [buildah](https://github.com/containers/buildah/blob/master/install.md) `v1.7+` | ||
- [docker](https://docs.docker.com/install/) version `17.03`+ or [podman](https://github.com/containers/libpod/blob/master/install.md) `v1.2.0+` or [buildah](https://github.com/containers/buildah/blob/master/install.md) `v1.7+`. | ||
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) `v1.11.3+`. | ||
- Access to a Kubernetes `v1.11.3+` cluster. | ||
|
||
## Installing OLM in your cluster | ||
|
||
### Install Released OLM | ||
For installing release versions of OLM, for example version 0.12.0, you can use the following command: | ||
For installing release versions of OLM, for example version 0.15.1, you can use the following command: | ||
|
||
```bash | ||
```sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we expect users to copy these shell commands verbatim then I suggest we do not prepend There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That makes sense, I prepended the |
||
export olm_release=0.15.1 | ||
kubectl apply -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/${olm_release}/crds.yaml | ||
kubectl apply -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/${olm_release}/olm.yaml | ||
|
@@ -32,7 +31,7 @@ Learn more about available releases [here](https://github.com/operator-framework | |
|
||
To deploy OLM locally on a [minikube cluster](https://kubernetes.io/docs/tasks/tools/install-minikube/) for development work, use the `run-local` target in the [Makefile](https://github.com/operator-framework/operator-lifecycle-manager/blob/master/Makefile). | ||
|
||
```bash | ||
```sh | ||
git clone https://github.com/operator-framework/operator-lifecycle-manager.git | ||
cd operator-lifecycle-manager | ||
make run-local | ||
|
@@ -42,7 +41,7 @@ make run-local | |
|
||
You can verify your installation of OLM by first checking for all the neccesasary CRDs in the cluster: | ||
|
||
```bash | ||
```sh | ||
$ kubectl get crd | ||
NAME CREATED AT | ||
catalogsources.operators.coreos.com 2019-10-21T18:15:27Z | ||
|
@@ -54,7 +53,7 @@ subscriptions.operators.coreos.com 2019-10-21T18:15:27Z | |
|
||
And then inspecting the deployments of OLM and it's related components: | ||
|
||
```bash | ||
```sh | ||
$ kubectl get deploy -n olm | ||
NAME READY UP-TO-DATE AVAILABLE AGE | ||
catalog-operator 1/1 1 1 5m52s | ||
|
@@ -67,7 +66,7 @@ packageserver 2/2 2 2 5m43s | |
When you install OLM, it comes packaged with a number of Operators developed by the community that you can install instantly. | ||
You can use the `pacakagemanifest` api to see the operators available for you to install in your cluster: | ||
|
||
```bash | ||
```sh | ||
$ kubectl get packagemanifest -n olm | ||
NAME CATALOG AGE | ||
cassandra-operator Community Operators 26m | ||
|
@@ -79,7 +78,7 @@ wildfly Community Operators 26m | |
|
||
To install the etcd operator in the default namespace, first create an `OperatorGroup` for the default namespace: | ||
|
||
```bash | ||
```sh | ||
$ cat operatorgroup.yaml | ||
kind: OperatorGroup | ||
apiVersion: operators.coreos.com/v1 | ||
|
@@ -96,7 +95,7 @@ operatorgroup.operators.coreos.com/og-single created | |
|
||
Then create a subscription for the etcd operator: | ||
|
||
```bash | ||
```sh | ||
$ cat subscription.yaml | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
|
@@ -117,7 +116,7 @@ subscription.operators.coreos.com/etcd created | |
|
||
This installs the v0.9.2 version of the etcd operator, and then upgrades to the latest version of the etcd operator in your cluster. | ||
|
||
```bash | ||
```sh | ||
$ kubectl get sub -n default | ||
NAME PACKAGE SOURCE CHANNEL | ||
etcd etcd operatorhubio-catalog singlenamespace-alpha | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{ define "main" }} | ||
<div class="td-content"> | ||
<h1>{{ .Title }}</h1> | ||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }} | ||
{{ .Content }} | ||
{{ partial "section-index.html" . }} | ||
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }} | ||
{{ partial "feedback.html" .Site.Params.ui.feedback }} | ||
<br /> | ||
{{ end }} | ||
{{ if (.Site.DisqusShortname) }} | ||
<br /> | ||
{{ partial "disqus-comment.html" . }} | ||
{{ end }} | ||
<div class="text-muted mt-5 pt-3 border-top">{{ partial "page-meta-lastmod.html" . }}</div> | ||
</div> | ||
{{ end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{ define "main" }} | ||
{{ .Render "content" }} | ||
{{ end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anmol372 could we revert this change? We specifically wanted
margin: var(--of--spacer--md) 0 var(--of--spacer--sm);
because the spacing between the heading was looking really badThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done