Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
1f93ba9
Reference
chaowlert Mar 9, 2017
085ad7a
Initial Home page
chaowlert Mar 9, 2017
40f590a
Updated Reference (markdown)
chaowlert Mar 9, 2017
07de6d3
Destroyed Reference (markdown)
chaowlert May 24, 2017
cbc6c2b
Created Debugging (markdown)
chaowlert May 24, 2017
9e6ad85
Created EF6 (markdown)
chaowlert May 24, 2017
f5f6a42
Created Setting values (markdown)
chaowlert May 25, 2017
fe1a3b6
Created Rule based member mapping (markdown)
chaowlert May 26, 2017
8fc1495
Created Setting by attributes (markdown)
chaowlert May 26, 2017
7b89416
Created Ignoring members (markdown)
chaowlert May 26, 2017
5e7386e
Created Mapping (markdown)
chaowlert May 26, 2017
8cb70a6
Created Basic (markdown)
chaowlert May 26, 2017
96e79c1
Created Mapper (markdown)
chaowlert May 26, 2017
e4c6e25
Updated Ignoring members (markdown)
chaowlert May 27, 2017
f79887e
Updated Mapping (markdown)
chaowlert May 27, 2017
f22dca5
Updated Rule based member mapping (markdown)
chaowlert May 27, 2017
d5644e6
Created Configuration (markdown)
chaowlert May 27, 2017
2ee2dea
Created Config Instance (markdown)
chaowlert May 27, 2017
14a47da
Created Config location (markdown)
chaowlert May 27, 2017
bd473f5
Created Config validation (markdown)
chaowlert May 27, 2017
58a0399
Updated Configuration (markdown)
chaowlert May 27, 2017
0672ed9
Updated Configuration (markdown)
chaowlert May 27, 2017
30f7f7b
Created Custom mapping (markdown)
chaowlert May 27, 2017
d8aa3fe
Created Naming convention (markdown)
chaowlert May 27, 2017
b0c6ab9
Updated Naming convention (markdown)
chaowlert May 27, 2017
64b9e58
Created Object references (markdown)
chaowlert May 27, 2017
bb4c2f0
Created Object creation and validation (markdown)
chaowlert May 27, 2017
bead44e
Created Custom conversion logic (markdown)
chaowlert May 27, 2017
68dc90f
Updated Basic (markdown)
chaowlert May 27, 2017
9217117
Updated Mapper (markdown)
chaowlert May 27, 2017
7385d52
Updated Mapping (markdown)
chaowlert May 27, 2017
63a8acb
Updated Configuration (markdown)
chaowlert May 27, 2017
fd251ef
Created Config inheritance (markdown)
chaowlert May 27, 2017
921533b
Updated Config Instance (markdown)
chaowlert May 27, 2017
9a46b29
Updated Config inheritance (markdown)
chaowlert May 27, 2017
eeb2dc4
Updated Config location (markdown)
chaowlert May 27, 2017
630606d
Updated Object references (markdown)
chaowlert May 27, 2017
be65ade
Created Config for nested classes (markdown)
chaowlert May 27, 2017
500f292
Created Mapping non-public members (markdown)
chaowlert May 27, 2017
2feab93
Updated Custom conversion logic (markdown)
chaowlert May 27, 2017
11f48a6
Updated Debugging (markdown)
chaowlert May 27, 2017
aed6020
Updated Home (markdown)
chaowlert May 27, 2017
251bd33
Updated Getting Started (markdown)
chaowlert May 27, 2017
0250b69
Updated EF6 (markdown)
chaowlert May 27, 2017
3e0bb86
Updated Debugging (markdown)
chaowlert May 28, 2017
059685d
Created _Sidebar (markdown)
chaowlert Jun 3, 2017
33a4ab2
update url
chaowlert Oct 11, 2017
963e8a3
Created Json.net (markdown)
chaowlert Oct 15, 2017
ce4040b
Updated _Sidebar (markdown)
chaowlert Oct 15, 2017
6eff840
Updated Home (markdown)
chaowlert Oct 15, 2017
b88b1dc
Updated Object creation and validation (markdown)
redwards510 Oct 24, 2017
74e7cc1
Updated Object creation and validation (markdown)
redwards510 Oct 24, 2017
da70724
adding syntax highlighting
redwards510 Oct 24, 2017
a7ad270
Updated Object creation and validation (markdown)
redwards510 Oct 24, 2017
9665957
Updated Object creation and validation (markdown)
redwards510 Oct 24, 2017
c50b99c
Updated Object creation and validation (markdown)
redwards510 Oct 24, 2017
114ed5f
type in AddDestinationTransform; added syntax
redwards510 Oct 24, 2017
318e57b
add chsarp to code block
redwards510 Oct 25, 2017
24c1d42
^^
redwards510 Oct 25, 2017
fbeaafb
Updated Config validation (markdown)
chaowlert Sep 9, 2018
c30f2b8
Updated Home (markdown)
chaowlert Sep 9, 2018
d649dba
Updated _Sidebar (markdown)
chaowlert Sep 9, 2018
7a92526
Created FastExpressionCompiler (markdown)
chaowlert Sep 9, 2018
3fcd51d
Updated Home (markdown)
chaowlert Sep 9, 2018
969e95e
Updated _Sidebar (markdown)
chaowlert Sep 9, 2018
d4a125e
Updated FastExpressionCompiler (markdown)
chaowlert Sep 9, 2018
d8fec67
Updated Debugging (markdown)
chaowlert Jan 29, 2019
627b8b6
Updated Debugging (markdown)
chaowlert Jan 29, 2019
8683d7b
Updated Debugging (markdown)
chaowlert Jan 29, 2019
a2f7f94
Updated Debugging (markdown)
chaowlert Jan 30, 2019
a8c0949
Updated Debugging (markdown)
chaowlert Jan 30, 2019
2e0c758
Updated Debugging (markdown)
chaowlert Feb 11, 2019
07a53f5
Fix typo
wtfblub Feb 25, 2019
bf67818
Updated Setting values (markdown)
chaowlert Apr 5, 2019
c5b96ca
Updated Setting by attributes (markdown)
chaowlert Apr 5, 2019
1ee0eb7
Updated Rule based member mapping (markdown)
chaowlert Apr 5, 2019
e0fbdb1
Updated Mapping non public members (markdown)
chaowlert Apr 5, 2019
d4427ad
Updated _Sidebar (markdown)
chaowlert Apr 5, 2019
9de774c
Updated Home (markdown)
chaowlert Apr 5, 2019
0a737ec
update wiki
chaowlert Apr 13, 2019
6ca671b
Updated Home (markdown)
chaowlert Apr 13, 2019
b4702bd
Updated Setting by attributes (markdown)
chaowlert Jan 20, 2020
eb44638
Updated Debugging (markdown)
chaowlert Jan 21, 2020
aca54eb
Created Async (markdown)
chaowlert Feb 2, 2020
35be384
Updated Debugging (markdown)
chaowlert Feb 2, 2020
2314c34
Updated _Sidebar (markdown)
chaowlert Feb 2, 2020
e57e0ef
Created Dependency Injection (markdown)
chaowlert Feb 2, 2020
bb6f632
Updated _Sidebar (markdown)
chaowlert Feb 2, 2020
a82af9f
Updated Json.net (markdown)
chaowlert Feb 2, 2020
5972aa0
Updated FastExpressionCompiler (markdown)
chaowlert Feb 2, 2020
5f5fc4e
Updated EF6 (markdown)
chaowlert Feb 2, 2020
da36000
Updated _Sidebar (markdown)
chaowlert Feb 2, 2020
be09364
Updated Mappers (markdown)
chaowlert Feb 2, 2020
66a93b0
Updated Setting by attributes (markdown)
chaowlert Feb 2, 2020
c25b132
Updated Setting by attributes (markdown)
chaowlert Feb 2, 2020
cbea8f1
Updated Setting by attributes (markdown)
chaowlert Feb 2, 2020
596eba4
Created Mapping readonly prop (markdown)
chaowlert Feb 2, 2020
806f6ae
Updated _Sidebar (markdown)
chaowlert Feb 2, 2020
78756c1
Updated Mappers (markdown)
chaowlert Feb 2, 2020
1edf456
Updated _Sidebar (markdown)
chaowlert Feb 2, 2020
25faa81
Updated _Sidebar (markdown)
chaowlert Feb 2, 2020
791b009
Updated Custom mapping (markdown)
chaowlert Feb 2, 2020
31f3424
Updated Dependency Injection (markdown)
chaowlert Feb 2, 2020
5997ef2
Updated Home (markdown)
chaowlert Feb 2, 2020
39c6549
Updated Home (markdown)
chaowlert Feb 2, 2020
74cf6fe
Updated Home (markdown)
chaowlert Feb 2, 2020
713e03c
Updated Data types (markdown)
chaowlert Feb 2, 2020
f9e2dc1
Updated Custom mapping (markdown)
chaowlert Feb 3, 2020
bad83cf
Updated Custom mapping (markdown)
chaowlert Feb 3, 2020
c21bc0c
Updated Config instance (markdown)
chaowlert Feb 4, 2020
734c39a
Updated Setting values (markdown)
chaowlert Mar 14, 2020
74925ec
Created _Footer (markdown)
mekumiao Mar 17, 2020
db87e1e
Destroyed _Footer (markdown)
mekumiao Mar 17, 2020
35ad1e7
Updated Setting values (markdown)
chaowlert Apr 10, 2020
a577d4b
there was misspelling
gt4dev May 27, 2020
3865ad6
Updated _Sidebar (markdown)
yayarokya Jun 4, 2020
ddb0bf4
Updated _Sidebar (markdown)
yayarokya Jun 4, 2020
3009fba
Updated Dependency Injection (markdown)
yayarokya Jun 4, 2020
a5cd9eb
Updated _Sidebar (markdown)
yayarokya Jun 4, 2020
f03aff9
Revert 3009fba^...3009fba on Dependency Injection
chaowlert Jun 4, 2020
a47fa4c
Updated Dependency Injection (markdown)
chaowlert Jun 5, 2020
34586df
Updated Home (markdown)
chaowlert Jul 30, 2020
dc6cd1d
Updated Config for nested mapping (markdown)
chaowlert Jul 30, 2020
a534339
Created Immutable (markdown)
chaowlert Jul 30, 2020
6b21c6d
Updated _Sidebar (markdown)
chaowlert Jul 30, 2020
4f471fd
Updated Data types (markdown)
chaowlert Jul 30, 2020
13c1870
Fix variable name on code example.
vmrocha Jul 31, 2020
d7c02b4
Updated CodeGen (markdown)
chaowlert Aug 1, 2020
ba0a81e
Updated Home (markdown)
chaowlert Aug 1, 2020
bcfcc46
Updated _Sidebar (markdown)
chaowlert Aug 1, 2020
81cb320
Updated TextTamplate (markdown)
chaowlert Aug 1, 2020
fa24735
Updated Home (markdown)
chaowlert Aug 1, 2020
35fe914
Created Mapster.Tool (markdown)
chaowlert Aug 1, 2020
28b9915
Updated Mapster.Tool (markdown)
chaowlert Aug 1, 2020
a10a1a4
Updated Mapster.Tool (markdown)
chaowlert Aug 1, 2020
0e6d489
Updated Mapster.Tool (markdown)
chaowlert Aug 2, 2020
e781d19
A bit of grammar corrections.
miou-gh Aug 13, 2020
d20913c
A bit of grammar corrections.
miou-gh Aug 13, 2020
6e59064
A bit of grammar corrections.
miou-gh Aug 13, 2020
51b1b6f
A bit of grammar corrections.
miou-gh Aug 13, 2020
a79385b
A bit of grammar corrections.
miou-gh Aug 13, 2020
b09060a
Updated Data types (markdown)
chaowlert Aug 19, 2020
95a71bc
Updated Mappers (markdown)
chaowlert Aug 19, 2020
a659b66
Updated Config location (markdown)
chaowlert Aug 19, 2020
185df8f
Updated Config validation & compilation (markdown)
chaowlert Aug 19, 2020
bea5a90
Updated Home (markdown)
chaowlert Aug 19, 2020
104c34d
Updated Mapster.Tool (markdown)
chaowlert Aug 20, 2020
f07fbd2
Updated Mapster.Tool (markdown)
chaowlert Aug 23, 2020
8114c5f
Updated EF 6 & EF Core (markdown)
chaowlert Oct 23, 2020
1046d35
Updated EF 6 & EF Core (markdown)
chaowlert Oct 23, 2020
3174a5e
Updated Mapster.Tool (markdown)
chaowlert Nov 5, 2020
148a31f
Updated Mapster.Tool (markdown)
chaowlert Nov 12, 2020
8c407d8
Updated Mapster.Tool (markdown)
chaowlert Dec 10, 2020
262774e
Updated Mapster.Tool (markdown)
chaowlert Dec 10, 2020
b3f89a5
Updated Mapster.Tool (markdown)
chaowlert Dec 11, 2020
f010e76
Updated Mapster.Tool (markdown)
chaowlert Dec 20, 2020
659f387
Updated _Sidebar (markdown)
chaowlert Jan 24, 2021
fc4e0f2
Updated Home (markdown)
chaowlert Jan 24, 2021
4099f82
Updated _Sidebar (markdown)
chaowlert Jan 24, 2021
e292801
Updated Home (markdown)
chaowlert Jan 24, 2021
453ad24
Updated _Sidebar (markdown)
chaowlert Jan 24, 2021
65fd86a
Created Attribute base Code generation (markdown)
chaowlert Jan 24, 2021
4a89494
Created Interface base Code generation (markdown)
chaowlert Jan 24, 2021
9364b69
Updated Mapster.Tool (markdown)
chaowlert Jan 24, 2021
eaaad71
Created Fluent API Code generation (markdown)
chaowlert Jan 24, 2021
8d84e00
Updated EF 6 & EF Core (markdown)
chaowlert Feb 6, 2021
89f79f8
update what is commented in #302
mhamri Feb 6, 2021
0ab94d9
Updated Object references (markdown)
mhamri Feb 6, 2021
d3f9fab
Updated Attribute base Code generation (markdown)
chaowlert Feb 11, 2021
51b65cd
Updated Mapster.Tool (markdown)
chaowlert Apr 10, 2021
9759d2a
Updated Mapster.Tool (markdown)
chaowlert Apr 12, 2021
c9543fa
Updated Mapster.Tool (markdown)
chaowlert Apr 14, 2021
aaf627a
Updated _Sidebar (markdown)
chaowlert Jun 21, 2021
48db20e
Updates String.Format to string interpolation
billrob Nov 7, 2021
dc8e345
Should be close instead of closed
popemkt Feb 21, 2022
932e15a
Updated Mapster.Tool (markdown)
andrerav Jun 27, 2022
3adbbd9
Add documentation for new overloads with destination parameter
devbased Jun 30, 2022
dcacbd1
Add example for ConstructUsing overload with destination parameter
devbased Jun 30, 2022
ce9de53
Fix a typo
aradalvand Aug 10, 2022
d44f78f
Fix typo (missing method call period)
TehMillhouse Oct 6, 2022
afdd321
Created _Footer (markdown)
almika777 Feb 9, 2023
54e6c53
Destroyed _Footer (markdown)
almika777 Feb 9, 2023
fc7fb16
Created Mapping Configuration With "IMapFrom" Interface (markdown)
stormaref Feb 9, 2023
2aa4148
Updated _Sidebar (markdown)
stormaref Feb 9, 2023
ec6f178
Updated Mapping Configuration With "IMapFrom" Interface (markdown)
stormaref Feb 9, 2023
5d8d342
Updated Custom mapping (markdown)
dialloi659 May 3, 2023
971c5a1
Updated Custom mapping (markdown)
joshslark May 20, 2023
a83925e
Updated _Sidebar (markdown)
PedramShateri Jul 2, 2023
35bb741
Updated _Sidebar (markdown)
PedramShateri Jul 2, 2023
4c8f00e
Updated _Sidebar (markdown)
PedramShateri Jul 2, 2023
397d5a4
Updated Mapster.Tool (markdown)
andrerav Sep 26, 2023
b518398
Updated Mapster.Tool (markdown)
qqeekk May 13, 2024
81af1a7
Updated Basic usages (markdown)
andrerav Jul 21, 2024
7fc6842
Created _Footer (markdown)
Eftiand Jul 2, 2025
98ef536
Updated _Footer (markdown)
Hopcos Aug 5, 2025
05b5d3c
Updated _Footer (markdown)
Hopcos Aug 5, 2025
b850763
Updated _Footer (markdown)
Exzept1on Aug 8, 2025
ceb6aa1
Updated _Footer (markdown)
jbefus Aug 9, 2025
378f5da
Updated Mapster.Tool (markdown)
andrerav Sep 30, 2025
ec260ee
Destroyed _Footer (markdown)
MaRokas2005 Oct 15, 2025
c4d3e8d
rename without quotes
Dec 2, 2025
3dd2a01
remove quotes from sidebar link
Dec 2, 2025
92b5310
Add 'wiki/' from commit '3dd2a01eab09de6e8a5fe37047fc04c5a27753b3'
DevTKSS Dec 3, 2025
61d63b1
docs(wiki): Import wiki into repository files
DevTKSS Dec 3, 2025
24ccdbc
docs(api): add api folder with required contents to build api referen…
DevTKSS Dec 3, 2025
f22da79
docs: Add yaml headers with uid to markdown files and create appropri…
DevTKSS Dec 3, 2025
b3ab496
docs: FIx markdownlint, apply xref links and update header levels
DevTKSS Dec 3, 2025
46ae282
chore(docs): Add docfx setup and files for spellcheck and markdownlint
DevTKSS Dec 3, 2025
76c944a
chore: adjust path
DevTKSS Dec 3, 2025
47bbb36
chore: link updates
DevTKSS Dec 3, 2025
8d34b75
chore: Update docs fix links
DevTKSS Dec 8, 2025
9793c2d
chore: logo needs to be a relative path, no cloud source allowed
DevTKSS Dec 8, 2025
9ecbe78
chore: comment out api docs metadata generation and toc node for this
DevTKSS Dec 8, 2025
ced7ee0
docs: intendations, sorting TOC and re-add temp Reference
DevTKSS Dec 9, 2025
fe099c1
chore: Match paths, add Reference TOC entry, add yaml header to index…
DevTKSS Dec 9, 2025
65927c4
chore: Introduce .vscode settings file associations for docfx as json…
DevTKSS Dec 9, 2025
28812a5
docs(Reference): Add agent prompts for csharp xml doc generation
DevTKSS Dec 9, 2025
4b21f6e
ci(docs): Add docs deployment workflow
DevTKSS Dec 9, 2025
46422aa
ci: Add conventional-commits workflow
DevTKSS Dec 9, 2025
80bdf7d
chore: Add initial Contributing guidelines
DevTKSS Dec 9, 2025
8fd6442
docs(automation): Add powershell scripts to simplify local docfx clea…
DevTKSS Dec 9, 2025
1e000af
chore: Merge remote-tracking branch 'origin/development' into docs/ad…
DevTKSS Dec 9, 2025
e2d6f53
chore: add and reference new scaled Mapster logo
DevTKSS Dec 11, 2025
8b9dd1b
chore: update Testing Guidelines with MSTest
DevTKSS Dec 11, 2025
1f970d3
chore(nuget): Add Table with all Mapster provided NuGet Packages
DevTKSS Dec 11, 2025
0ea68ea
chore: Update paths, add svg extension to docfx resources
DevTKSS Dec 11, 2025
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
63 changes: 63 additions & 0 deletions .github/prompts/csharp-docs.prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
agent: 'agent'
tools: ['changes', 'search/codebase', 'edit/editFiles', 'problems']
description: 'Ensure that C# types are documented with XML comments and follow best practices for documentation.'
---

# C# Documentation Best Practices

- Public members should be documented with XML comments.
- It is encouraged to document internal members as well, especially if they are complex or not self-explanatory.

## Guidance for all APIs

- Use `<summary>` to provide a brief, one sentence, description of what the type or member does. Start the summary with a present-tense, third-person verb.
- Use `<remarks>` for additional information, which can include implementation details, usage notes, or any other relevant context.
- Use `<see langword>` for language-specific keywords like `null`, `true`, `false`, `int`, `bool`, etc.
- Use `<c>` for inline code snippets.
- Use `<example>` for usage examples on how to use the member.
- Use `<code>` for code blocks. `<code>` tags should be placed within an `<example>` tag. Add the language of the code example using the `language` attribute, for example, `<code language="csharp">`.
- Use `<see cref>` to reference other types or members inline (in a sentence).
- Use `<seealso>` for standalone (not in a sentence) references to other types or members in the "See also" section of the online docs.
- Use `<inheritdoc/>` to inherit documentation from base classes or interfaces.
- Unless there is major behavior change, in which case you should document the differences.

## Methods

- Use `<param>` to describe method parameters.
- The description should be a noun phrase that doesn't specify the data type.
- Begin with an introductory article.
- If the parameter is a flag enum, start the description with "A bitwise combination of the enumeration values that specifies...".
- If the parameter is a non-flag enum, start the description with "One of the enumeration values that specifies...".
- If the parameter is a Boolean, the wording should be of the form "`<see langword="true" />` to ...; otherwise, `<see langword="false" />`.".
- If the parameter is an "out" parameter, the wording should be of the form "When this method returns, contains .... This parameter is treated as uninitialized.".
- Use `<paramref>` to reference parameter names in documentation.
- Use `<typeparam>` to describe type parameters in generic types or methods.
- Use `<typeparamref>` to reference type parameters in documentation.
- Use `<returns>` to describe what the method returns.
- The description should be a noun phrase that doesn't specify the data type.
- Begin with an introductory article.
- If the return type is Boolean, the wording should be of the form "`<see langword="true" />` if ...; otherwise, `<see langword="false" />`.".

## Constructors

- The summary wording should be "Initializes a new instance of the <Class> class [or struct].".

## Properties

- The `<summary>` should start with:
- "Gets or sets..." for a read-write property.
- "Gets..." for a read-only property.
- "Gets [or sets] a value that indicates whether..." for properties that return a Boolean value.
- Use `<value>` to describe the value of the property.
- The description should be a noun phrase that doesn't specify the data type.
- If the property has a default value, add it in a separate sentence, for example, "The default is `<see langword="false" />`".
- If the value type is Boolean, the wording should be of the form "`<see langword="true" />` if ...; otherwise, `<see langword="false" />`. The default is ...".

## Exceptions

- Use `<exception cref>` to document exceptions thrown by constructors, properties, indexers, methods, operators, and events.
- Document all exceptions thrown directly by the member.
- For exceptions thrown by nested members, document only the exceptions users are most likely to encounter.
- The description of the exception describes the condition under which it's thrown.
- Omit "Thrown if ..." or "If ..." at the beginning of the sentence. Just state the condition directly, for example "An error occurred when accessing a Message Queuing API."
77 changes: 77 additions & 0 deletions .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Build and Deploy DocFX

on:
push:
branches: [ 'master' ]
paths:
- 'docs/**'
- 'README.md'
# Uncomment this if API docs changes should trigger a rebuild of the documentation
# - 'src/**'
- '.github/workflows/build-deploy-docs.yml'
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build-docs:
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x
9.x
# - name: Show dotnet version
# run: |
# dotnet --list-sdks
# dotnet --list-runtimes

# - name: Restore dependencies before docs deployment as recommended by docfx
# run: dotnet restore ./src/Mapster.sln

# - name: Build with dotnet
# run: dotnet build ./src/Mapster.sln

# - name: Run tests on .NET 9.0
# run: dotnet test --verbosity normal ./src/Mapster.sln

- name: Install DocFX as .NET tool
run: |
dotnet tool update -g docfx

- name: Build docfx site
working-directory: docs
run: docfx docfx.json

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'docs/_site'

deploy-docs:
needs: build-docs
if: ${{ needs.build-docs.result == 'success' && github.ref == 'refs/heads/master' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
21 changes: 21 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Conventional Commits

on:
pull_request:
branches:
- master
- development
- release/*

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
commitsar:
name: Validate for conventional commits
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Run commitsar
uses: aevea/[email protected]
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ packages/
# This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented)
!packages/build/

# Not ignore packages folder in docs folder
!docs/articles/packages/

# Windows Azure Build Output
csx/
*.build.csdef
Expand Down Expand Up @@ -184,5 +187,4 @@ src/.idea

# VS Code settings
.vscode/launch.json
.vscode/settings.json
.vscode/tasks.json
16 changes: 16 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.38.0/schema/markdownlint-config-schema.json",
"default": true,
"line-length": false,
"commands-show-output": false,
"no-bare-urls": false,
"no-inline-html": false,
"no-duplicate-heading": false,
"no-emphasis-as-heading": false,
// Headers must start at the beginning of the line - false positive in some cases where it makes sense.
"MD023": false,
// First line in a file should be a top-level heading - false positive for include files.
"MD041": false,
// Link fragments should be valid - false positive for docfx tabs
"MD051": false
}
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"DavidAnson.vscode-markdownlint",
"streetsidesoftware.code-spell-checker-cspell-bundled-dictionaries",
"ms-vscode.powershell",
"joshbolduc.commitlint"
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"files.associations": {
"*.agent.md": "chatagent",
"*.instructions.md": "instructions",
"*.prompt.md": "prompt",
"docfx.json": "jsonc"
}
}
36 changes: 36 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
![Mapster Icon](https://raw.githubusercontent.com/MapsterMapper/Mapster/master/docs/images/mapster-logo.svg)

# Contributing to Mapster

Thank you for your interest in contributing! We welcome contributions from the community.

## How to Contribute

1. **Fork the repository** and create your branch from [`development`](https://github.com/MapsterMapper/Mapster/tree/development)
2. **Make your changes** following the existing code style
3. **Write tests** using [MSTest](https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-mstest) and [xUnit](https://xunit.net/) to ensure your changes work correctly
4. **Document your code** with XML comments and update [docs/articles/](./docs/articles/) if needed following the [DocFX](https://dotnet.github.io/docfx/) guidelines
5. **Commit with clear messages** following [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) (e.g., `feat:`, `fix:`, `docs:`)
6. **Submit a pull request** with a description of your changes

## Reporting Issues

Found a bug or have a feature request? Please [open an issue](https://github.com/MapsterMapper/Mapster/issues) with:

- Clear description of the problem or request
- Steps to reproduce (for bugs)
- Code samples if applicable
- Environment details (Mapster version, .NET version)

For questions, use [GitHub Discussions](https://github.com/MapsterMapper/Mapster/discussions).

## Development Guidelines

- Follow existing code conventions
- Add XML documentation for public APIs
- Write unit tests for new features and bug fixes
- Keep code clean, well-documented, and tested

## License

By contributing, you agree that your contributions will be licensed under the [MIT License](LICENSE).
Loading
Loading