Skip to content

Commit

Permalink
506 versioning improvements (#519)
Browse files Browse the repository at this point in the history
* doc: update siteTitle  variable to teku version label

* docs: remove line break

* feat: replace docVersionBadge with custom component

* Update src/theme/DocVersionBadge/index.js

* Update src/theme/DocVersionBadge/index.js

---------

Co-authored-by: Alexandra Tran Carrillo <[email protected]>
  • Loading branch information
adeleke5140 and alexandratran authored Dec 1, 2023
1 parent 138d394 commit 1c9ea06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/theme/DocVersionBadge/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function DocVersionBadge({ className }) {
return null;
}
4 changes: 1 addition & 3 deletions src/theme/DocVersionBanner/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function UnmaintainedVersionLabel({ siteTitle, versionMetadata }) {
versionLabel: <b>{versionMetadata.label}</b>,
}}>
{
"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."
"This is documentation for Teku version {versionLabel}, which is no longer actively maintained."
}
</Translate>
);
Expand Down Expand Up @@ -98,8 +98,6 @@ function DocVersionBannerEnabled({ className, versionMetadata }) {
role="alert">
<div>
<BannerLabel siteTitle={siteTitle} versionMetadata={versionMetadata} />
</div>
<div className="margin-top--md">
<LatestVersionSuggestionLabel
versionLabel={latestVersionSuggestion.name}
to={latestVersionSuggestedDoc.path}
Expand Down

1 comment on commit 1c9ea06

@vercel
Copy link

@vercel vercel bot commented on 1c9ea06 Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.