Skip to content

Commit

Permalink
fix: admonitions (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeithX authored Feb 1, 2025
2 parents 67ae630 + 33e0624 commit ed0ee62
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 8 deletions.
2 changes: 1 addition & 1 deletion website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import redirects from "./redirects";
import { admonitionsConfig } from "./admonitionsConfig";
import socialProfiles from './social';

const copyright = `Copyright © ${new Date().getFullYear()} <br> Developed & Designed by Keith Tan`;
const copyright = `Copyright © ${new Date().getFullYear()} Keith Tan <br> Built for the SpaceHub Project at <a href='https://github.com/kitiplex' target='_blank'>Kitiplex</a>`;


const commonExclusions = {
Expand Down
18 changes: 18 additions & 0 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,21 @@ html[data-theme='dark'] .alert--credit {
html[data-theme='dark'] .alert--discord {
--ifm-alert-foreground-color: rgb(255, 255, 255);
}


div.theme-admonition.theme-admonition-tip.alert.alert--success {
background-color: #9ccfd8;
border-color: #56949f;
}

html[data-theme="dark"] div.theme-admonition.theme-admonition-tip {
color: #102445;
}

html[data-theme="dark"] div.theme-admonition.theme-admonition-tip svg {
fill: #102445;
}

html[data-theme="dark"] div.theme-admonition.theme-admonition-tip a {
color: #102445;
}
89 changes: 82 additions & 7 deletions website/src/pages/tests.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -343,38 +343,113 @@ $$



## Custom Admonition
## Admonition

:::success

Default Admonition

With [hyperlink](#admonition)

```bash
py -m pip install --upgrade pip
```

:::

:::caution

With [hyperlink](#admonition)

```bash
py -m pip install --upgrade pip
```
:::

:::danger

With [hyperlink](#admonition)

```bash
py -m pip install --upgrade pip
```

:::

:::info

With [hyperlink](#admonition)

```bash
py -m pip install --upgrade pip
```

:::

### Extended


:::tip

Custom tip

With [hyperlink](#admonition)

```bash
py -m pip install --upgrade pip
```

:::



:::security

This is a security warning
With [hyperlink](#admonition)

```bash
py -m pip install --upgrade pip
```
:::

:::caution
This is a security warning
With [hyperlink](#admonition)

```bash
py -m pip install --upgrade pip
```
:::

:::credit
The quick credit.
With [hyperlink](#admonition)

```bash
py -m pip install --upgrade pip
```
:::

:::discord
Discord
With [hyperlink](#admonition)

```bash
py -m pip install --upgrade pip
```
:::

:::docusaurus
Discord
With [hyperlink](#admonition)

```bash
py -m pip install --upgrade pip
```
:::

:::release
Release Test
With [hyperlink](#admonition)

```bash
py -m pip install --upgrade pip
```
:::


Expand Down

0 comments on commit ed0ee62

Please sign in to comment.