Skip to content

Commit 9f437f7

Browse files
authored
Update documentation for Nordcraft 3.0 (#515)
1 parent 1f0d9f7 commit 9f437f7

77 files changed

Lines changed: 1556 additions & 210 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CONTRIBUTING.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,19 @@ This guide contains all the information you need about:
88

99
- formatting requirements
1010
- content standards
11+
- screenshot generation and processing tools
1112
- the contribution workflow process
1213

14+
## Screenshots
15+
16+
We provide built-in scripts to automate screenshot generation and keep images consistent with documentation guidelines:
17+
18+
- `bun run screenshots [target]`: Automatically capture documentation screenshots using Playwright.
19+
- `bun run screenshots:record [target]`: Open an interactive browser with session mocks to record user clicks for new screenshots.
20+
- `bun run screenshots:process <input.png> <target>`: Convert and resize external PNG/JPEG captures into standard (`800x450`) and large (`3200x1800`) WebP files with annotations.
21+
22+
See the [Contribution Guide](/docs/guides/contribution/index.md#screenshot-tooling) for full details.
23+
1324
## List of Contributors
1425

1526
In order to be listed as a contributor, please add your email/username to the [contributors.json](/proxy/contributors.json) file.

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The order in which sections and pages appear is defined in the [docs/index.json]
3030

3131
## Contributing
3232

33-
We welcome contributions from our community! If you'd like to contribute to the documentation, please read our [Contribution Guide](/docs/guides/contribution-guide/index.md) for details on our code of conduct, the process for submitting pull requests and an explanation of our documentation structure.
33+
We welcome contributions from our community! If you'd like to contribute to the documentation, please read our [Contribution Guide](/docs/guides/contribution/index.md) for details on our code of conduct, the process for submitting pull requests, screenshot tooling, and an explanation of our documentation structure.
3434

3535
For quick fixes, you can click the "Edit" button on any documentation page, which will take you directly to the corresponding file in this repository.
3636

‎bun.lock‎

Lines changed: 93 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-28.5 KB
Loading
-8.44 KB
Loading
-88.7 KB
Loading
-16 KB
Loading

‎docs/actions/working-with-actions/index.md‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,21 @@ title: Creating custom actions using JavaScript
1818

1919
## Create an action
2020

21-
![The project sidebar is visible on the left of the editor, showing an action named confetti in the actions list. To the right, the confetti action is visible, showing a number of inputs, a single defined event name, and the custom code further to the right in an IDE-like text editor. The image is annotated according to the list items below.|16/9](create-an-action.webp 'Create an action'){https://editor.nordcraft.com/projects/docs_examples/branches/main/actions/confetti?rightpanel=style&canvas-width=800&canvas-height=800}
21+
![The actions list is open in the left sidebar, showing custom actions. The confetti action is open in the editor with custom code on the right.|16/9](create-an-action.webp 'Create an action'){https://editor.nordcraft.com/projects/docs_examples/branches/main/actions/confetti?rightpanel=style&canvas-width=800&canvas-height=800}
2222

2323
To create an action:
2424

25-
1. Open the [project sidebar](/the-editor/project-sidebar) by clicking the folder icon or using [kbd]Cmd/Ctrl[kbd] + [kbd]K[kbd]
26-
2. Locate the **Actions** section, click the [kbd]+[kbd] button and enter a name
25+
### Using the command palette (recommended)
26+
27+
1. Press [kbd]Cmd/Ctrl[kbd] + [kbd]Shift[kbd] + [kbd]K[kbd] to open the [command palette](/the-editor/command-palette) in action mode
28+
2. Select **Create action** (or type "Create action" and press [kbd]↵[kbd])
29+
3. Enter a name and short description for your action
30+
4. Write your JavaScript code in the code editor
31+
32+
### Using the sidebar
33+
34+
1. Click the [kbd]Actions[kbd] button in the left sidebar to open the list of actions
35+
2. Click the [kbd]+[kbd] button at the top of the list and enter a name
2736
3. Add a short description for your action
2837
4. Write your JavaScript code in the code editor
2938

-29.3 KB
Loading
-8.73 KB
Loading

0 commit comments

Comments
 (0)