-
Notifications
You must be signed in to change notification settings - Fork 868
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
fix: TOC filter value is not shared between pages #9912
Merged
yufeih
merged 1 commit into
dotnet:main
from
filzrev:fix-tocfilter-is-not-saved-problem
May 13, 2024
Merged
fix: TOC filter value is not shared between pages #9912
yufeih
merged 1 commit into
dotnet:main
from
filzrev:fix-tocfilter-is-not-saved-problem
May 13, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filzrev
changed the title
fix: TOC filter is not saved problem
fix: TOC filter value is not shared between pages
May 11, 2024
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9912 +/- ##
==========================================
+ Coverage 74.31% 78.96% +4.64%
==========================================
Files 536 538 +2
Lines 23189 23316 +127
Branches 4056 4047 -9
==========================================
+ Hits 17234 18412 +1178
+ Misses 4853 3775 -1078
- Partials 1102 1129 +27 ☔ View full report in Codecov by Sentry. |
yufeih
approved these changes
May 13, 2024
yufeih
added
the
bug-fix
Makes the pull request to appear in "Bug Fixes" section of the next release note
label
May 13, 2024
p-kostov
pushed a commit
to ErpNetDocs/docfx
that referenced
this pull request
Jun 28, 2024
fix: TOC filter is not saved problem
renovate bot
referenced
this pull request
in buehler/dotnet-operator-sdk
Jul 1, 2024
[![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://github.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://github.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://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9911](https://github.com/dotnet/docfx/pull/9911) ##### 🎉 New Features - feat: Enable PreferCSSPageSize option for PDF generation by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9850](https://github.com/dotnet/docfx/pull/9850) - feat: Add docfx JSON Schema files and related tests by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9852](https://github.com/dotnet/docfx/pull/9852) - feat: Add `toc.json` transform logics using `toc.extension.js` by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9953](https://github.com/dotnet/docfx/pull/9953) - feat: Better error when link not found by [@​Patrick8639](https://github.com/Patrick8639) in [https://github.com/dotnet/docfx/pull/9957](https://github.com/dotnet/docfx/pull/9957) - feat: Add `categoryLayout` option for metadata generation by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9965](https://github.com/dotnet/docfx/pull/9965) - feat: Permits to specify the placement of overwrites by [@​Patrick8639](https://github.com/Patrick8639) in [https://github.com/dotnet/docfx/pull/9937](https://github.com/dotnet/docfx/pull/9937) - feat: Support private symbols by [@​Patrick8639](https://github.com/Patrick8639) in [https://github.com/dotnet/docfx/pull/9972](https://github.com/dotnet/docfx/pull/9972) - feat: Add support for gzipped xrefmap that stored as local file by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9966](https://github.com/dotnet/docfx/pull/9966) - feat: Enable view transitions feature by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9909](https://github.com/dotnet/docfx/pull/9909) ##### 🐞 Bug Fixes - fix: PDF `Producer` document information by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9851](https://github.com/dotnet/docfx/pull/9851) - fix: Xrefmap baseUrl problem reported at [#​9866](https://github.com/dotnet/docfx/issues/9866) by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9869](https://github.com/dotnet/docfx/pull/9869) - fix: Xref links are not resolved on docs site by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9880](https://github.com/dotnet/docfx/pull/9880) - fix: Change same URL check logic to case invariant by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9883](https://github.com/dotnet/docfx/pull/9883) - fix: Improve unresolved xref messages by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9884](https://github.com/dotnet/docfx/pull/9884) - fix: Fix nightly build errors by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9913](https://github.com/dotnet/docfx/pull/9913) - fix: TOC filter value is not shared between pages by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9912](https://github.com/dotnet/docfx/pull/9912) - fix: Build problems when running .NET 6 version of docfx on some environment by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9922](https://github.com/dotnet/docfx/pull/9922) - fix: `docfx metadata` command throw `ArgumentException` when referencing empty namespace by doc comment by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/10023](https://github.com/dotnet/docfx/pull/10023) - fix: serve url link by [@​WeihanLi](https://github.com/WeihanLi) in [https://github.com/dotnet/docfx/pull/10035](https://github.com/dotnet/docfx/pull/10035) ##### 🚀 Performance Improvements - perf: Change serializer for XrefMap from NewtonsoftJson to System.Text.Json by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9872](https://github.com/dotnet/docfx/pull/9872) - perf: Remove some enum boxing in GlobMatcher by [@​lahma](https://github.com/lahma) in [https://github.com/dotnet/docfx/pull/10051](https://github.com/dotnet/docfx/pull/10051) - perf: Optimize CountWordInText by [@​lahma](https://github.com/lahma) in [https://github.com/dotnet/docfx/pull/10050](https://github.com/dotnet/docfx/pull/10050) ##### 🔧 Engineering - chore: Skip unstable SVG content check that returned from PlantUML Online Server by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9858](https://github.com/dotnet/docfx/pull/9858) - deps: Update Spectre.Console package versions by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9894](https://github.com/dotnet/docfx/pull/9894) - chore: fix NU5129 warning on `dotnet pack` command by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9942](https://github.com/dotnet/docfx/pull/9942) - chore: Add PolySharp libarary to use latest C# syntax by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9960](https://github.com/dotnet/docfx/pull/9960) - chore: Add snapshot update workflow by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9969](https://github.com/dotnet/docfx/pull/9969) - chore: Remove unused workflow settings by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/10030](https://github.com/dotnet/docfx/pull/10030) ##### 📄 Documentation - docs: Fix typo by [@​carlos-regis](https://github.com/carlos-regis) in [https://github.com/dotnet/docfx/pull/9871](https://github.com/dotnet/docfx/pull/9871) - docs: Fix URL in markdown and match to html example by [@​si618](https://github.com/si618) in [https://github.com/dotnet/docfx/pull/9881](https://github.com/dotnet/docfx/pull/9881) - docs: Fix documentation site build warnings by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9895](https://github.com/dotnet/docfx/pull/9895) - docs: Fix missing docfx.json config docs by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9935](https://github.com/dotnet/docfx/pull/9935) - docs: Fix Docfx.App nuget package usage document by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/9994](https://github.com/dotnet/docfx/pull/9994) - docs: Fix plugin related docs and logs by [@​filzrev](https://github.com/filzrev) in [https://github.com/dotnet/docfx/pull/10029](https://github.com/dotnet/docfx/pull/10029) #### New Contributors - [@​carlos-regis](https://github.com/carlos-regis) made their first contribution in [https://github.com/dotnet/docfx/pull/9871](https://github.com/dotnet/docfx/pull/9871) - [@​si618](https://github.com/si618) made their first contribution in [https://github.com/dotnet/docfx/pull/9881](https://github.com/dotnet/docfx/pull/9881) - [@​Patrick8639](https://github.com/Patrick8639) made their first contribution in [https://github.com/dotnet/docfx/pull/9957](https://github.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>
This was referenced Sep 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR intended to fix issue reported by #9791.
On current implementation.
TOC filtering text value is not propagated between pages as expected.
And It seems to work as following behaviors.
tocFilterUrl
is always set as empty string.tocFilter
value is set on textbox update. But it's reset on every page loading.This PR change behaviors.
tocFilterUrl
value is updated if existing value is empty or another TOC URL is referenced.tocFilter
value is reset toempty string
when following conditions.2.1. When navigating to docfx site (
tocFilterUrl === ''
)2.2. When navigated page referencing another TOC. (
tocFilterUrl !== tocUrl.toString()
) ([Bug] Filter in TOC not reset #9117)