-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: permits to specify the placement of overwrites #9937
Conversation
@dotnet-policy-service agree |
It seems It need to update |
After synchronizing the source, I've rebuild and run all the tests on my Windows PC: the tests run successfully. |
Snapshot verification tests are configured to raise error on CI environment only.
When test is executed on local environment. I though it need to apply following diff to diff --git a/test/docfx.Tests/Api.verified.cs b/test/docfx.Tests/Api.verified.cs
index 1b01828098..a4ee469295 100644
--- a/test/docfx.Tests/Api.verified.cs
+++ b/test/docfx.Tests/Api.verified.cs
@@ -1839,6 +1839,10 @@ namespace Docfx.Common
System.IO.Stream Create(Docfx.Common.RelativePath file);
Docfx.Common.IFileReader CreateReader();
}
+ public interface IItemWithMetadata
+ {
+ System.Collections.Generic.Dictionary<string, object> Metadata { get; }
+ }
public interface ILogItem
{
string Code { get; }
@@ -2820,7 +2824,7 @@ namespace Docfx.DataContracts.ManagedReference
[YamlDotNet.Serialization.YamlMember(Alias="type")]
public string Type { get; set; }
}
- public class ItemViewModel : Docfx.DataContracts.Common.IOverwriteDocumentViewModel
+ public class ItemViewModel : Docfx.Common.IItemWithMetadata, Docfx.DataContracts.Common.IOverwriteDocumentViewModel
{
public ItemViewModel() { }
[Newtonsoft.Json.JsonProperty("additionalNotes")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Patrick8639 !
After latest It seems to be caused by PolySharp source generator is failed with following error.
And related issue found at PolySharp repository. Sergio0694/PolySharp#50 For temporary workaround. By changing this line to
|
Done, and it compiles now! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9937 +/- ##
==========================================
+ Coverage 74.31% 78.84% +4.52%
==========================================
Files 536 540 +4
Lines 23189 23457 +268
Branches 4056 4064 +8
==========================================
+ Hits 17234 18494 +1260
+ Misses 4853 3822 -1031
- Partials 1102 1141 +39 ☔ View full report in Codecov by Sentry. |
@yufeih |
https://chatgpt.com is your friend for beautiful English, or otherwise let me know if you need my assistance in updating the docs. |
* feat: permits to specify the placement of overwrites Related dotnet#9908 Related dotnet#7648 * Corrected a small bug after refactoring. * IItemWithMetadata is now internal. * PolySharp is no more active for Docfx.Common --------- Co-authored-by: Yufei Huang <yufeih@live.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [docfx](https://togithub.com/dotnet/docfx) | `2.76.0` -> `2.77.0` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/docfx/2.77.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/docfx/2.77.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/docfx/2.76.0/2.77.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/docfx/2.76.0/2.77.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>dotnet/docfx (docfx)</summary> ### [`v2.77.0`](https://togithub.com/dotnet/docfx/releases/tag/v2.77.0) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### 💥 Breaking Changes - chore: Drop .NET 7 SDK supports by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9911](https://togithub.com/dotnet/docfx/pull/9911) ##### 🎉 New Features - feat: Enable PreferCSSPageSize option for PDF generation by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9850](https://togithub.com/dotnet/docfx/pull/9850) - feat: Add docfx JSON Schema files and related tests by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9852](https://togithub.com/dotnet/docfx/pull/9852) - feat: Add `toc.json` transform logics using `toc.extension.js` by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9953](https://togithub.com/dotnet/docfx/pull/9953) - feat: Better error when link not found by [@​Patrick8639](https://togithub.com/Patrick8639) in [https://github.com/dotnet/docfx/pull/9957](https://togithub.com/dotnet/docfx/pull/9957) - feat: Add `categoryLayout` option for metadata generation by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9965](https://togithub.com/dotnet/docfx/pull/9965) - feat: Permits to specify the placement of overwrites by [@​Patrick8639](https://togithub.com/Patrick8639) in [https://github.com/dotnet/docfx/pull/9937](https://togithub.com/dotnet/docfx/pull/9937) - feat: Support private symbols by [@​Patrick8639](https://togithub.com/Patrick8639) in [https://github.com/dotnet/docfx/pull/9972](https://togithub.com/dotnet/docfx/pull/9972) - feat: Add support for gzipped xrefmap that stored as local file by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9966](https://togithub.com/dotnet/docfx/pull/9966) - feat: Enable view transitions feature by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9909](https://togithub.com/dotnet/docfx/pull/9909) ##### 🐞 Bug Fixes - fix: PDF `Producer` document information by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9851](https://togithub.com/dotnet/docfx/pull/9851) - fix: Xrefmap baseUrl problem reported at [#​9866](https://togithub.com/dotnet/docfx/issues/9866) by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9869](https://togithub.com/dotnet/docfx/pull/9869) - fix: Xref links are not resolved on docs site by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9880](https://togithub.com/dotnet/docfx/pull/9880) - fix: Change same URL check logic to case invariant by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9883](https://togithub.com/dotnet/docfx/pull/9883) - fix: Improve unresolved xref messages by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9884](https://togithub.com/dotnet/docfx/pull/9884) - fix: Fix nightly build errors by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9913](https://togithub.com/dotnet/docfx/pull/9913) - fix: TOC filter value is not shared between pages by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9912](https://togithub.com/dotnet/docfx/pull/9912) - fix: Build problems when running .NET 6 version of docfx on some environment by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9922](https://togithub.com/dotnet/docfx/pull/9922) - fix: `docfx metadata` command throw `ArgumentException` when referencing empty namespace by doc comment by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/10023](https://togithub.com/dotnet/docfx/pull/10023) - fix: serve url link by [@​WeihanLi](https://togithub.com/WeihanLi) in [https://github.com/dotnet/docfx/pull/10035](https://togithub.com/dotnet/docfx/pull/10035) ##### 🚀 Performance Improvements - perf: Change serializer for XrefMap from NewtonsoftJson to System.Text.Json by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9872](https://togithub.com/dotnet/docfx/pull/9872) - perf: Remove some enum boxing in GlobMatcher by [@​lahma](https://togithub.com/lahma) in [https://github.com/dotnet/docfx/pull/10051](https://togithub.com/dotnet/docfx/pull/10051) - perf: Optimize CountWordInText by [@​lahma](https://togithub.com/lahma) in [https://github.com/dotnet/docfx/pull/10050](https://togithub.com/dotnet/docfx/pull/10050) ##### 🔧 Engineering - chore: Skip unstable SVG content check that returned from PlantUML Online Server by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9858](https://togithub.com/dotnet/docfx/pull/9858) - deps: Update Spectre.Console package versions by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9894](https://togithub.com/dotnet/docfx/pull/9894) - chore: fix NU5129 warning on `dotnet pack` command by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9942](https://togithub.com/dotnet/docfx/pull/9942) - chore: Add PolySharp libarary to use latest C# syntax by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9960](https://togithub.com/dotnet/docfx/pull/9960) - chore: Add snapshot update workflow by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9969](https://togithub.com/dotnet/docfx/pull/9969) - chore: Remove unused workflow settings by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/10030](https://togithub.com/dotnet/docfx/pull/10030) ##### 📄 Documentation - docs: Fix typo by [@​carlos-regis](https://togithub.com/carlos-regis) in [https://github.com/dotnet/docfx/pull/9871](https://togithub.com/dotnet/docfx/pull/9871) - docs: Fix URL in markdown and match to html example by [@​si618](https://togithub.com/si618) in [https://github.com/dotnet/docfx/pull/9881](https://togithub.com/dotnet/docfx/pull/9881) - docs: Fix documentation site build warnings by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9895](https://togithub.com/dotnet/docfx/pull/9895) - docs: Fix missing docfx.json config docs by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9935](https://togithub.com/dotnet/docfx/pull/9935) - docs: Fix Docfx.App nuget package usage document by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/9994](https://togithub.com/dotnet/docfx/pull/9994) - docs: Fix plugin related docs and logs by [@​filzrev](https://togithub.com/filzrev) in [https://github.com/dotnet/docfx/pull/10029](https://togithub.com/dotnet/docfx/pull/10029) #### New Contributors - [@​carlos-regis](https://togithub.com/carlos-regis) made their first contribution in [https://github.com/dotnet/docfx/pull/9871](https://togithub.com/dotnet/docfx/pull/9871) - [@​si618](https://togithub.com/si618) made their first contribution in [https://github.com/dotnet/docfx/pull/9881](https://togithub.com/dotnet/docfx/pull/9881) - [@​Patrick8639](https://togithub.com/Patrick8639) made their first contribution in [https://github.com/dotnet/docfx/pull/9957](https://togithub.com/dotnet/docfx/pull/9957) **Full Changelog**: dotnet/docfx@v2.76.0...v2.77.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 9pm,before 6am" in timezone Europe/Zurich, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/buehler/dotnet-operator-sdk). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Hello,
Here is a pull request for a possibility to specify the placement of overwrite files.