Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
[Stellar Merge] Announcement Bar (#742)
Browse files Browse the repository at this point in the history
* add an announcement bar about the docs merge, and supporting styles

* updated link to rpc helm chart values (#738)

* Add v20.2.0 release to `releases.mdx`  (#737)

* Update releases.mdx

* use latest versions

* add changelog

* update title

* Update resource limits and make a new reference page for them (#736)

* add a reference page on resource limits and fees

* remove resource fee/limit tables from "explainer" page

* removing some unnecessary comments and entries

Some of the comments are more applicable in the discussion doc,
than they are for developer documentation. So, let's get rid of
those.

* remove unnecessary "current is..." language from resource fees

* use by-name params in pagination example (#743)

Refs: #728

---------

Co-authored-by: shawn <[email protected]>
Co-authored-by: Julian Martinez <[email protected]>
  • Loading branch information
3 people authored Feb 23, 2024
1 parent c2fd200 commit 4aa26d4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
announcementBar: {
id: 'announcementBar-migration',
content: "🎉️ <strong>We're moving!!</strong> 🎉️ We're merging the Soroban documentation into the <a target='_blank' href='https://developers.stellar.org'>Stellar Developers</a> documentation. Please check <a target='_blank' href='https://github.com/stellar/soroban-docs/issues/740'>this GH issue</a> for progress and updates.",
},
image: 'img/meta.png',
docs: {
sidebar: {
Expand Down
23 changes: 23 additions & 0 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

/* You can override the default Infima variables here. */
:root {
--site-primary-hue-saturation: 179 68%;
--ifm-color-primary: #4daaa9;
// --ifm-background-color: #ffffff;
// --ifm-background-surface-color: #fafafa;
Expand Down Expand Up @@ -49,6 +50,7 @@

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme="dark"] {
--site-primary-hue-saturation: 50 94%;
--ifm-color-primary: #f9db4a;
--ifm-color-secondary: #4daaa9;
--ifm-navbar-background-color: #1b1b1d;
Expand Down Expand Up @@ -177,3 +179,24 @@ select[data-testid="example-pairing-select"] {
.sidebar-category-items-hidden ul {
display: none !important;
}

/* Announcement Bar(s) */

div[class^='announcementBar_'] {
font-size: 18px;

--site-announcement-bar-stripe-color1: hsl(
var(--site-primary-hue-saturation) 85%
);
--site-announcement-bar-stripe-color2: hsl(
var(--site-primary-hue-saturation) 95%
);

background: repeating-linear-gradient(
35deg,
var(--site-announcement-bar-stripe-color1),
var(--site-announcement-bar-stripe-color1) 20px,
var(--site-announcement-bar-stripe-color2) 10px,
var(--site-announcement-bar-stripe-color2) 40px
);
}

0 comments on commit 4aa26d4

Please sign in to comment.