docs: documentation guide edits for clarity, readability and consistency

This commit is contained in:
Elsa Minsut
2025-11-20 00:57:43 +01:00
committed by Nicolás Hatcher Andrés
parent 2cab93be18
commit 4cf162eb82

View File

@@ -40,7 +40,7 @@ The title should be the function name followed by the word "function":
# FV function # FV function
``` ```
Use the exact function name as it appears in IronCalc (case-sensitive). Use the exact function name as it appears in IronCalc (typically in uppercase).
### 2. Draft Warning (Optional) ### 2. Draft Warning (Optional)
@@ -54,9 +54,11 @@ If the function hasn't been implemented, include this warning box:
If the function has been implemented but not documented, include this warning box: If the function has been implemented but not documented, include this warning box:
```markdown
::: warning ::: warning
🚧 This function is implemented but currently lacks detailed documentation. For guidance, you may refer to the equivalent functionality in [Microsoft Excel documentation](https://support.microsoft.com/en-us/office/excel-functions-by-category-5f91f4e9-7b42-46d2-9bd1-63f26a86c0eb). 🚧 This function is implemented but currently lacks detailed documentation. For guidance, you may refer to the equivalent functionality in [Microsoft Excel documentation](https://support.microsoft.com/en-us/office/excel-functions-by-category-5f91f4e9-7b42-46d2-9bd1-63f26a86c0eb).
::: :::
```
### 3. Overview ### 3. Overview
@@ -97,6 +99,8 @@ Format the function syntax with color-coded argument types. Use the following co
**Example:** **Example:**
**FV(<span title="Number" style="color:#2F80ED">rate</span>, <span title="Number" style="color:#2F80ED">nper</span>, <span title="Number" style="color:#2F80ED">pmt</span>, [<span title="Number" style="color:#2F80ED">pv</span>], [<span title="Boolean" style="color:#27AE60">type</span>] => <span title="Number" style="color:#2F80ED">fv</span>**
```markdown ```markdown
### Syntax ### Syntax
@@ -107,7 +111,7 @@ Format the function syntax with color-coded argument types. Use the following co
- Use `title` attribute to specify the data type - Use `title` attribute to specify the data type
- Use `style="color:#HEXCODE"` for syntax highlighting - Use `style="color:#HEXCODE"` for syntax highlighting
- Include default values for optional arguments using `=default` - Use square brackets for optional arguments
- Show the return type after `=>` - Show the return type after `=>`
- Make the entire syntax **bold** - Make the entire syntax **bold**
@@ -149,7 +153,7 @@ List each argument with:
#### 4.3 Additional Guidance #### 4.3 Additional Guidance
Provide tips, best practices, and important notes about using the function: Provide tips, best practices and important notes about using the function:
```markdown ```markdown
### Additional guidance ### Additional guidance
@@ -192,9 +196,9 @@ List all error scenarios the function may encounter:
**Guidelines:** **Guidelines:**
- Use bullet points - Use bullet points
- Link error types using backticks and the error types page: `` [`#ERROR!`](/features/error-types.md#error) `` - Format error types using backticks and link to the error types page: `` [`#ERROR!`](/features/error-types.md#error) ``
- Reference argument names in italics when discussing specific arguments - Reference argument names in italics when discussing specific arguments
- Include the include directive at the end if using the error details snippet: - Add the include directive at the end if using the error details snippet:
```markdown ```markdown
<!--@include: ../markdown-snippets/error-type-details.txt--> <!--@include: ../markdown-snippets/error-type-details.txt-->
@@ -202,7 +206,7 @@ List all error scenarios the function may encounter:
### 5. Details (Optional but Recommended) ### 5. Details (Optional but Recommended)
For functions with mathematical formulas or complex behavior, include a Details section: For functions with mathematical formulas or complex behavior, include a Details section. This section can also include plots, graphs or charts to help clarify the function's behavior.
```markdown ```markdown
## Details ## Details
@@ -287,6 +291,7 @@ Provide external references and related functions:
### Section Headers ### Section Headers
- Use `#` for the page title with the function name (e.g., FV Function)
- Use `##` for main sections (Overview, Usage, Details, Examples, Links) - Use `##` for main sections (Overview, Usage, Details, Examples, Links)
- Use `###` for subsections (Syntax, Argument descriptions, etc.) - Use `###` for subsections (Syntax, Argument descriptions, etc.)
@@ -338,7 +343,7 @@ FUNCTION_NAME (<u>A</u>cronym <u>E</u>xplanation) is a function of the [Category
### Syntax ### Syntax
**FUNCTION_NAME(<span title="Type" style="color:#2F80ED">arg1</span>, <span title="Type" style="color:#2F80ED">arg2</span>=default, <span title="Boolean" style="color:#27AE60">arg3</span>=FALSE) => <span title="Type" style="color:#2F80ED">return_value</span>** **FUNCTION_NAME(<span title="Type" style="color:#2F80ED">arg1</span>, [<span title="Type" style="color:#2F80ED">arg2</span>], [<span title="Boolean" style="color:#27AE60">arg3</span>]) => <span title="Type" style="color:#2F80ED">return_value</span>**
### Argument descriptions ### Argument descriptions