Skip to content

Commit 7f40f0e

Browse files
authored
Update create-links-markdown.md
1 parent fc675c4 commit 7f40f0e

File tree

1 file changed

+2
-104
lines changed

1 file changed

+2
-104
lines changed
+2-104
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,5 @@
11
# Linking guidance for Azure technical content
2-
### Links from one article to another
3-
To create an inline link from one technical article to another technical article, use the following link syntax:
42

5-
* An article in a service directory links to another article in the same service directory:
6-
7-
`[link text](article-name.md)`
8-
* An article links from a service subdirectory to an article in the root directory:
9-
10-
`[link text](../article-name.md)`
11-
* An article in the root directory links to an article in a service subdirectory:
12-
13-
`[link text](./service-directory/article-name.md)`
14-
* An article in a service subdirectory links to an article in another service subdirectory:
15-
16-
`[link text](../service-directory/article-name.md)`
3+
This guidance has moved to the docs.microsoft.com internal contributor's guide.
174

18-
* An article links to a .NET API topic:
19-
20-
`[link text](/dotnet/api/type-or-member-name)`
21-
22-
## Links to anchors
23-
You do not have to create anchors - they are automatically generated at publishing time for all H2 headings. The only thing you have to do is create links to the H2 sections.
24-
25-
* To link to a heading within the same article:
26-
27-
`[link](#the-text-of-the-H2-section-separated-by-hyphens)`
28-
`[Create cache](#create-cache)`
29-
* To link to an anchor in another article in the same subdirectory:
30-
31-
`[link text](article-name.md#anchor-name)`
32-
`[Configure your profile](media-services-create-account.md#configure-your-profile)`
33-
* To link to an anchor in another service subdirectory:
34-
35-
`[link text](../service-directory/article-name.md#anchor-name)`
36-
`[Configure your profile](../service-directory/media-services-create-account.md#configure-your-profile)`
37-
38-
One way to automate the process of creating links in your articles to auto-generated anchor links is [MarkdownAnchorLinkGenerator - a tool to generate anchor links for ACOM in the proper format](https://github.com/Azure/Azure-CSI-Content-Tools/tree/master/Tools/ACOMMarkdownAnchorLinkGenerator).
39-
40-
## Links from includes
41-
Since include files are located in another directory, you will need to use longer relative paths as shown below. To link to an article from an include file, use this format:
42-
43-
[link text](../articles/service-folder/article-name.md)
44-
45-
Learn more about how to use an include file in the [Custom markdown extensions guidelines](custom-markdown-extensions.md#includes).
46-
47-
## Links in selectors
48-
If you have selectors that are embedded in an include, you would use this sort of linking:
49-
50-
> [!div class="op_multi_selector" title1="text" title2="text"]
51-
- [(Text1 | Example1 )](../articles/service-folder/article-name1.md)
52-
- [(Text1 | Example2 )](../articles/service-folder/article-name2.md)
53-
- [(Text2 | Example3 )](../articles/service-folder/article-name3.md)
54-
- [(Text2 | Example4 )](../articles/service-folder/article-name4.md)
55-
56-
57-
## Reference-style links
58-
You can use reference style links to make your source content easier to read. The reference style links replace the inline link syntax with simplified syntax that allows you to move the long URLs to the end of the article. Here's Daring Fireball's example:
59-
60-
Inline text:
61-
62-
I get 10 times more traffic from [Google][1] than from [Yahoo][2] or [MSN][3].
63-
64-
Link references at the end of the article:
65-
66-
<!--Reference links in article-->
67-
[1]: http://google.com/
68-
[2]: http://search.yahoo.com/
69-
[3]: http://search.msn.com/
70-
71-
Make sure you include the space after the colon, before the link. When you link to other technical articles, if you forget to include the space, the link will be broken in the published article.
72-
73-
## Linking to other Microsoft sites
74-
To link to other Microsoft sites (MSDN, azure.microsoft.com, TechNet), use an absolute URL, but omit the locale. The goal here is that links work in GitHub and on the rendered site:
75-
76-
[link text](http://azure.microsoft.com/pricing/details/virtual-machines/)
77-
78-
79-
### Use friendly link text for all links
80-
The words you include in a link should be friendly - in other words, they should be normal English words or the title of the page you are linking to. Do not use "click here". It's bad for SEO and doesn't adequately describe the target.
81-
82-
**Correct:**
83-
84-
* `For more information, see the [contributor guide index](contributor-guide-index.md).`
85-
* `For more details, see the [SET TRANSACTION ISOLATION LEVEL](https://msdn.microsoft.com/library/ms173763.aspx) reference.`
86-
87-
**Incorrect:**
88-
89-
* `For more details, see [https://msdn.microsoft.com/library/ms173763.aspx](https://msdn.microsoft.com/library/ms173763.aspx).`
90-
* `For more information, click [here](https://github.com/Azure/azure-content/blob/master/contributor-guide/contributor-guide-index.md).`
91-
92-
## FWLinks
93-
Avoid FWLinks (our redirection system). They should be used only as a last resort when you need to create a link for a page whose URL you don't yet know. They are almost never actually needed. For technical articles, you define the file name, so you can know what it will be ahead of time.
94-
95-
If you must use an FWLink on a web page, include the P parameter to make it a permanent redirect:
96-
97-
http://go.microsoft.com/fwlink/p/?LinkId=389595
98-
99-
When you paste the target URL into the FWLink tool, remember to remove the locale if your target link is ACOM, or the MSDN or TechNet library.
100-
101-
### Contributors' Guide Links
102-
* [Overview article](../README.md)
103-
* [Index of guidance articles](contributor-guide-index.md)
104-
105-
<!--image references-->
106-
[1]: ./media/create-tables-markdown/table-markdown.png
107-
[2]: ./media/create-tables-markdown/break-tables.png
5+
[https://aka.ms/markdown-links](https://aka.ms/markdown-links)

0 commit comments

Comments
 (0)