Skip to content

Conversation

@BillWagner
Copy link
Member

@BillWagner BillWagner commented Dec 3, 2018

We've strived for hackable URLs throughout the .NET docset. That has sometimes meant we have index.md files in directories where they don't add much value.

This PR makes several navigation changes:

. Removes whats-new/index.md
. Redirects that traffic to whats-new/csharp-7-3 (which is currently the latest version.

  • Removes the link on the "What's New" item in the TOC.
  • Incorporate important bits from "what's new" index page (which has been removed)
  • Update hub page with link for "What's New", and remove redundant link.
  • Fix link to anchor in old "What's New" index.

This PR does not change any other links pointing to the index.md file on the assumption that those links should track the current "laster" version.

Related to #8206

@BillWagner BillWagner changed the title [WIP] experiment: handling no index files Update Navigation for "What's New" section in C#. Dec 4, 2018
Copy link
Contributor

@rpetrusha rpetrusha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, @BillWagner. I've left a few comments for you to consider.

"redirect_document_id": false
},
{
"source_path": "docs/csharp/whats-new/index.md",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem with this redirection is that it needs to be revised for each new version, which is a maintenance issue.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be easier to do the redirection in the index.md file directly

We've strived for hackable URLs throughout the .NET docset. That has sometimes meant we have index.md files in directories where they don't add much value.

This PR is an experiment which tries the following with the C# Guide:

. Removes `whats-new/index.md`
. Redirects that traffic to `whats-new/csharp-7-3` (which is currently the latest version.

This PR **does not ** update the TOC.md file, bcause the JavaScript code that hightlights the current page breaks when multiple nodes in the TOC refer to the same file.
This PR also **does not** change any other links pointing to the index.md file on the assumption that those links should track the current "laster" version.
A few related changes here:

- Incorporate important bits from "what's new" index.
- Update hub page with link for "What's New", and remove redundant link.
- Fix bad link.
Respond to feedback / Part 1
@BillWagner BillWagner force-pushed the experiment-index-redirects branch from d31597d to d2ecbd2 Compare December 10, 2018 18:23
@BillWagner BillWagner merged commit 6427c8b into dotnet:master Dec 10, 2018
@BillWagner BillWagner deleted the experiment-index-redirects branch December 10, 2018 20:18
This article provides a history of each major release of the C# language. The C# team is continuing to innovate and add new features. Detailed language feature status, including features considered for upcoming releases can be found [on the dotnet/roslyn repository](https://github.com/dotnet/roslyn/blob/master/docs/Language%20Feature%20Status.md) on GitHub.

> [!IMPORTANT]
> The C# language relies on types and method in what the C# specification defines as a *standard library* for some of the features. The .NET platform delivers those types and methods in a number of packages. One example is exception processing. Every `throw` statement or expression is checked to ensure the object being thrown is derived from <xref:System.Exception>. Similarly, every `catch` is checked to ensure that the type being caught is derived from <xref:System.Exception>. Each version may add new requirements. To use the latest language features in older environments, you may need to install specific libraries. These dependencies are documented in the page for each specific version. You can learn more about the [relationships between language and library](relationships-between-language-and-library.md) for background on this dependency.
Copy link
Contributor

@Thraka Thraka Dec 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The C# language relies on types and methods .... I'll edit and fix this 😄

Thraka added a commit that referenced this pull request Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants