Skip to content

Commit

Permalink
fix: make _tocRel deterministic (#9483)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih authored Nov 27, 2023
1 parent bf5fdea commit 8f76702
Show file tree
Hide file tree
Showing 237 changed files with 845 additions and 845 deletions.
2 changes: 1 addition & 1 deletion src/Docfx.Build/SystemMetadataGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public SystemMetadata Generate(InternalManifestItem item)
{
// when item is toc, its toc is always itself
attrs.TocPath = item.FileWithoutExtension + item.Extension;
attrs.TocRel = System.IO.Path.GetFileName(item.FileWithoutExtension) + item.Extension;
attrs.TocRel = Path.GetFileName(item.FileWithoutExtension) + item.Extension;
attrs.TocKey = item.Key;
return attrs;
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -1006,8 +1006,8 @@
"_path": "api/CSharp10.ConstantInterpolatedStrings.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,8 @@
"_path": "api/CSharp10.Issue7737.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,8 @@
"_path": "api/CSharp10.ParameterlessStructConstructors.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1365,8 +1365,8 @@
"_path": "api/CSharp10.ReadOnlyRecordStruct.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1241,8 +1241,8 @@
"_path": "api/CSharp10.RecordClass.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,8 @@
"_path": "api/CSharp10.RecordStruct.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@
"_path": "api/CSharp10.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4154,8 +4154,8 @@
"_path": "api/CSharp11.CheckedUserDefinedOperators-1.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,8 @@
"_path": "api/CSharp11.RequiredModifier.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,8 @@
"_path": "api/CSharp11.ScopedModifier.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@
"_path": "api/CSharp11.StaticAbstractMembersInInterfaces.IGetNext-1.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1274,8 +1274,8 @@
"_path": "api/CSharp11.StaticAbstractMembersInInterfaces.RepeatSequence.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@
"_path": "api/CSharp11.StaticAbstractMembersInInterfaces.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@
"_path": "api/CSharp11.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,8 @@
"_path": "api/CSharp12.CollectionExpressions.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,8 @@
"_path": "api/CSharp12.DefaultLambdaParameters.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@
"_path": "api/CSharp12.InlineArrays.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1392,8 +1392,8 @@
"_path": "api/CSharp12.PrimaryConstructors.BankAccount.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1752,8 +1752,8 @@
"_path": "api/CSharp12.PrimaryConstructors.CheckAccount.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1004,8 +1004,8 @@
"_path": "api/CSharp12.PrimaryConstructors.Distance.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@
"_path": "api/CSharp12.PrimaryConstructors.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,8 @@
"_path": "api/CSharp12.RefReadOnlyParameters.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,8 @@
"_path": "api/CSharp12.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@
"_path": "api/CSharp8.DefaultInterfaceMembers.IA.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@
"_path": "api/CSharp8.DefaultInterfaceMembers.Nested.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -974,8 +974,8 @@
"_path": "api/CSharp8.DefaultInterfaceMembers.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,8 @@
"_path": "api/CSharp8.DisposableRefStructs.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -918,8 +918,8 @@
"_path": "api/CSharp8.Issue4007.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2162,8 +2162,8 @@
"_path": "api/CSharp8.Misc.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1158,8 +1158,8 @@
"_path": "api/CSharp8.NullableReferenceTypes.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1396,8 +1396,8 @@
"_path": "api/CSharp8.ReadOnlyMembers.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,8 @@
"_path": "api/CSharp8.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -995,8 +995,8 @@
"_path": "api/CSharp9.FunctionPointers.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,8 @@
"_path": "api/CSharp9.InitOnlySetters.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,8 @@
"_path": "api/CSharp9.NativeSizedIntegers.html",
"_rel": "../",
"_tocKey": "~/api/toc.yml",
"_tocPath": "api/toc.json",
"_tocRel": "toc.json",
"_tocPath": "api/toc.html",
"_tocRel": "toc.html",
"__global": {
"namespacesInSubtitle": "Namespaces",
"classesInSubtitle": "Classes",
Expand Down
Loading

0 comments on commit 8f76702

Please sign in to comment.