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

Update prod #3328

Merged
merged 10 commits into from
Aug 16, 2023
10 changes: 9 additions & 1 deletion src/main/content/_assets/css/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ body {
margin-bottom: 8px;
}

#article_body a {
#article_body a{
font-weight: 500;
color: #546FB5;
transition: color .2s;
Expand All @@ -159,7 +159,15 @@ body {
color: #6787D9;
}
}
#article_body a.external {
font-weight: 500;
color: #CC4D19;
transition: color .2s;

&:hover {
color: #F4914D;
}
}
.author_images_container {
display: inline-block;
margin-right: 6px;
Expand Down
11 changes: 11 additions & 0 deletions src/main/content/_assets/js/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,15 @@ $(document).ready(function () {
$('.code_block_wrapper').each(function (){
$(this).prepend('<div class="copied_confirmation">Copied to clipboard</div><input type="image" class="copy_to_clipboard" src="/img/guides_copy_button.svg" alt="Copy code block" title="Copy code block"/>');
});

$('#article_body a').each(function() {
var link = $(this);
if (link.prop('hostname') === window.location.hostname) {
return;
} else {
link.addClass('external');
}
});
})


7 changes: 6 additions & 1 deletion src/main/content/antora_ui/src/js/09-noversion.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,19 @@ $(window).on("load", function() {

var preceed1 = attempted.substring(0, attempted.lastIndexOf("/"));
preceed1 = preceed1.substring(preceed1.lastIndexOf("/") + 1);
if(preceed1 === "api" || preceed1 === "spi"){
preceed1 = "javadoc/" + preceed1;
}
if (preceed1 === "reference") {
folder = "reference";
} else {
if (
preceed1 === "feature" ||
preceed1 === "javadoc" ||
preceed1 === "config" ||
preceed1 === "command"
preceed1 === "command" ||
preceed1 === "javadoc/api" ||
preceed1 === "javadoc/spi"
) {
folder = "reference";
dir = "/" + preceed1;
Expand Down
6 changes: 3 additions & 3 deletions src/main/content/antora_ui/src/partials/head-meta.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{else if page.attributes.description }}
<meta name="description" content="{{page.attributes.description}}">
{{ else }}
<meta name="description" content="Open Liberty documentation and reference materials for developers to build applications and for administrators and operation teams to manage DevOps and deploy workloads to clouds using open cloud-native Java. Covers Open Liberty basics, development, security, deployment, and operations topics, as well as Javadoc for Jakarta EE, MicroProfile and Java EE APIs.">
<meta name="description" content="Open Liberty documentation and reference materials for developers to build applications and for administrators and operation teams to manage DevOps and deploy workloads to clouds by using open cloud-native Java. This content covers Open Liberty basics, development, security, deployment, and operations topics. It also includes Javadoc for Jakarta EE APIs, MicroProfile APIs, Java EE APIs, and Open Liberty APIs and SPIs.">
{{/if}}

<meta name="twitter:card" content="summary" />
Expand All @@ -23,7 +23,7 @@
{{else if page.attributes.description }}
<meta name="twitter:description" content="{{ page.attributes.description }}" />
{{ else }}
<meta name="twitter:description" content="Open Liberty documentation and reference materials for developers to build applications and for administrators and operation teams to manage DevOps and deploy workloads to clouds using open cloud-native Java. Covers Open Liberty basics, development, security, deployment, and operations topics, as well as Javadoc for Jakarta EE, MicroProfile and Java EE APIs." />
<meta name="twitter:description" content="Open Liberty documentation and reference materials for developers to build applications and for administrators and operation teams to manage DevOps and deploy workloads to clouds by using open cloud-native Java. This content covers Open Liberty basics, development, security, deployment, and operations topics. It also includes Javadoc for Jakarta EE APIs, MicroProfile APIs, Java EE APIs, and Open Liberty APIs and SPIs." />
{{/if}}
<meta name="twitter:image" content="https://openliberty.io/img/twitter_card.jpg" />

Expand All @@ -39,7 +39,7 @@
{{else if page.attributes.description }}
<meta property="og:description" content="{{ page.attributes.description }}" />
{{ else }}
<meta property="og:description" content="Open Liberty documentation and reference materials for developers to build applications and for administrators and operation teams to manage DevOps and deploy workloads to clouds using open cloud-native Java. Covers Open Liberty basics, development, security, deployment, and operations topics, as well as Javadoc for Jakarta EE, MicroProfile and Java EE APIs." />
<meta property="og:description" content="Open Liberty documentation and reference materials for developers to build applications and for administrators and operation teams to manage DevOps and deploy workloads to clouds by using open cloud-native Java. This content covers Open Liberty basics, development, security, deployment, and operations topics. It also includes Javadoc for Jakarta EE APIs, MicroProfile APIs, Java EE APIs, and Open Liberty APIs and SPIs." />
{{/if}}
{{#if page.open-graph-image }}
<meta property="og:image" content="{{ page.open-graph-image }}" />
Expand Down
Loading