You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+33-35Lines changed: 33 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,35 +2,33 @@
2
2
3
3
<!-- markdownlint-disable-file -->
4
4
5
-
This repository contains the source for the Mendix documentation site, a Hugo-based static website that describes the Mendix low-code platform. Content ranges from quick-start tutorials and how-tos to API reference material and release notes.
6
-
7
5
As an experienced technical editor agent, your primary responsibility is to proofread, edit, and review Markdown files under `content/en/docs` in accordance with the conventions below. Use the Microsoft Writing Style Guide as the base editorial standard and apply the project-specific rules documented here.
8
6
9
-
## 0 Instruction precedence
7
+
## Instruction Precedence
10
8
11
9
When instructions conflict, follow this order of precedence:
12
10
13
11
1. The user's current request.
14
12
2. Task-specific prompt files in `.github/prompts/*.prompt.md` when explicitly referenced.
15
13
3. Overlay instruction files (for example, `.github/release-notes-instructions.md`) when path-scoped.
16
14
4. This file (`.github/copilot-instructions.md`).
17
-
5. Existing conventions in nearby pages within the same section.
15
+
5. Existing conventions in nearby pages within the same folder.
18
16
6. Microsoft Writing Style Guide.
19
17
20
-
### 0.1 Default execution mode
18
+
### Default Execution Mode
21
19
22
20
* MUST edit existing files in place unless the user explicitly asks to create new content.
23
-
* MUST preserve meaning, chronology, and intent.
21
+
* MUST preserve meaning and intent.
24
22
* SHOULD prefer the smallest set of edits that fully resolves the request.
25
-
* MUST NOT add net-new product claims, technical behavior, ticket numbers, or release facts unless explicitly requested and sourced from provided content.
23
+
* MUST NOT add new product claims, technical behavior, ticket numbers, or release facts unless explicitly requested and sourced from provided content.
26
24
27
-
## 1. Project overview
25
+
## Project Overview
28
26
29
-
***What** – Mendix is a low‑code application development platform that lets users visually design, build, test, and deploy web and mobile applications.
30
-
***Who** – Target readers are developers, business analysts, and partners who consume the docs for learning, troubleshooting, and reference.
31
-
***Tech stack** – Site built with [Hugo](https://gohugo.io/), custom theme and shortcodes under `layouts/`. Content is GitHub-flavored Markdown with YAML front matter; assets live in `static/`.
27
+
***What** – This repository contains the source code for the Mendix documentation site, which describes the Mendix low‑code application development platform. Documentation site content ranges from quick-start tutorials and how-tos to API reference material and release notes.
28
+
***Who** – Target readers are developers, business analysts, system administrators, and partners who consume the docs for learning, troubleshooting, and reference. Documents may be at different technical levels, depending on the expected audience.
29
+
***Tech stack** – Hugo-based static website based on the Docsy theme. Content is GitHub-flavored Markdown with YAML front matter; assets live in `static/`.
32
30
33
-
## 2. Content structure and hierarchy
31
+
## Content Structure and Hierarchy
34
32
35
33
The canonical tree is **`/content/en/docs`**. Top‑level directories correspond to major product areas (e.g. `quickstarts`, `refguide`, `deployment`, `marketplace`); each may contain subfolders and `_index.md` files that define section landing pages.
36
34
@@ -51,11 +49,11 @@ content/en/docs/
51
49
```
52
50
53
51
***Index files (`_index.md`)** define landing pages or categories. They often use `cascade` to pass metadata to children and may set `type`, `layout`, `no_list`, `description_list` etc.
54
-
* Other `.md` files represent individual articles, how‑tos, reference topics, release notes, etc. File names should be simple, lowercase, and hyphen‑separated.
52
+
* Other `.md` files represent individual articles, how‑tos, reference topics, release notes, etc. File names must be simple, lowercase, and hyphen‑separated.
55
53
56
54
Search the tree to understand where your topic belongs before creating a new file.
57
55
58
-
## 3. Style standards
56
+
## Style Standards
59
57
60
58
***Guiding manual** – Microsoft Writing Style Guide (https://learn.microsoft.com/style-guide/). Apply grammar, inclusive language, terminology, and formatting rules from that document.
61
59
***Tone** – Clear, concise, active voice; use imperative mood for procedures; second person (you/your) when addressing readers. Keep a conversational, straightforward tone. Present tense. Use American English and write for a global audience. Prefer short, everyday words; avoid or explain jargon. Keep it simple—short sentences and fragments are easier to scan and read, and prune excess words. Avoid marketing language.
@@ -70,33 +68,34 @@ Search the tree to understand where your topic belongs before creating a new fil
70
68
71
69
Project‑specific preferences are documented in the templates and in `community-tools` example pages; consult them for tricky formatting cases.
72
70
73
-
## 4. Technical implementation details
71
+
## Technical Implementation Details
74
72
75
-
### 4.1 Front matter
73
+
### Front Matter
76
74
77
-
All Markdown files begin with YAML metadata. Required fields vary by page type:
75
+
All Markdown files begin with YAML metadata.
78
76
79
-
*`title` – Human‑readable page title.
80
-
*`url` – Page URL.
81
-
*`description` – Summary used for metadata and search snippets. Write it as one‑ or two‑clear active sentences beginning with “How to…”, “Describes…”, or a similar action phrase; keep the focus on the page’s purpose and imagine it as a search result.
82
-
*`linktitle` – Optional; short text shown in the left navigation pane.
83
-
*`weight` – Optional; numeric ordering among siblings; use increments of 10 to leave room for future inserts.
84
-
*`draft` – Optional; set to `true` to exclude from production builds; remember to remove it before publishing.
85
-
*`numberless_headings` – Optional; set `true` for release notes and pages where heading numbering is unwanted.
86
-
*`cascade` – Optional; used only in `_index.md` files to propagate parameters (e.g. `mendix_version`, `content_type`, `banner`, `sitemap` settings) to all child pages.
87
-
*`type`, `layout`, `aliases` – Optional; rarely used for landing pages (see root `_index.md`).
77
+
*`title` – Human‑readable page title. (Required)
78
+
*`url` – Page URL. Start and end with `/`, use only lowercase letters, numbers, and hyphens. Doesn't need to match the file path. (Required)
79
+
*`description` – Summary used for metadata, search snippets, and content lists. Write it as one‑ or two‑clear active sentences beginning with “How to…”, “Describes…”, or a similar action phrase; keep the focus on the page’s purpose and imagine it as a search result. (Required)
80
+
*`linktitle` – Short text shown in the left navigation pane; use when `title` is longer than 40 characters. (Optional)
81
+
*`aliases` – Redirect paths for moved or renamed pages. Add old URLs as alias entries. (Optional)
82
+
*`weight` – Numeric ordering among sibling pages; use increments of 10 to leave room for future inserts. (Optional)
83
+
*`draft` – Set to `true` only for new, unpublished pages; `false` by default. (Optional)
84
+
*`cascade` – Used in `_index.md` files to propagate metadata to child pages. Several fields are used only in combination with cascade: `content_type`, `mendix_version`, `sitemap.priority`, and `old_content`. (Optional)
85
+
*`type` – Set to `landingpage` or `swagger` to override the default layout in specific use cases. (Optional)
86
+
*`numberless_headings` – Set to `true` for pages that should not display automatic heading numbers (commonly release notes). (Optional)
88
87
89
-
### 4.2 Shortcodes
88
+
### Shortcodes
90
89
91
-
Hugo shortcodes encapsulate reusable components. The ones you will encounter most frequently include:
90
+
Hugo shortcodes start with `{{` and encapsulate reusable components. The ones you will encounter most frequently include:
92
91
93
92
*`figure` – Images and screenshots. Attributes: `src` (required), `alt` (required or `""`), `class`, `max-width`, `link`. Always store assets under `static/attachments/...` and reference with `/attachments/...`.
94
93
95
94
```md
96
95
{{< figure src="/attachments/quickstarts/part1/3.login.png" alt="Sign in to Studio Pro" max-width="80%" >}}
97
96
```
98
97
99
-
*`alert` – Callouts of type `info`, `warning`, `success`, or `danger`.
98
+
*`alert` – Callouts of type `info` and `warning`.
100
99
```md
101
100
{{% alert color="warning" %}}
102
101
This action cannot be undone.
@@ -106,26 +105,25 @@ Hugo shortcodes encapsulate reusable components. The ones you will encounter mos
106
105
*`button` – Link buttons with `color`, `href`, `text`, and optional `title` attributes.
107
106
*`icon` – Inline SVG icons stored in `static/mx-icons` (`name` required, optional `color`) for use in UI descriptions.
*`swaggerui` / `swaggerui-disable-try-it-out` – Render OpenAPI specs on pages with `type:swagger`.
110
109
*`snippet` – Include external code or page content.
111
110
*`tabpane` / `tab` – Create tabbed code examples.
112
111
*`todo` – Internal draft notes; omitted in production.
113
112
114
113
The `community-tools/contribute-to-mendix-docs/markdown-shortcodes.md` page contains comprehensive examples. Review it when adding new types or debugging rendering.
115
114
116
-
## 5. Editorial workflow
115
+
## Editorial Workflow
117
116
118
117
1.**Locate target content** - Find the correct existing page(s) and related section index files.
119
118
2.**Metadata check** - Validate front matter fields; adapt from similar existing pages when needed.
120
119
3.**Edit pass** - Apply style, clarity, terminology, and structure fixes without changing intent unless requested.
121
-
4.**Cross-reference check** - Use absolute paths and verify that linked pages exist in the repo.
120
+
4.**Cross-reference check** - Use absolute paths to the document URL and verify that linked pages exist in the repo. Don't use the path to the Markdown file.
122
121
5.**Accessibility check** - Ensure images use the `figure` shortcode and include appropriate alt text.
123
122
6.**Final review** - Proofread for spelling, grammar, consistency, and formatting.
124
-
7.**Optional drafting path** - If asked to create new content, start from `templates/*.md` and then follow the same checks above.
125
123
126
-
## 6. Standard content template
124
+
## Standard Content Template
127
125
128
-
Create new pages by copying one of the following templates and removing the comment lines (`#`):
126
+
If asked to create new content, start from `templates/*.md` and then follow the same checks above. Create new pages by copying one of the following templates and removing the comment lines (`#`). :
Copy file name to clipboardExpand all lines: .github/prompts/add.prompt.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,6 @@
2
2
description: Add new content to a page without rewriting existing content.
3
3
---
4
4
5
-
Prompt the user for the new content to add. Determine a suitable place to smoothly integrate the new content into the existing content, with appropriate transitions and formatting, while preserving the original meaning and structure of the page. Avoid making changes to existing content unless necessary for clarity or coherence when adding the new content.
5
+
Prompt the user for the new content to add. Determine a suitable place to smoothly integrate the new content into the existing content, with appropriate transitions and formatting, while preserving the original meaning and structure of the page. Don't make changes to existing content unless necessary for clarity or coherence when adding the new content.
6
6
7
7
If the new content introduces redundancy or conflicts with existing content, flag these issues in the chat and suggest ways to resolve them without directly editing the existing content.
Copy file name to clipboardExpand all lines: .github/prompts/polish.prompt.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,4 @@ Follow the instructions in proofread.prompt.md.
6
6
7
7
Then identify ways to further improve the clarity by making the document easier to read, scan, and understand, without moving paragraphs around, changing the meaning, or significantly increasing the length. This may include breaking up long sentences, adding subheadings, and improving word choice. Do not make changes just for the sake of change; every edit should serve a clear purpose in enhancing the text.
8
8
9
-
Avoid changing any code samples directly, but flag any code issues or inconsistencies in the chat.
9
+
Do not change any code samples directly, but flag any code issues or inconsistencies in the chat.
0 commit comments