[Docs] Correct configuration search paths on Windows#478
[Docs] Correct configuration search paths on Windows#478creativeprojects merged 1 commit intocreativeprojects:masterfrom
Conversation
Append `restoicprofile` to the AppData and ProgramData paths on Windows See https://github.com/creativeprojects/resticprofile/blob/ac3b810f2f735642d0a0cea8ec46c585b80904bc/filesearch/filesearch.go#L224, resticprofile adds its AppName to the config dir paths. Also add `%USERPROFILE%\AppData\Roaming\resticprofile`, which should be included in the paths returned by `xdg.ConfigDirs` (see https://github.com/adrg/xdg/blob/d8917aeea69ad0645ce98b2a1e3edb5cab67199a/paths_windows.go#L22). Finally, I added a note to clarify that these paths can be overridden if the XDG environment variables are set.
WalkthroughThe changes update the documentation for configuration file search paths on Windows. The previous generic paths have been replaced with more specific user-based paths. Additionally, a note has been added to indicate that these paths may be overridden by the Changes
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🪛 markdownlint-cli2 (0.17.2)docs/content/configuration/path.md156-156: Unordered list style (MD004, ul-style) 157-157: Unordered list style (MD004, ul-style) 158-158: Unordered list style (MD004, ul-style) 159-159: Unordered list style (MD004, ul-style) 160-160: Unordered list style (MD004, ul-style) 161-161: Unordered list style (MD004, ul-style) 🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Well spotted, the documentation was definitely outdated. Thank you very much for the PR 👍🏻 (the documentation will be updated on the next release, possibly today or in the next few days) |
Append
resticprofileto the AppData and ProgramData paths on Windows.See
resticprofile/filesearch/filesearch.go
Line 224 in ac3b810
Also add
%USERPROFILE%\AppData\Roaming\resticprofile, which should be included in the paths returned byxdg.ConfigDirs(see https://github.com/adrg/xdg/blob/d8917aeea69ad0645ce98b2a1e3edb5cab67199a/paths_windows.go#L22).Finally, I added a note to clarify that these paths can be overridden if the XDG environment variables are set.