@lexibase/create-rdx 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexibase/create-rdx",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Create a new RDX documentation project.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -0,0 +1,37 @@
1
+ ---
2
+ title: Code blocks
3
+ description: Highlight code, compare changes, and draw directory trees.
4
+ link_position: 9
5
+ ---
6
+
7
+ ## Compare changes
8
+
9
+ Use a `diff` fence. Prefix removed lines with `-`, added lines with `+`,
10
+ and unchanged lines with a space. The copy button copies the patch as shown.
11
+
12
+ ```diff
13
+ -const search = false
14
+ +const search = true
15
+ console.log(search)
16
+ ```
17
+
18
+ ## Draw a folder tree
19
+
20
+ Use a `folder` fence with two spaces per level. End folder names with `/`.
21
+ The diagram's branches are generated from those indents.
22
+
23
+ ```folder
24
+ my-docs/
25
+ docs/
26
+ guides/
27
+ introduction.mdx
28
+ public/
29
+ images/
30
+ logo.svg
31
+ components/
32
+ home.tsx
33
+ rdx.config.ts
34
+ ```
35
+
36
+ Use `text` instead to display a diagram you have already drawn. Long lines
37
+ scroll inside the block. The icon in the header copies the rendered tree.
@@ -14,6 +14,10 @@ Put images inside `public/` and reference them from the site root:
14
14
  ![RDX logo](/images/rdx.svg)
15
15
  ```
16
16
 
17
+ Click the image to open its preview, or focus it and press Enter or Space.
18
+ Press Escape, use the close button, or click outside to return to the page.
19
+ Images inside links follow the link; images with empty alt text are decorative.
20
+
17
21
  The file above lives at `public/images/rdx.svg`, not in `docs/` or `.rdx/`.
18
22
 
19
23
  ## Downloads
@@ -9,7 +9,7 @@
9
9
  "start": "rdx start"
10
10
  },
11
11
  "dependencies": {
12
- "@lexibase/rdx": "2.0.0",
12
+ "@lexibase/rdx": "3.0.0",
13
13
  "next": "^16.4.2",
14
14
  "react": "19.3.1",
15
15
  "react-dom": "19.3.1"