Skip to content

Commit

Permalink
removed markdown plugin for callouts
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Apr 10, 2024
1 parent aa1480a commit a69b719
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 39 deletions.
26 changes: 0 additions & 26 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,32 +69,6 @@ export default async () => {

markdown: {
math: true, // Allow latex math

// Add ::: goal|warning ::: custom markdown-it plugins
config: (md) => {
md.use(...[container, 'goal', {
render(tokens, idx) {
if (tokens[idx].nesting === 1) {
return `
<div class="custom-block" bg="green-10 dark:green/20" text="green dark:green-60">
<p flex gap-x-8><div i-nimiq:flag></div><span>Goal</span></p>
`
}
else { return `</div>\n` }
},
}])
md.use(...[container, 'warning', {
render(tokens, idx) {
if (tokens[idx].nesting === 1) {
return `
<div class="custom-block" bg="yellow/10 dark:yellow/20" text="orange dark:yellow-60">
<p flex gap-x-8><div i-nimiq:icons-lg-tools text="orange dark:yellow-60"></div><span>Warning</span></p>
`
}
else { return `</div>\n` }
},
}])
},
},

head: [
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Feel free to contribute if you want to improve any part of the docs. PRs all wel

```bash
git clone https://github.com/nimiq/developer-center # Clone repo. You can also fork it and clone from your fork
cd nimiq-developer-center
cd developer-center
pnpm install # Install pnpm first if you don't have it -> https://pnpm.io/installation
pnpm dev # Start dev server
```
12 changes: 8 additions & 4 deletions build/nimiq-1.0/downloads.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ search: false

# Downloads

::: warning
<Callout type='warning'>

This page describes the installation and usage of the precompiled packages linked below. For better performance, you might also consider to compile the miner [source code](https://github.com/nimiq/core-js) on the machine where it is intended to be used.
:::

</Callout>

## Packages

Expand Down Expand Up @@ -59,9 +61,11 @@ For Microsoft Windows operating systems

## Configuration

::: warning
<Callout type='warning'>

To run a Nimiq Full Node and receive connections from other peers you need a valid domain name and SSL certificate.
:::

</Callout>

The configuration file for Linux is located in `/etc/nimiq/nimiq.conf`

Expand Down
6 changes: 3 additions & 3 deletions build/ui/design/icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ next: false

### Installing via NPM

::: warning
<Callout type='warning'>

Working on it at the moment
Work in Progress

:::
</Callout>

### Copy per Icon

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"jszip": "^3.10.1",
"markdown-it-mathjax3": "^4.3.2",
"medium-zoom": "^1.1.0",
"nimiq-css": "^0.0.69",
"nimiq-css": "^0.0.70",
"prettier": "^3.2.5",
"radix-vue": "^1.6.2",
"svg-packer": "^0.0.3",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a69b719

Please sign in to comment.