Skip to content

Commit 05bf1c8

Browse files
committed
docs(doc-templates): Added uid to templates for xref usage
1 parent faef726 commit 05bf1c8

File tree

8 files changed

+24
-18
lines changed

8 files changed

+24
-18
lines changed

doc/.feature-template-uno-only.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
1+
---
2+
uid: Uno.Doc-Templates.Feature.Uno-only
3+
---
24
<!-- For available Markdown syntax, check out https://guides.github.com/features/mastering-markdown/ -->
35

46
# YourFeature
@@ -18,7 +20,7 @@
1820

1921
<!-- If not feature is supported on every platform, fill in the matrix below to show which ones are supported. If there's no limitations to the feature on any platform, consider removing this whole section. -->
2022

21-
| Feature | Windows | Android | iOS | Web (WASM) | macOS | Linux (Skia) | Win 7 (Skia) |
23+
| Feature | Windows | Android | iOS | Web (WASM) | macOS | Linux (Skia) | Win 7 (Skia) |
2224
|---------------|-------|-------|-------|-------|-------|-------|-|
2325
| Feature1 || ✔/✖ (choose appropriate) | ? (fill in) | ? | ? | ? | ? |
2426
| Feature2... || ? | ? | ? | ? | ? | ? |

doc/.feature-template.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
1+
---
2+
uid: Uno.Doc-Templates.Feature.Uno-Specifics
3+
---
24
<!-- For available Markdown syntax, check out https://guides.github.com/features/mastering-markdown/ -->
35

46
# YourFeature
@@ -12,7 +14,7 @@
1214

1315
## Supported features
1416

15-
| Feature | Windows | Android | iOS | Web (WASM) | macOS | Linux (Skia) | Win 7 (Skia) |
17+
| Feature | Windows | Android | iOS | Web (WASM) | macOS | Linux (Skia) | Win 7 (Skia) |
1618
|---------------|-------|-------|-------|-------|-------|-------|-|
1719
| Feature1 || ✔/✖ (choose appropriate) | ? (fill in) | ? | ? | ? | ? |
1820
| Feature2... || ? | ? | ? | ? | ? | ? |

doc/.howto-template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
uid: Uno.Doc-Templates.How-To
3+
---
4+
15
# How to [complete TaskX]
26

37
<!-- For available Markdown syntax, check out https://guides.github.com/features/mastering-markdown/ -->

doc/articles/check-toc-utilities/Guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Open this file to view `- name:` and `href:` entries that should be added to `to
6767
> Visual Studio 2022 does not show the generated file by default.
6868
> To open it, see these Steps:
6969
>
70-
> ![check-toc-find-toc-additions](..\uno-development\assets\check-toc-find-toc-additions-file.gif)
70+
> ![check-toc-find-toc-additions](..\Assets\check-toc-find-toc-additions-file.gif)
7171
7272
## Related Pages
7373

doc/articles/check-toc-utilities/Overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
uid: Uno.Contributing.check-toc.Overview
33
---
4-
# Overview
4+
# Toc Checker Overview
55

66
The [`check_toc.ps1`](../check_toc.ps1) script helps maintain the structure and integrity of your documentation by:
77

doc/articles/contributing/Documentation/doc-on-docs.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
uid: Uno.Contributing.Docs
33
---
44

5-
# Contributing docs to Uno Platform
5+
# Contributing Documentation to Uno Platform
66

77
Good documentation is essential, and writing docs is a valued contribution that makes Uno more useful for everybody. This article covers *when* to write docs and *what* you should write, with a focus on two of the most common forms of documentation: step-by-step guides (ie howtos or tutorials), and feature documentation.
88

@@ -12,9 +12,9 @@ For the DocFX tool used to build the docs website, see [more info here](xref:Uno
1212

1313
## Key links
1414

15-
* [How-to template](https://github.com/unoplatform/uno/blob/master/doc/.howto-template.md)
16-
* [WinUI feature template](https://github.com/unoplatform/uno/blob/master/doc/.feature-template.md)
17-
* [Uno-only feature template](https://github.com/unoplatform/uno/blob/master/doc/.feature-template-uno-only.md)
15+
* [How-to template](xref:Uno.Doc-Templates.How-To)
16+
* [WinUI feature template](xref:Uno.Doc-Templates.Feature.Uno-Specifics)
17+
* [Uno-only feature template](xref:Uno.Doc-Templates.Feature.Uno-only)
1818

1919
## Resources
2020

@@ -29,7 +29,7 @@ Step-by-step guides that address a particular problem or use case that multiple
2929

3030
* For longer tutorials, it's fine to split the content over multiple pages.
3131
* Guides should always be accompanied by working code. Standalone applications should be added to the [Uno.Samples repository](https://github.com/unoplatform/Uno.Samples) and linked to from the associated tutorial.
32-
* Use the [how-to template](https://github.com/unoplatform/uno/blob/master/doc/.howto-template.md) as a starting point.
32+
* Use the [how-to template](xref:Uno.Doc-Templates.How-To) as a starting point.
3333
* Structure guides as a series of clear, actionable steps. After carrying out every step as described, the user should end up with working code that demonstrates the objective of the guide (either a standalone sample, or a new feature in their existing app).
3434

3535
## Documenting features
@@ -44,7 +44,7 @@ There's two different cases:
4444

4545
Uno's API matches WinUI's API, and most of the time, a new Uno feature will map to an existing WinUI feature.
4646

47-
In this case, to the extent that the behavior you're adding is the same as the WinUI behavior, you **don't** need to add documentation. The existing WinUI documentation is fine. It's already linked to from [Uno's reference documentation](../implemented-views.md).
47+
In this case, to the extent that the behavior you're adding is the same as the WinUI behavior, you **don't** need to add documentation. The existing WinUI documentation is fine. It's already linked to from [Uno's reference documentation](../../implemented-views.md). <!-- xref usage here not possible because UWPSyncGenerator adds none on this file (at least at local doc execution not) -->
4848

4949
What if the Uno behavior deviates from WinUI behavior?
5050

@@ -58,7 +58,7 @@ In those cases, it's important to add documentation. Copy the [WinUI feature tem
5858

5959
Rarely, features are added to Uno Platform that aren't part of WinUI (`VisibleBoundsPadding` and `ElevatedView` are two examples). Somewhat more commonly, platform-specific functionality or options are added to an existing feature.
6060

61-
It's important to document these novel features when you add them, since they aren't covered anywhere else. Again, copy the [Uno-only feature template here](https://github.com/unoplatform/uno/blob/master/doc/.feature-template-uno-only.md) to the [features directory](https://github.com/unoplatform/uno/tree/master/doc/articles/features) and fill in the sections.
61+
It's important to document these novel features when you add them, since they aren't covered anywhere else. Again, copy the [Uno-only feature template here](xref:Uno.Doc-Templates.Feature.Uno-Only) to the [features directory](../../features/) and fill in the sections.
6262

6363
## Updating the documentation from linked repositories
6464

doc/articles/contributing/Documentation/docfx.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ uid: Uno.Contributing.DocFx
77
# The Uno documentation website and DocFX
88

99
*[TOC]: Table of Contents
10-
*[HTML]: Hypertext Markup Language
1110
*[docs]: documentation
12-
*[doc file]: markdown file
1311

1412
Uno Platform's docs website uses [DocFX](https://dotnet.github.io/docfx/) to convert Markdown (.md) files in the [articles folder](https://github.com/unoplatform/uno/tree/master/doc/articles) into [HTML files](xref:Uno.Documentation.Intro).
1513

1614
## Linking to the TOC
1715

18-
Normally when you add a new doc file, you also add it to [articles/toc.yml](../toc.yml). This allows it to show up in the left sidebar TOC on the docs website.
16+
Normally when you add a new markdown file, you also add it to [articles/toc.yml](../../toc.yml). This allows it to show up in the left sidebar TOC on the docs website.
1917

2018
### Checking Links in the TOC
2119

doc/articles/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
- name: Adding documentation
363363
href: uno-development/doc-on-docs.md
364364
- name: DocFX
365-
href: uno-development/docfx.md
365+
href: xref:Uno.Contributing.DocFx
366366
- name: Toc Checker
367367
href: xref:Uno.Contributing.check-toc.Overview
368368
items:
@@ -404,7 +404,7 @@
404404
- name: UI tests with Uno.UITest
405405
href: xref:Uno.Contributing.Tests.CreateUITests
406406
- name: Testing PowerShell Scripts with Pester
407-
href: Uno.Contributing.Tests.PowerShell-Pester-Tests
407+
href: xref:Uno.Contributing.Tests.PowerShell-Pester-Tests
408408
- name: Using the SamplesApp
409409
href: xref:Uno.Contributing.SamplesApp
410410
- name: Inspecting the visual tree

0 commit comments

Comments
 (0)