Skip to content

Commit

Permalink
fix: announcement bar
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCatLady committed Apr 9, 2024
1 parent bc6848d commit 5df47f4
Show file tree
Hide file tree
Showing 97 changed files with 3,395 additions and 2,754 deletions.
11 changes: 7 additions & 4 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { themes as prismThemes } from 'prism-react-renderer';
import rehypeKatex from 'rehype-katex';
import remarkKroki from 'remark-kroki-plugin';
import remarkMath from 'remark-math';
import { EnumChangefreq } from 'sitemap';
import latestRelease from './latestRelease.json';
import versions from './versions.json';

Expand Down Expand Up @@ -197,7 +196,11 @@ const config: Config = {
'./src/css/openapi-docs.css',
],
},
sitemap: { changefreq: EnumChangefreq.DAILY, priority: 0.5 },
sitemap: {
lastmod: 'date',
changefreq: null,
priority: null,
},
} satisfies Preset.Options,
],
],
Expand Down Expand Up @@ -386,8 +389,8 @@ const config: Config = {
],
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 5 },
announcementBar: {
id: `announcementBar-fix`,
content: `Don't want to manage your own Resoto installation? Check out <a href="https://fix.security">Fix</a>, an all-in-one security dashboard built on top of Resoto.`,
content: `<strong>Resoto is now <a href="https://inventory.fix.security">Fix Inventory</a>.</strong><br />Upgrade to Fix Inventory for the latest features and improvements.<br />Don't want to manage your own installation? Get started for free with <a href="https://fix.security">Fix</a>, an all-in-one security dashboard built on top of Fix Inventory.`,
isCloseable: false,
},
navbar: {
hideOnScroll: true,
Expand Down
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
},
"dependencies": {
"@1password/docusaurus-plugin-stored-data": "0.1.0",
"@docusaurus/core": "3.1.1",
"@docusaurus/plugin-pwa": "3.1.1",
"@docusaurus/plugin-sitemap": "3.1.1",
"@docusaurus/preset-classic": "3.1.1",
"@docusaurus/theme-mermaid": "3.1.1",
"@docusaurus/core": "3.2.1",
"@docusaurus/plugin-pwa": "3.2.1",
"@docusaurus/plugin-sitemap": "3.2.1",
"@docusaurus/preset-classic": "3.2.1",
"@docusaurus/theme-mermaid": "3.2.1",
"@fec/remark-a11y-emoji": "4.0.2",
"@mdx-js/react": "3.0.1",
"@octokit/core": "6.0.1",
"@rive-app/react-canvas": "4.8.3",
"@octokit/core": "6.1.1",
"@rive-app/react-canvas": "4.8.6",
"a11y-react-emoji": "1.2.0",
"clsx": "2.1.0",
"docusaurus-plugin-openapi-docs": "3.0.0-beta.5",
"docusaurus-theme-openapi-docs": "3.0.0-beta.5",
"docusaurus-plugin-openapi-docs": "3.0.0-beta.10",
"docusaurus-theme-openapi-docs": "3.0.0-beta.10",
"formik": "2.4.5",
"github-slugger": "2.0.0",
"lodash": "4.17.21",
Expand All @@ -51,38 +51,38 @@
"react-netlify-forms": "1.3.3",
"react-tabs": "6.0.2",
"react-wrap-balancer": "1.1.0",
"react-zoom-pan-pinch": "3.4.3",
"react-zoom-pan-pinch": "3.4.4",
"rehype-katex": "7.0.0",
"remark-kroki-plugin": "0.1.1",
"remark-math": "6.0.0",
"yup": "1.3.3"
"yup": "1.4.0"
},
"devDependencies": {
"@commitlint/cli": "19.0.3",
"@commitlint/config-conventional": "19.0.3",
"@docusaurus/module-type-aliases": "3.1.1",
"@docusaurus/tsconfig": "3.1.1",
"@docusaurus/types": "3.1.1",
"@typescript-eslint/eslint-plugin": "7.1.0",
"@typescript-eslint/parser": "7.1.0",
"asciinema-player": "3.7.0",
"@commitlint/cli": "19.2.1",
"@commitlint/config-conventional": "19.1.0",
"@docusaurus/module-type-aliases": "3.2.1",
"@docusaurus/tsconfig": "3.2.1",
"@docusaurus/types": "3.2.1",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"asciinema-player": "3.7.1",
"commitizen": "4.3.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-formatjs": "4.12.2",
"eslint-plugin-formatjs": "4.13.0",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-regexp": "2.2.0",
"eslint-plugin-regexp": "2.5.0",
"husky": "9.0.11",
"lint-staged": "15.2.2",
"postcss": "8.4.35",
"postcss": "8.4.38",
"prettier": "3.2.5",
"prettier-plugin-css-order": "2.0.1",
"prettier-plugin-css-order": "2.1.2",
"react-lite-youtube-embed": "^2.4.0",
"svgo": "3.2.0",
"typescript": "5.3.3"
"typescript": "5.4.4"
},
"browserslist": {
"production": [
Expand Down
7 changes: 5 additions & 2 deletions src/css/announcement-bar.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ div[class^='announcementBar_'] {
);
color: var(--ifm-color-content);
font-weight: 600;
font-size: 115%;
padding: 0.25rem 1rem;
}

html[data-theme='dark'] div[class^='announcementBar_'] {
--stripe-color1: #3d176e99;
--stripe-color2: #3d176e33;
}

div[class^='announcementBar_'] .close {
color: var(--ifm-color-content);
div[class^='announcementBar_'] strong {
font-size: 150%;
font-weight: 800;
}
1 change: 1 addition & 0 deletions src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
#b06cff 75%,
#c596ff
);
--docusaurus-announcement-bar-height: auto !important;
}

html[data-theme='dark'] {
Expand Down
4 changes: 2 additions & 2 deletions src/theme/NavbarItem/NavbarNavLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function NavbarNavLink({
href={prependBaseUrlToHref ? normalizedHref : href}
{...props}
{...linkContentProps}
{...(href.startsWith('https://inventory.fix.security')
{...(href?.startsWith('https://inventory.fix.security')
? { target: '_self' }
: {})}
/>
Expand All @@ -73,7 +73,7 @@ export default function NavbarNavLink({
})}
{...props}
{...linkContentProps}
{...(toUrl.startsWith('https://inventory.fix.security')
{...(toUrl?.startsWith('https://inventory.fix.security')
? { target: '_self' }
: {})}
/>
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-3.X/getting-started/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This section of the documentation walks you through how to [install](./install-r

:::tip

Don't want to manage your own Resoto installation? Check out **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.
Don't want to manage your own Resoto installation? Get started for free with **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The [Resoto web installer](./web-installer/index.mdx) is the easiest way to get

:::tip

Don't want to manage your own Resoto installation? Check out **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.
Don't want to manage your own Resoto installation? Get started for free with **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The [Resoto web installer](./web-installer/index.mdx) is the easiest way to get

:::tip

Don't want to manage your own Resoto installation? Check out **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.
Don't want to manage your own Resoto installation? Get started for free with **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you are not comfortable sharing your credentials, you can alternatively use t

:::tip

Don't want to manage your own Resoto installation? Check out **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.
Don't want to manage your own Resoto installation? Get started for free with **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The Resoto DigitalOcean Marketplace app is no longer actively maintained. We rec

:::tip

Don't want to manage your own Resoto installation? Check out **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.
Don't want to manage your own Resoto installation? Get started for free with **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ unlisted: false

:::tip

Don't want to manage your own Resoto installation? Check out **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.
Don't want to manage your own Resoto installation? Get started for free with **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The Resoto Helm chart is no longer actively maintained. We recommend [running Re

:::tip

Don't want to manage your own Resoto installation? Check out **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.
Don't want to manage your own Resoto installation? Get started for free with **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Resoto consists of a number of distributed components that are intended to run 2

:::tip

Don't want to manage your own Resoto installation? Check out **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.
Don't want to manage your own Resoto installation? Get started for free with **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_label: Maintenance

:::tip

Don't want to manage your own Resoto installation? Check out **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.
Don't want to manage your own Resoto installation? Get started for free with **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ We regularly release [new versions of Resoto](/releases) with bug fixes and new

:::tip

Don't want to manage your own Resoto installation? Check out **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.
Don't want to manage your own Resoto installation? Get started for free with **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.

:::

Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-3.X/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Resoto's documentation is organized as follows:

:::tip

Don't want to manage your own Resoto installation? Check out **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.
Don't want to manage your own Resoto installation? Get started for free with **[Fix](https://fix.security)**, an all-in-one security dashboard built on top of Resoto.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "**Experimental**: This API is not stable and might be subject of c
sidebar_label: "Abort a batch update"
hide_title: true
hide_table_of_contents: true
api: eJy9VMFu00AQ/ZXVnCBa1YETrBBSgByQkEAlcGkjNLYn9rb2ers7rhpZ/nc0GzdN2lKJCpFLkt3xzHtv3vMAJcUiWM+2c2BgNlveeAq2JcfYzGZGrWob1eLbZ2Wjch2ryJg3pNCVqrVVzSonFfv8ggpW3UYVNbqKTt7lIXt/7hZ5F1ihypGLWvW+RKaTcwcaGKsI5gyqgL7+1aLDimQorDV4DNgSU5CKARy2BGaqtCVosALVI9eggW6w9Y0UBIodd6DvUVrVpGxJju3GUhCMXJNK3UBDoKveBirBcOhJQyxqahHMALz10jVysK6CcdR7JInNQyTHYxcT6YPRNipUu36Ka2TVO3vVU7O9K4oJ3JFcfwVyLcXRdy5SlPvX87l8HUP7eqlaihErAg1F51h0NwOg940tUKqyiyilwx9HHQr/IcFF2TWVJzDKR0NLXHclGCipIZZRSScDWdI+G24XOmaJbzbc6jqChkjh+tYAfWjAQM3so8myoe4ij2bwXWCpvMZgxZKJr9ztCG+wbxgMNF2BTToeNcgzx9dv3s7ngngtu9x0iajlROs0+Ul97AKp0+X3laRA5lGIOx1/vtr1jNxiEmvyx2Ouv++P4U74/xi63QqZbjjzDVon+JO6w7ScKZCgwRzkLXWSs73z13qS+gyGIcdIP0IzjnJ81VPYgjlb320mLbG0UX6XYDbYRHpCjhenk91fqqez+yid6RDdNnmj6eUfaLik7eFLROL8LEj/MtfPILDfwLgeNdSEJYWk7+56URTk+eDBB5kWp++j+Wn5Zblawjj+BnEWEGI=
api: eJy9VFFv0zAQ/iuWn6CqlsETRAipQB+QkECj8LJV6JpcG2+O7dmXaVWU/86d03UtG0hMiL4kOX++++6779rrGlMVTSDjnS71ZDK/DRhNi47ATialWjQmqdmXj4ofzpNKBCuLClytWrNpSK1QpW51iRUpv1ZVA26DJ29WsXh74WYrH0mBWgFVjepCDYQnF05PNcEm6fJcbyKE5kcLDjYoRfVyqgNEaJEwCqLXjj+Y2og0NV82QjUANfyOt9AGK4CIyZPn0HFLiwaVqTm1WRuMwpE4krMxNuJ1ZyLWuqTY4VSnqsEWdNlr2gbJmigat9HDMN0zyd08ZHJcdrZr+qA0KwhqzMccgFTnzHWHdnsPSpnckVx/RXIp4BS8S5jk/OXpqTyOqX2+Ui2mxIpz7so7Et0ZBSFYU4Ggissk0P63pQ6Ff5fpgswa6xNmwb+p5gk2nilzccvD1NNRp1IXWfuivxvoUOR+i/5O14GxCePNnQG6aPlaQxRSWRR94xMNZR+4nCBvIBqxZO5XzsaG19BZftXWV2BzmDnJnePjV69ZoSELZ9za50YN5bbOsp/Uex9Rnc2/LmQLpB7TGnX8/mLMmYj9Kzd3/njM9b/6o78X/j8u3ThCwlsqggU2L/PP6va74ewWkrHlwb7lTBLbO5/lGqU+1z3PLeG3aIdBwmzouOX48n4yeYi1SfLOhliDTfgHOZ6d7ez+XP15dx9tZxcEt83esJ188esVbg//RGSdn0TpX+71ExrYT2BYMrZBqDFmfcfjWVVhoIOLD3ZanL5fzQ/zT/PFnP3/E3EWEGI=
sidebar_class_name: "delete api-method"
info_path: versioned_docs/version-3.X/reference/api/resoto-core-rest-api
custom_edit_url: null
Expand All @@ -21,14 +21,16 @@ import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<h1
<Heading
as={"h1"}
className={"openapi__heading"}
children={"Abort a batch update"}
>
Abort a batch update
</h1>
</Heading>

<MethodEndpoint
method={"delete"}
Expand All @@ -39,7 +41,13 @@ import TabItem from "@theme/TabItem";

**Experimental**: This API is not stable and might be subject of change.<br/> Abort a batch update.

## Request
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>

<details
style={{"marginBottom":"1rem"}}
Expand Down Expand Up @@ -123,7 +131,7 @@ import TabItem from "@theme/TabItem";
style={{"marginLeft":"1rem"}}
>
<div
style={{"marginTop":".5rem","marginBottom":".5rem","marginLeft":"1rem"}}
style={{"marginTop":".5rem","marginBottom":".5rem"}}
>


Expand Down
Loading

0 comments on commit 5df47f4

Please sign in to comment.