Skip to content
Closed

Test #931

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@

You can add inline code snippets or code blocks. Code blocks support meta options for syntax highlighting, titles, line highlighting, icons, and more.

<Info>
This is acallout

Check warning on line 12 in code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

code.mdx#L12

Did you really mean 'acallout'?
</Info>

<Steps>
<Step title="Step test">
<Check>
hhhfjf

Check warning on line 18 in code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

code.mdx#L18

Did you really mean 'hhhfjf'?
</Check>
</Step>
</Steps>

### Inline code

To denote a `word` or `phrase` as code, enclose it in backticks (\`).
Expand All @@ -22,7 +34,7 @@

Specify the programming language for syntax highlighting and to enable meta options. Add any meta options, like a title or icon, after the language.

```java HelloWorld.java lines icon="java"
```java HelloWorld.java icon=java lines
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
Expand Down Expand Up @@ -57,7 +69,7 @@

Enable syntax highlighting by specifying the programming language after the opening backticks of a code block.

We use [Shiki](https://shiki.style/) for syntax highlighting and support all available languages. See the full list of [languages](https://shiki.style/languages) in Shiki's documentation.

Check warning on line 72 in code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

code.mdx#L72

Did you really mean 'Shiki's'?

```java
class HelloWorld {
Expand Down Expand Up @@ -95,7 +107,7 @@

Add an icon to your code block. You can use [FontAwesome](https://fontawesome.com/icons) icons, [Lucide](https://lucide.dev/icons/) icons, or absolute URLs.

```javascript icon="square-js"
```javascript icon=square-js
const hello = "world";
```

Expand All @@ -109,7 +121,7 @@

Highlight specific lines in your code blocks using `highlight` with the line numbers or ranges you want to highlight.

```javascript Line Highlighting Example highlight= {1-2,5}
```javascript Line Highlighting Example {1,2,5}
const greeting = "Hello, World!";
function sayHello() {
console.log(greeting);
Expand All @@ -131,7 +143,7 @@

Focus on specific lines in your code blocks using `focus` with line numbers or ranges.

```javascript Line Focus Example focus= {2,4-5}
```javascript Line Focus Example focus=2,4,5
const greeting = "Hello, World!";
function sayHello() {
console.log(greeting);
Expand Down Expand Up @@ -304,7 +316,7 @@

Add single line comments with `[!code ++]` and `[!code --]` to mark added and removed lines. You can also mark multiple lines with a single comment, such as `[!code ++:3]` or `[!code --:5]`.

```js Diff Example icon="code" lines
```js Diff Example icon=code lines
const greeting = "Hello, World!"; // [!code ++]
function sayHello() {
console.log("Hello, World!"); // [!code --]
Expand Down
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"group": "Getting started",
"pages": [
"index",
"test",
"quickstart",
"installation",
"editor"
Expand Down
7 changes: 7 additions & 0 deletions test.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "Test Example"
description: "Description of test"
---

1. Test
2. test 2
Loading