Skip to content

Commit

Permalink
Validate doc links in PR/CI (#6391)
Browse files Browse the repository at this point in the history
* Create docs.yml

* Update winui3_migration.md

* Create .unbroken_exclusions

* Update .unbroken_exclusions

* Update docs.yml

Co-authored-by: Stephen L Peters <[email protected]>
  • Loading branch information
asklar and StephenLPeters authored Feb 28, 2022
1 parent 212f038 commit 38a0f01
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This is a basic workflow to help you get started with Actions

name: Validate doc links

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Check links
run: npx unbroken
working-directory: docs
2 changes: 2 additions & 0 deletions docs/.unbroken_exclusions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
URL not found https://microsoft.sharepoint.com/teams/FabricBot/SitePages/AutoMerge,-Bot-Templates-and.aspx while parsing contribution_workflow.md (HTTP 403)
URL not found https://fabric-cp.azurewebsites.net/bot/ while parsing triage.md (HTTP 403)
7 changes: 4 additions & 3 deletions docs/winui3_migration.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Migrating a UWP App To WinUI3

**It is recommended to use the [try-convert](https://github.com/dotnet/try-convert/tree/feature/winui) tool for the full conversion process.**
**try-convert will automate most of the conversion steps.**
**It is recommended to use the [try-convert](https://github.com/dotnet/try-convert/tree/feature/winui) tool for the full conversion process.**
**`try-convert` will automate most of the conversion steps.**

## Background

Expand All @@ -18,4 +18,5 @@ This porting assistance is provided in the form of Roslyn Analyzers and Code Fix
- A Code Analyzer provides on the fly code inspections for C# and creates diagnostics.
- A Code Fix consumes the diagnostics created by the Code Analyzer and modifies the C# file in-line.

See the [try-convert documentation](https://github.com/dotnet/try-convert/blob/feature/winui/WinUIConvert.md) for more information on these code analyzers and how to automoate the process with try-convert.
See the [try-convert documentation](https://github.com/dotnet/try-convert/tree/feature/winui) for more information on these code analyzers and how to automoate the process with [try-convert](https://github.com/dotnet/try-convert/blob/feature/winui/WinUIConvert.md).

0 comments on commit 38a0f01

Please sign in to comment.