Contributing to the Internet Information Services (IIS) documentation
Artikel
This document covers the process for contributing to the articles and code samples that are hosted on the IIS documentation site. Contributions can be typographical fixes or as complex as new articles.
How to make a simple correction or suggestion
Articles are stored in the repository as Markdown files. Small changes to the content of a Markdown file can be made in the browser by selecting the Edit link in the upper right corner of the browser window. (In narrow browser windows you'll need to expand the options bar to see the Edit link.) Follow the directions to create a pull request (PR). We will review the PR and accept it or suggest changes.
Open an issue describing what you want to do, such as change an existing article or create a new one. Wait for approval from the team before you invest much time.
Fork the iis-docs repo and create a branch for your changes.
Submit a pull request (PR) to master with your changes.
If your PR has the label 'cla-required' assigned, complete the Contribution License Agreement (CLA)
Markdown file names and image file names should be all lower case.
Code snippets
Articles frequently contain code snippets to illustrate points. DFM lets you copy code into the Markdown file or refer to a separate code file. We prefer to use separate code files whenever possible, to minimize the chance of errors in the code. The code files should be stored in the repo using the folder structure described above for sample projects.
Here are some examples of DFM code snippet syntax that would be used in a configuration.md file.
For C# snippets, you can reference a C# region. Whenever possible, use regions rather than line numbers, because line numbers in a code file tend to change and get out of sync with line number references in Markdown. C# regions can be nested, and if you reference the outer region, the inner #region and #endregion directives are not rendered in a snippet.
Test your changes with the DocFX command-line tool, which creates a locally hosted version of the site. DocFX doesn't render style and site extensions created for learn.microsoft.com.
DocFX requires the .NET Framework on Windows, or Mono for Linux or macOS.
function docfx {
mono $HOME/bin/docfx/docfx.exe
}
function docfx-serve {
mono $HOME/bin/docfx/docfx.exe serve _site
}
Run docfx in the iis-docs\iisdirectory to build the site, and docfx-serve to view the site at http://localhost:8080.
Voice and tone
Our goal is to write documentation that is easily understandable by the widest possible audience. To that end we have established guidelines for writing style that we ask our contributors to follow. For more information, see Voice and tone guidelines in the .NET repo.
Redirects
If you delete an article, change its file name, or move it to a different folder, create a redirect so that people who bookmarked the article won't get 404s. Add redirects to the main redirect file.
Word inzender voor Microsoft Learn-documentatie door bewerkingen te maken met een webeditor in GitHub. Breng uw wijzigingen aan, maak, valideer en verzend pull-aanvragen om uw wijzigingen te publiceren.