Skip to content
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

Restructure docs #690

Merged
merged 16 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/config/en-custom.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ PowerShell
Pre
PubSub
ProjectRadius
Quickstart
Quickstarts
RBAC
RabbitMQ
ResourceDeploymentClient
Expand Down Expand Up @@ -291,8 +289,6 @@ publickey
publicEndpointOverride
pubsub
px
quickstart
quickstarts
rabbitMQMessageQueues
rabbitmq
radapp
Expand Down Expand Up @@ -437,6 +433,8 @@ hl
azureCache
listKeys
primaryKey
quickstart
quickstarts
mygroup
Kubeconfig
unregister
Expand All @@ -451,4 +449,5 @@ mongodb
MYCONNECTION
VHOST
Diátaxis
yourworkspace
yourworkspace
howto
218 changes: 218 additions & 0 deletions docs/assets/scss/_nav.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
//
// Main navbar
//

.td-navbar-cover {
background: $primary;

@include media-breakpoint-up(md) {
background: transparent !important;

.nav-link {
text-shadow: 1px 1px 2px $dark;
}

}

&.navbar-bg-onscroll .nav-link {
text-shadow: none;
}
}

.navbar-bg-onscroll {
background: $primary !important;
opacity: inherit;
}

.td-navbar {
background: $primary;
min-height: 4rem;
margin: 0;
z-index: 32;

@include media-breakpoint-up(md) {
position: fixed;
top: 0;
width: 100%;
}


.navbar-brand {
text-transform: none;
text-align: middle;

.nav-link {
display: inline-block;
margin-right: -30px;
}

svg {
display: inline-block;
margin: 0 10px;
height: 30px;
}
}

.nav-link {
text-transform: none;
font-weight: $font-weight-bold;
}

.td-search-input {
border: none;
color: $navbar-dark-color;
@include placeholder {
color: $navbar-dark-color;
}
}

.dropdown {
min-width: 100px;
}

@include media-breakpoint-down(md) {
padding-right: .5rem;
padding-left: .75rem;

.td-navbar-nav-scroll {
max-width: 100%;
height: 2.5rem;
margin-top: .25rem;
overflow: hidden;
font-size: .875rem;

.nav-link {
padding-right: .25rem;
padding-left: 0;
}

.navbar-nav {
padding-bottom: 2rem;
overflow-x: auto;
white-space: nowrap;
-webkit-overflow-scrolling: touch;

}
}
}
}

// Icons
#main_navbar {
li i {
padding-right: 0.5em;

&:before {
display: inline-block;
text-align: center;
min-width: 1em;
}
}
.alert {
background-color: inherit;
padding:0;
color: $secondary;
border: 0;
font-weight: inherit;

&:before {
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f0d9";
padding-left: 0.5em;
padding-right: 0.5em;
}
}
}

// Foldable sidebar menu
nav.foldable-nav {

&#td-section-nav {
position: relative;
}

&#td-section-nav label {
margin-bottom: 0;
width: 100%;
}

.td-sidebar-nav__section, .with-child ul {
list-style: none;
padding: 0;
margin: 0;
}

.ul-1 > li {
padding-left: 1.5em;
}

ul.foldable {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

input:checked ~ ul.foldable {
max-height: 100000vmax;
transition: max-height 1s ease-in-out;
}

input[type=checkbox] { display: none; }

.with-child, .without-child {
position: relative;
padding-left: 1.3em;
}

.ul-1 .with-child > label:before {
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f0da";
position: absolute;
left: 0.1em;
padding-left: 0.4em;
padding-right: 0.4em;
font-size: 1em;
color: $gray-900;
transition: all 0.5s;
&:hover{
transform: rotate(90deg);
}
}

.ul-1 .with-child > input:checked ~ label:before {
color: $primary;
transform: rotate(90deg);
transition: transform 0.5s;
}

.with-child ul { margin-top: 0.1em; }

}

@media (hover: hover) and (pointer: fine) {

nav.foldable-nav {

.ul-1 .with-child > label:hover:before {
color: $primary;
transform: rotate(30deg);
transition: transform 0.5s;
}

.ul-1 .with-child > input:checked ~ label:hover:before {
color: $primary;
transform: rotate(60deg) !important;
transition: transform 0.5s;
}
}
}
10 changes: 6 additions & 4 deletions docs/assets/scss/_sidebar-tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Left side navigation
//
.td-sidebar-nav {
padding-right: 0.5rem;
margin-right: -15px;
margin-left: -15px;
padding-right: 0.1rem;
margin-right: -20px;
margin-left: -20px;

@include media-breakpoint-up(md) {
@supports (position: sticky) {
Expand Down Expand Up @@ -54,14 +54,15 @@

.td-sidebar-link {
display: block;
padding-bottom: 0.3rem;
padding-bottom: 0.15rem;

&__page {
color: $gray-700;
}
}

a {
font-size: .9rem;
&:hover {
color: $blue;
text-decoration: none;
Expand Down Expand Up @@ -101,6 +102,7 @@
color: $td-sidebar-tree-root-color;
border-bottom: 1px $td-sidebar-tree-root-color solid;
margin-bottom: 1rem;
margin-top: 1rem;
}
}

Expand Down
2 changes: 1 addition & 1 deletion docs/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Teams can offload the complexity of wiring-up applications and let Radius employ
<a href="{{< ref networking >}}"><img src="network-logo.svg" alt="Networking logo" style="width:40%"></a>
</td>
<td style="width:25%;text-align:center">
<a href="{{< ref dapr-resources >}}"><img src="dapr-logo.svg" alt="Dapr logo" style="width:40%"></a>
<a href="{{< ref "guides/author-apps/dapr" >}}"><img src="dapr-logo.svg" alt="Dapr logo" style="width:40%"></a>
</td>
</tr>
</table>
Expand Down
9 changes: 0 additions & 9 deletions docs/content/author-apps/platform-resources/_index.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/content/author-apps/portability/_index.md

This file was deleted.

67 changes: 0 additions & 67 deletions docs/content/author-apps/vscode/_index.md

This file was deleted.

Binary file removed docs/content/author-apps/vscode/vscode-logs.png
Binary file not shown.
Binary file removed docs/content/author-apps/vscode/vscode-tree.png
Binary file not shown.
Binary file removed docs/content/author-apps/vscode/wsl-extension.png
Binary file not shown.
7 changes: 7 additions & 0 deletions docs/content/community/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
type: docs
title: "Radius Community"
linkTitle: "Community"
description: "Information about the Radius community"
weight: 80
---
Loading
Loading