Skip to content

Commit

Permalink
fix: MD001/heading-increment/header-increment (MicrosoftDocs#2155)
Browse files Browse the repository at this point in the history
Heading levels should only increment by one level at a time.
Disable for pages with "tabs" since they currenlty us H1s
  • Loading branch information
nschonni authored and conceptdev committed Sep 24, 2019
1 parent 09bc69d commit cfb78aa
Show file tree
Hide file tree
Showing 30 changed files with 64 additions and 16 deletions.
4 changes: 2 additions & 2 deletions contributing-guidelines/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ When the UID contains the special characters \` or \#, the UID value needs to be
- bulleted
- list

##### Unordered list with an embedded list
#### Unordered list with an embedded list

- This
- bulleted
Expand Down Expand Up @@ -207,7 +207,7 @@ You can use a [Markdown table generator tool](http://www.tablesgenerator.com/mar

Use three backticks (\`\`\`) + a language ID to apply language-specific color coding to a code block. Here is the entire list of [GFM language IDs](https://github.com/jmm/gfm-lang-ids/wiki/GitHub-Flavored-Markdown-(GFM)-language-IDs).

##### C♯
#### C♯

```c#
using System;
Expand Down
2 changes: 2 additions & 0 deletions docs/android/app-fundamentals/android-api-levels.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Existing apps will be required to target API level 26 or higher
beginning in November 2018. For more information, see
[Improving app security and performance on Google Play for years to come](https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html).

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

Normally, all three Xamarin.Android API levels are set to the same
Expand Down
2 changes: 2 additions & 0 deletions docs/android/app-fundamentals/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ Permissions are added to the **AndroidManifest.xml** with the `uses-permission`
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
```

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

It is possible to declare the permissions using the tool support built into Visual Studio:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ pixelated.

Supported screen sixes are declared in the **Properites/AndroidManifest.xml** file of the solution:

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

[![Android Manifest](resources-for-varying-screens-images/01-android-manifest-sml.w1581.png)](resources-for-varying-screens-images/01-android-manifest.w1581.png#lightbox)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ you specified a package name for the FCM-enabled app. This package name
also serves as the [*application ID*](./firebase-cloud-messaging.md#fcm-in-action-app-id) that is associated with the [API
key](firebase-cloud-messaging.md#fcm-in-action-api-key). Configure the app to use this package name:

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

1. Open the properties for the **FCMClient** project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ The core functionality of `RegistrationIntentService` resides in the
`OnHandleIntent` method. Let's walk through this code to see how
it registers our app with GCM.

##### Request a Registration Token
#### Request a Registration Token

`OnHandleIntent` first calls Google's
[InstanceID.GetToken](https://developers.google.com/android/reference/com/google/android/gms/iid/InstanceID.html#getToken&#40;java.lang.String,%20java.lang.String&#41;)
Expand Down Expand Up @@ -454,7 +454,7 @@ catch (Exception e)
Log.Debug ...
```

##### Forward the Registration Token to the App Server
#### Forward the Registration Token to the App Server

If we get a registration token (that is, no exception was thrown), we
call `SendRegistrationToAppServer` to associate the user's registration
Expand All @@ -477,7 +477,7 @@ server. If this boolean is false, `SendRegistrationToAppServer` sends
the token to the app server &ndash; otherwise, the token was already
sent to the app server in a previous call.

##### Subscribe to the Notification Topic
#### Subscribe to the Notification Topic

Next, we call our `Subscribe` method to indicate to GCM that
we want to subscribe to a notification topic. In `Subscribe`, we
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ application.

### Publishing to Google Play

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

Xamarin Android 7.0 introduces an integrated workflow for publishing
Expand Down
2 changes: 2 additions & 0 deletions docs/android/deploy-test/release-prep/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ allow an Android application to be published without one. The `Icon`
property of the `Application` attribute is used to specify the
application icon for a Xamarin.Android project.

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

In Visual Studio 2017 and later, specify the application icon through
Expand Down
2 changes: 2 additions & 0 deletions docs/android/deploy-test/release-prep/proguard.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ wrong encoding. ProGuard cannot handle _byte order mark_ (BOM) which
may be present in text files. If a BOM is present, then ProGuard will
exit with the above error.

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

To prevent this problem, edit the custom configuration file from a text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ The following sections explain how to diagnose and work around problems
that may occur when using the Android Device Manager to configure
virtual devices.

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

### Android SDK in Non-Standard Location
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Typically, this means you will have to determine the SHA-1 fingerprint
for the debug keystore, and then the SHA-1 fingerprint for the keystore
that is used to sign your application for release.

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

By default the keystore that is used to sign debug versions of a
Expand Down
2 changes: 2 additions & 0 deletions docs/android/platform/oreo.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ Each of these steps is explained in the following sections:

To add Android Oreo support to Visual Studio, do the following:

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

- For Visual Studio 2019, use the [SDK Manager](~/android/get-started/installation/android-sdk.md) to install API level 26.0 or later.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ how to modify widgets interactively on the **Design Surface** or
by using the Designer's **Properties** pane. Finally, you'll see how
the design looks when the app runs on a device or emulator.

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

### Creating a new project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ and

<a name="recycling" />

### How View Recycling Works
## How View Recycling Works

`RecyclerView` does not allocate an item view for every item in
your data source. Instead, it allocates only the number of item views
Expand Down Expand Up @@ -133,7 +133,7 @@ holder uses `FindViewById` to get references to the views inside the
inflated item-layout file. These references are used to load new data
into the views every time the layout is recycled to show new data.

### The Layout Manager
## The Layout Manager

The layout manager is responsible for positioning items in the
`RecyclerView` display; it determines the presentation type (a list
Expand Down Expand Up @@ -171,7 +171,7 @@ predefined layout manager by default.
For more information about the layout manager, see the
[RecyclerView.LayoutManager class reference](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager.html).

### The View Holder
## The View Holder

The view holder is a class that you define for caching view
references. The adapter uses these view references to bind each view to
Expand All @@ -189,7 +189,7 @@ A detailed example of a `ViewHolder` implementation is presented in
For more information about `RecyclerView.ViewHolder`, see the
[RecyclerView.ViewHolder class reference](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder.html).

### The Adapter
## The Adapter

Most of the "heavy-lifting" of the `RecyclerView` integration code
takes place in the adapter. `RecyclerView` requires that you provide
Expand Down Expand Up @@ -227,9 +227,9 @@ When you implement an adapter, you must override the following
- **`ItemCount`** &ndash; Returns the number of items in the data source.

The layout manager calls these methods while it is positioning items
within the `RecyclerView`.
within the `RecyclerView`.

### Notifying RecyclerView of Data Changes
## Notifying RecyclerView of Data Changes

`RecyclerView` does not automatically update its display when the
contents of its data source changes; the adapter must notify
Expand Down
2 changes: 2 additions & 0 deletions docs/android/wear/get-started/hello-wear.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Follow these steps to create your first Xamarin.Android Wear app:

Create a new **Android Wear Application**:

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

[![Creating a new Android Wear Application in the New Project dialog](hello-wear-images/vs/new-solution-sml.w157.png)](hello-wear-images/vs/new-solution.w157.png#lightbox)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ The resulting applications look like this on each platform:

<a name="iOS" />

#### iOS
### iOS

The application uses iOS-standard user interface design, such as the
‘add’ button being positioned in the navigation bar and using the built-in **plus (+)** icon. It also uses the default
Expand All @@ -586,7 +586,7 @@ The application uses iOS-standard user interface design, such as the

<a name="Android" />

#### Android
### Android

The Android app uses built-in controls including the built-in layout for rows
that require a ‘tick’ displayed. The hardware/system back behavior is
Expand All @@ -596,7 +596,7 @@ supported in addition to an on-screen back button.

<a name="Windows_Phone" />

#### Windows Phone
### Windows Phone

The Windows Phone app uses the standard layout, populating the app bar at the bottom
of the screen instead of a nav bar at the top.
Expand Down
2 changes: 2 additions & 0 deletions docs/cross-platform/macios/32-and-64/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ use the [Unified API](~/cross-platform/macios/unified/index.md)
For Xamarin.iOS mobile applications that have been converted to the Unified API, developers must manually update the build settings to target 64-bit:

<!-- markdownlint-disable MD001 -->

# [Visual Studio for Mac](#tab/macos)

1. In the **Solution Pad**, double-click the app's project to open the **Project Options** window.
Expand Down
2 changes: 1 addition & 1 deletion docs/cross-platform/macios/http-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Projects must reference the **System.Net.Http** assembly.
>
> In order to ensure your apps continue to work with these servers and services, **you should update your Xamarin projects with the `NSUrlSession` setting shown below, then re-build and re-deploy your apps** to your users.
### Selecting an HttpClient stack
## Selecting an HttpClient stack

To adjust the `HttpClient` being used by your app:

Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/quickstarts/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The quickstart walks through how to store data in a local SQLite.NET database. T
[![](database-images/screenshots1-sml.png "Notes Page")](database-images/screenshots1.png#lightbox "Notes Page")
[![](database-images/screenshots2-sml.png "Note Entry Page")](database-images/screenshots2.png#lightbox "Note Entry Page")

### Prerequisites
## Prerequisites

You should successfully complete the [previous quickstart](multi-page.md) before attempting this quickstart. Alternatively, download the [previous quickstart sample](https://docs.microsoft.com/samples/xamarin/xamarin-forms-samples/getstarted-notes-multipage/) and use it as the starting point for this quickstart.

Expand Down
2 changes: 2 additions & 0 deletions docs/ios/deploy-test/testflight.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ Once the iTunes Connect record has been created, you will be able to upload new

First, build your [final distributable](~/ios/deploy-test/app-distribution/app-store-distribution/publishing-to-the-app-store.md) in the IDE, then [submit your app to Apple](~/ios/deploy-test/app-distribution/app-store-distribution/publishing-to-the-app-store.md) through either the Application Loader, or the archive function in Xcode.

<!-- markdownlint-disable MD001 -->

# [Visual Studio for Mac](#tab/macos)

### Create an Archive
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ What are the benefits of creating a Custom Sticker Experience?

To creating a Custom Sticker Experience, do the following:

<!-- markdownlint-disable MD001 -->

# [Visual Studio for Mac](#tab/macos)

1. Start Visual Studio for Mac.
Expand Down
2 changes: 2 additions & 0 deletions docs/ios/platform/sirikit/implementing-sirikit.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ In the case of the example app MonkeyChat, the data models and processing code s

Do the following:

<!-- markdownlint-disable MD001 -->

# [Visual Studio for Mac](#tab/macos)

1. Start Visual Studio for Mac and open the MonkeyChat app.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ If the user interacts with the Custom Actions (presented below the Notification)

To implement a Custom User Notification UI in a Xamarin.iOS app, do the following:

<!-- markdownlint-disable MD001 -->

# [Visual Studio for Mac](#tab/macos)

1. Open the app's solution in Visual Studio for Mac.
Expand Down
2 changes: 2 additions & 0 deletions docs/ios/tvos/user-interface/text-fields-and-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ The easiest way to work with Text Fields in a Xamarin.tvOS app is to add them to

Do the following:

<!-- markdownlint-disable MD001 -->

# [Visual Studio for Mac](#tab/macos)

1. In the **Solution Pad**, double-click the `Main.storyboard` file to open it for editing.
Expand Down
2 changes: 2 additions & 0 deletions docs/ios/user-interface/designer/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ The iOS Designer allows developers to visually design an application's user inte

A view controller has two parts: a visual representation in the iOS Designer and an associated C# class:

<!-- markdownlint-disable MD001 -->

# [Visual Studio for Mac](#tab/macos)

[![A view controller in the iOS Designer](introduction-images/1-storyboardwithviewcontroller-vsmac.png "A view controller in the iOS Designer")](introduction-images/1-storyboardwithviewcontroller-vsmac-large.png#lightbox)
Expand Down
2 changes: 2 additions & 0 deletions docs/tools/profiler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Profiling is helpful in all types of development, but it is especially crucial i

The Xamarin Profiler provides developers with a way to profile applications from inside Visual Studio for Mac or Visual Studio. The profiler collects and displays information about the app, which can then be used by the developer to analyze an application’s behavior. There are a number of different ways to profile an application with the Xamarin Profiler, namely memory profiling and statistical sampling. These are carried out through the Allocations and Time Profiler instruments respectively.

<!-- markdownlint-disable MD001 -->

# [Visual Studio for Mac](#tab/macos)

Currently, the Xamarin Profiler can be used to test Xamarin.iOS, Xamarin.Android, and Xamarin.Mac applications on Mac (Via Visual Studio for Mac). The profiler is a separate process from the IDE, and so, in addition to launching from Visual Studio for Mac, it can be used as a standalone application to examine .exe and `.mlpd` files which have been produced from the [mono log profiler](https://www.mono-project.com/docs/debug+profile/profile/profiler/).
Expand Down
2 changes: 2 additions & 0 deletions docs/tools/workbooks/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ ms.date: 06/19/2018

## Download and Install

<!-- markdownlint-disable MD001 -->

# [Windows](#tab/windows)

1. Check the [requirements](#requirements) below.
Expand Down
2 changes: 2 additions & 0 deletions docs/xamarin-forms/app-fundamentals/localization/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ Select the **AppResources.resx** file and show the
**Properties** pad to see where this build tool is configure. The screenshot below
shows the **Custom Tool: ResXFileCodeGenerator**.

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

[![](text-images/vs-resx-internal-sml.png "Properties Window for AppResources.Resx")](text-images/vs-resx-internal.png#lightbox)
Expand Down
2 changes: 2 additions & 0 deletions docs/xamarin-forms/user-interface/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ Embedded images are also shipped with an application (like local images) but ins

To embed an image in a project, right-click to add new items and select the image/s you wish to add. By default the image will have **Build Action: None**; this needs to be set to **Build Action: EmbeddedResource**.

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

![](images-images/vs-buildaction.png "Set Build Action: EmbeddedResource")
Expand Down
2 changes: 2 additions & 0 deletions docs/xamarin-forms/xaml/xaml-basics/get-started-with-xaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ The code-behind file provides code support for the markup. Together, these two f

To begin editing your first XAML file, use Visual Studio or Visual Studio for Mac to create a new Xamarin.Forms solution. (Select the tab below corresponding to your environment.)

<!-- markdownlint-disable MD001 -->

# [Visual Studio](#tab/windows)

In Windows, use Visual Studio to select **File > New > Project** from the menu. In the **New Project** dialog, select **Visual C# > Cross Platform** at the left, and then **Mobile App (Xamarin.Forms)** from the list in the center.
Expand Down

0 comments on commit cfb78aa

Please sign in to comment.