-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
135 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
THIS IS A WORK IN PROGRESS! | ||
|
||
# MonoGame Documentation | ||
|
||
This is the source for the [documentation published on MonoGame.net](http://www.monogame.net/documentation/). It is rebuilt when the code changes and is published nightly to the website. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
## General Rules | ||
|
||
The following rules must be observed at all times when contributing documentation to the MonoGame project. | ||
|
||
- Write in a neutral, technical tone. | ||
- Avoid humor, personal opinions, and colloquial language. | ||
- **Never** plagiarize any documentation from another source. | ||
- Do not use automatic documentation tools as they are ineffective. | ||
|
||
Breaking these rules can result in your contribution being rejected. | ||
|
||
## Getting Started | ||
|
||
You can create and edit documentation right from the web browser without needing to install Git or ever leave the GitHub site. | ||
|
||
- [Fork the MonoGame repo](https://help.github.com/articles/fork-a-repo/). | ||
- [Create a new branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/) from `develop` and make your changes only in that branch. | ||
- [Create a new file](https://help.github.com/articles/creating-new-files/) or [edit an existing one](https://help.github.com/articles/editing-files-in-your-repository/) using the GitHub markup editor. | ||
- [Submit pull requests](https://help.github.com/articles/creating-a-pull-request/) early and often to merge your documentation changes. | ||
|
||
## Style Guide | ||
|
||
Review the following expectations before contributing any documentation. | ||
|
||
### Manuals, Guides, and Tutorials | ||
|
||
TODO! | ||
|
||
### API Reference | ||
|
||
The API reference documentation is a big part of the documentation effort for MonoGame. The documentation is written in the [C# XML format](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/xml-documentation-comments) and is inline to the MonoGame source code. The final web pages with API documentation are generated using [DocFX]([DocFX - static documentation generator | DocFX website](https://dotnet.github.io/docfx/)). | ||
|
||
#### Every Word Should Contain Value | ||
|
||
Every word in the reference documentation should provide information beyond the API itself. Documentation that only rehashes or rephrases what is already apparent in the class, method, parameter, or property name has zero value and wastes time for both the writer and reader. | ||
|
||
#### The First Sentence Is the Most Important | ||
|
||
There is no guarantee that the reader will read beyond the first sentence of the reference documentation. This is why that first sentence is the most important and should convey the most key piece of information. Take your time to write the most concise and clear first sentence possible. This helps users tremendously and goes a long way towards having great documentation. | ||
|
||
#### Surface Information Hidden in the Code | ||
|
||
Being inline with the code allows you to easily look for critical information within it that the user might not know from looking at the API alone. Take your time to explore inner method calls and platform specific sections of the code. The time to write the documentation is once you feel you fully understand the code you are documenting. If you don't feel you understand the code then leave the documentation for someone else to write. | ||
|
||
#### Documentation Is Referenced Not Read | ||
|
||
Remember that the user is searching for an answer for a specific question. It is your job to predict these questions and provide them clear answers. | ||
|
||
## License | ||
|
||
All documentation contributed to the MonoGame project is subject to the [Creative Commons Attribution-NonCommercial-ShareAlike](http://creativecommons.org/licenses/by-nc-sa/4.0/) license. By contributing you are agreeing to the terms of that license. | ||
|
||
<p align="center"><a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" property="dct:title" rel="dct:type">MonoGame Documentation</span> by the <a xmlns:cc="http://creativecommons.org/ns#" href="http://www.monogame.net" property="cc:attributionName" rel="cc:attributionURL">MonoGame Team</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike License</a>.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
Microsoft Public License (Ms-PL) | ||
MonoGame - Copyright © 2009-2023 The MonoGame Team | ||
|
||
All rights reserved. | ||
|
||
This license governs use of the accompanying software. If you use the software, | ||
you accept this license. If you do not accept the license, do not use the | ||
software. | ||
|
||
1. Definitions | ||
|
||
The terms "reproduce," "reproduction," "derivative works," and "distribution" | ||
have the same meaning here as under U.S. copyright law. | ||
|
||
A "contribution" is the original software, or any additions or changes to the | ||
software. | ||
|
||
A "contributor" is any person that distributes its contribution under this | ||
license. | ||
|
||
"Licensed patents" are a contributor's patent claims that read directly on its | ||
contribution. | ||
|
||
2. Grant of Rights | ||
|
||
(A) Copyright Grant- Subject to the terms of this license, including the | ||
license conditions and limitations in section 3, each contributor grants you a | ||
non-exclusive, worldwide, royalty-free copyright license to reproduce its | ||
contribution, prepare derivative works of its contribution, and distribute its | ||
contribution or any derivative works that you create. | ||
|
||
(B) Patent Grant- Subject to the terms of this license, including the license | ||
conditions and limitations in section 3, each contributor grants you a | ||
non-exclusive, worldwide, royalty-free license under its licensed patents to | ||
make, have made, use, sell, offer for sale, import, and/or otherwise dispose of | ||
its contribution in the software or derivative works of the contribution in the | ||
software. | ||
|
||
3. Conditions and Limitations | ||
|
||
(A) No Trademark License- This license does not grant you rights to use any | ||
contributors' name, logo, or trademarks. | ||
|
||
(B) If you bring a patent claim against any contributor over patents that you | ||
claim are infringed by the software, your patent license from such contributor | ||
to the software ends automatically. | ||
|
||
(C) If you distribute any portion of the software, you must retain all | ||
copyright, patent, trademark, and attribution notices that are present in the | ||
software. | ||
|
||
(D) If you distribute any portion of the software in source code form, you may | ||
do so only under this license by including a complete copy of this license with | ||
your distribution. If you distribute any portion of the software in compiled or | ||
object code form, you may only do so under a license that complies with this | ||
license. | ||
|
||
(E) The software is licensed "as-is." You bear the risk of using it. The | ||
contributors give no express warranties, guarantees or conditions. You may have | ||
additional consumer rights under your local laws which this license cannot | ||
change. To the extent permitted under your local laws, the contributors exclude | ||
the implied warranties of merchantability, fitness for a particular purpose and | ||
non-infringement. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,19 @@ | ||
THIS IS A WORK IN PROGRESS! | ||
# monogame.github.io | ||
|
||
# MonoGame Documentation | ||
This repository contains the documenation and the website for MonoGame Framework. | ||
|
||
This is the source for the [documentation published on MonoGame.net](http://www.monogame.net/documentation/). It is rebuilt when the code changes and is published nightly to the website. | ||
## Buolding from source | ||
|
||
## General Rules | ||
First up restore the dotnet tooling, this restores the `docfx` cli tool needed to build the website. | ||
```sh | ||
dotnet tool restore | ||
``` | ||
|
||
The following rules must be observed at all times when contributing documentation to the MonoGame project. | ||
Next to build the website, simply invoke the restored docfx tool from the CLI: | ||
``` | ||
dotnet docfx docfx.json --serve | ||
``` | ||
|
||
- Write in a neutral, technical tone. | ||
- Avoid humor, personal opinions, and colloquial language. | ||
- **Never** plagiarize any documentation from another source. | ||
- Do not use automatic documentation tools as they are ineffective. | ||
## LICENSE | ||
|
||
Breaking these rules can result in your contribution being rejected. | ||
|
||
## Getting Started | ||
|
||
You can create and edit documentation right from the web browser without needing to install Git or ever leave the GitHub site. | ||
|
||
- [Fork the MonoGame repo](https://help.github.com/articles/fork-a-repo/). | ||
- [Create a new branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/) from `develop` and make your changes only in that branch. | ||
- [Create a new file](https://help.github.com/articles/creating-new-files/) or [edit an existing one](https://help.github.com/articles/editing-files-in-your-repository/) using the GitHub markup editor. | ||
- [Submit pull requests](https://help.github.com/articles/creating-a-pull-request/) early and often to merge your documentation changes. | ||
|
||
## Style Guide | ||
|
||
Review the following expectations before contributing any documentation. | ||
|
||
### Manuals, Guides, and Tutorials | ||
|
||
TODO! | ||
|
||
### API Reference | ||
|
||
The API reference documentation is a big part of the documentation effort for MonoGame. The documentation is written in the [C# XML format](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/xml-documentation-comments) and is inline to the MonoGame source code. The final web pages with API documentation are generated using [DocFX]([DocFX - static documentation generator | DocFX website](https://dotnet.github.io/docfx/)). | ||
|
||
#### Every Word Should Contain Value | ||
|
||
Every word in the reference documentation should provide information beyond the API itself. Documentation that only rehashes or rephrases what is already apparent in the class, method, parameter, or property name has zero value and wastes time for both the writer and reader. | ||
|
||
#### The First Sentence Is the Most Important | ||
|
||
There is no guarantee that the reader will read beyond the first sentence of the reference documentation. This is why that first sentence is the most important and should convey the most key piece of information. Take your time to write the most concise and clear first sentence possible. This helps users tremendously and goes a long way towards having great documentation. | ||
|
||
#### Surface Information Hidden in the Code | ||
|
||
Being inline with the code allows you to easily look for critical information within it that the user might not know from looking at the API alone. Take your time to explore inner method calls and platform specific sections of the code. The time to write the documentation is once you feel you fully understand the code you are documenting. If you don't feel you understand the code then leave the documentation for someone else to write. | ||
|
||
#### Documentation Is Referenced Not Read | ||
|
||
Remember that the user is searching for an answer for a specific question. It is your job to predict these questions and provide them clear answers. | ||
|
||
## License | ||
|
||
All documentation contributed to the MonoGame project is subject to the [Creative Commons Attribution-NonCommercial-ShareAlike](http://creativecommons.org/licenses/by-nc-sa/4.0/) license. By contributing you are agreeing to the terms of that license. | ||
|
||
<p align="center"><a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" property="dct:title" rel="dct:type">MonoGame Documentation</span> by the <a xmlns:cc="http://creativecommons.org/ns#" href="http://www.monogame.net" property="cc:attributionName" rel="cc:attributionURL">MonoGame Team</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike License</a>.</p> | ||
The MonoGame project is under the Microsoft Public License except for a few portions of the code. See the [LICENSE](LICENSE) file for more details. |
Hi @harry-cpp, line 5 contains a 404 link - perhaps this was intended instead?