Remove latest vs. archive document header (#20103)
This is done as the docs are no longer built twice. Closes #19974
This commit is contained in:
parent
1d7545d245
commit
75ea22bad2
6 changed files with 7 additions and 66 deletions
|
@ -1,6 +1,5 @@
|
||||||
:icons: font
|
:icons: font
|
||||||
:idprefix:
|
:idprefix:
|
||||||
:idseparator: -
|
:idseparator: -
|
||||||
:project_buildType: latest
|
|
||||||
ifndef::asciidoctorconfigdir[:asciidoctorconfigdir: .]
|
ifndef::asciidoctorconfigdir[:asciidoctorconfigdir: .]
|
||||||
include::{asciidoctorconfigdir}/topics/templates/document-attributes.adoc[]
|
include::{asciidoctorconfigdir}/topics/templates/document-attributes.adoc[]
|
||||||
|
|
|
@ -67,41 +67,11 @@
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.versionarchive {
|
div.top-menu-version p {
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.versionarchive p {
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 2px 5px 2px 10px;
|
padding: 2px 5px 2px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.versionarchive a {
|
|
||||||
background-color: #ffdd57;
|
|
||||||
padding: 0 5px;
|
|
||||||
font-style: normal;
|
|
||||||
border-radius: 5px;
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.versionlatest {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.versionlatest p {
|
|
||||||
background-color: #eee;
|
|
||||||
border-radius: 5px;
|
|
||||||
margin: 0;
|
|
||||||
padding: 2px 5px 2px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.versionlatest em {
|
|
||||||
background-color: #23d160;
|
|
||||||
padding: 0 5px;
|
|
||||||
font-style: normal;
|
|
||||||
border-radius: 5px;
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TOC */
|
/* TOC */
|
||||||
|
|
|
@ -32,8 +32,6 @@
|
||||||
|
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
|
|
||||||
<buildType>archive</buildType>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@ -61,17 +59,6 @@
|
||||||
<module>tests</module>
|
<module>tests</module>
|
||||||
</modules>
|
</modules>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
|
||||||
<id>latest</id>
|
|
||||||
<activation>
|
|
||||||
<property>
|
|
||||||
<name>latest</name>
|
|
||||||
</property>
|
|
||||||
</activation>
|
|
||||||
<properties>
|
|
||||||
<buildType>latest</buildType>
|
|
||||||
</properties>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -169,7 +156,6 @@
|
||||||
<idseparator>-</idseparator>
|
<idseparator>-</idseparator>
|
||||||
<docinfo1>true</docinfo1>
|
<docinfo1>true</docinfo1>
|
||||||
<masterFile>${masterFile}</masterFile>
|
<masterFile>${masterFile}</masterFile>
|
||||||
<project_buildType>${buildType}</project_buildType>
|
|
||||||
</attributes>
|
</attributes>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
|
|
|
@ -139,7 +139,7 @@ public class Config {
|
||||||
|
|
||||||
Map<String, Object> options = OptionsBuilder.options()
|
Map<String, Object> options = OptionsBuilder.options()
|
||||||
.inPlace(true)
|
.inPlace(true)
|
||||||
.attributes(AttributesBuilder.attributes().backend("html5").attribute("project_buildType", buildType).asMap())
|
.attributes(AttributesBuilder.attributes().backend("html5").asMap())
|
||||||
.asMap();
|
.asMap();
|
||||||
|
|
||||||
Document document = asciidoctor.loadFile(f, options);
|
Document document = asciidoctor.loadFile(f, options);
|
||||||
|
|
|
@ -11,15 +11,8 @@
|
||||||
:api-management!:
|
:api-management!:
|
||||||
:on-prem:
|
:on-prem:
|
||||||
|
|
||||||
ifeval::["{project_buildType}" == "latest"]
|
|
||||||
:project_versionLinks: latest
|
|
||||||
endif::[]
|
|
||||||
ifeval::["{project_buildType}" == "archive"]
|
|
||||||
:project_versionLinks: {project_version}
|
|
||||||
endif::[]
|
|
||||||
|
|
||||||
:project_images: keycloak-images
|
:project_images: keycloak-images
|
||||||
:project_doc_base_url: https://www.keycloak.org/docs/{project_versionLinks}
|
:project_doc_base_url: https://www.keycloak.org/docs/{project_version}
|
||||||
:project_doc_base_url_latest: https://www.keycloak.org/docs/latest
|
:project_doc_base_url_latest: https://www.keycloak.org/docs/latest
|
||||||
:project_dirref: KEYCLOAK_HOME
|
:project_dirref: KEYCLOAK_HOME
|
||||||
:project_openshift_product_name: Keycloak for OpenShift
|
:project_openshift_product_name: Keycloak for OpenShift
|
||||||
|
|
|
@ -27,12 +27,5 @@ endif::[]
|
||||||
|
|
||||||
[.top-menu-version]
|
[.top-menu-version]
|
||||||
====
|
====
|
||||||
ifeval::["{project_buildType}" == "latest"]
|
Version *{project_version}*
|
||||||
[.versionlatest]
|
|
||||||
Version *{project_version}* _Latest_
|
|
||||||
endif::[]
|
|
||||||
ifeval::["{project_buildType}" == "archive"]
|
|
||||||
[.versionarchive]
|
|
||||||
Version *{project_version}* _{release_header_latest_link}[Click here for latest]_
|
|
||||||
endif::[]
|
|
||||||
====
|
====
|
Loading…
Reference in a new issue