Skip to content
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

Unable to detect markdown file #614

Closed
3 tasks done
steve02081504 opened this issue Jan 4, 2024 · 1 comment
Closed
3 tasks done

Unable to detect markdown file #614

steve02081504 opened this issue Jan 4, 2024 · 1 comment
Labels
Resolution-Answered The question is answered.

Comments

@steve02081504
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

  1. clone https://github.com/steve02081504/ps12exe/tree/3edc17851ec0ccefd0a0ef4ed1b1105969e04b03/
  2. Run Update-MarkdownHelp .\docs\.decls\en-UK\

Expected behavior

~ >cd .\workstation\ps12exe\
~/workstation/ps12exe master@3edc178
 >Update-MarkdownHelp .\docs\.decls\en-UK\
~/workstation/ps12exe master@3edc178
 >

Actual behavior

~ >cd .\workstation\ps12exe\
~/workstation/ps12exe master@3edc178
 >Update-MarkdownHelp .\docs\.decls\en-UK\
WARNING: [Update-MarkdownHelp] 01/04/2024 11:26:36 Path '.\docs\.decls\en-UK\' does not contain any markdown files.

Error details

~ >cd .\workstation\ps12exe\
~/workstation/ps12exe master@3edc178
 >Update-MarkdownHelp .\docs\.decls\en-UK\
WARNING: [Update-MarkdownHelp] 01/04/2024 11:26:36 Path '.\docs\.decls\en-UK\' does not contain any markdown files.
~/workstation/ps12exe master@3edc178
 >Get-Error
~/workstation/ps12exe master@3edc178
 >ls .\docs\.decls\en-UK\

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a---          2024/1/4     10:41          12735   ps12exe.md
-a---          2024/1/3     19:30           2230   ps12exeGUI.md

~/workstation/ps12exe master@3edc178
 >

Environment data

~ >Get-Module -Name PlatyPS

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     0.14.2                PlatyPS                             {Get-HelpPreview…

~ >$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.0
PSEdition                      Core
GitCommitId                    7.4.0
OS                             Microsoft Windows 10.0.22635
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

~ >

Visuals

图片

@steve02081504 steve02081504 added the Needs-Triage The issue is new and needs to be triaged by a work group. label Jan 4, 2024
@sdwheeler
Copy link
Collaborator

Update-MarkdownHelp is designed to the cmdlet markdown files for a module. The module can't be named the same as a command in the module for this to work. Your module is named ps12exe and you have a command named ps12exe. Update-MarkdownHelp expects ps12exe.md to be formatted a as module file instead of a command file.

@sdwheeler sdwheeler added Resolution-Answered The question is answered. and removed Needs-Triage The issue is new and needs to be triaged by a work group. labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Answered The question is answered.
Projects
None yet
Development

No branches or pull requests

2 participants