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

An error occurred generating documentation. Path not found #197

Open
jeffpatton1971 opened this issue Mar 10, 2022 · 1 comment
Open

An error occurred generating documentation. Path not found #197

jeffpatton1971 opened this issue Mar 10, 2022 · 1 comment

Comments

@jeffpatton1971
Copy link

Description of the issue

Just attempting to build documentation for my templates, I'm getting Path not found for what appears to be a default param Path=$PWD

To Reproduce

Steps to reproduce the issue:

I'm not sure as this is running in github actions. I've tried setting inputPath and outputPath and then removing each as they are generating via the module. I attempted to pass in Path but it's ignored, so I'm struggling on what to do next.

Expected behaviour

Error output

[1](https://github.com/MultiCloudDeployment/arm-microsoftautomation-automationaccounts/runs/5499485930?check_suite_focus=true#step:4:1)0s
Run microsoft/ps-docs@main
  with:
    conventions: Azure.NameByParentPath
    modules: PSDocs,PSDocs.Azure
    outputPath: docs/
    prerelease: true
    source: .ps-docs/
/usr/bin/docker run --name a95e3644c86[2](https://github.com/MultiCloudDeployment/arm-microsoftautomation-automationaccounts/runs/5499485930?check_suite_focus=true#step:4:2)e89e4147b8c5[3](https://github.com/MultiCloudDeployment/arm-microsoftautomation-automationaccounts/runs/5499485930?check_suite_focus=true#step:4:3)67f8d36[4](https://github.com/MultiCloudDeployment/arm-microsoftautomation-automationaccounts/runs/5499485930?check_suite_focus=true#step:4:4)398_324170 --label 29a9[5](https://github.com/MultiCloudDeployment/arm-microsoftautomation-automationaccounts/runs/5499485930?check_suite_focus=true#step:4:5)e --workdir /github/workspace --rm -e INPUT_CONVENTIONS -e INPUT_MODULES -e INPUT_OUTPUTPATH -e INPUT_PRERELEASE -e INPUT_INPUTPATH -e INPUT_SOURCE -e INPUT_PATH -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/arm-microsoftautomation-automationaccounts/arm-microsoftautomation-automationaccounts":"/github/workspace" 29a95e:3[6](https://github.com/MultiCloudDeployment/arm-microsoftautomation-automationaccounts/runs/5499485930?check_suite_focus=true#step:4:6)44c862e89e414[7](https://github.com/MultiCloudDeployment/arm-microsoftautomation-automationaccounts/runs/5499485930?check_suite_focus=true#step:4:7)b[8](https://github.com/MultiCloudDeployment/arm-microsoftautomation-automationaccounts/runs/5499485930?check_suite_focus=true#step:4:8)c5367f8d3643[9](https://github.com/MultiCloudDeployment/arm-microsoftautomation-automationaccounts/runs/5499485930?check_suite_focus=true#step:4:9)8
> Checking module: PSDocs
  - Installing module
  - Using version: 0.9.0
> Checking module: PSDocs.Azure
  - Installing module
  - Using version: 0.4.0-B2[10](https://github.com/MultiCloudDeployment/arm-microsoftautomation-automationaccounts/runs/5499485930?check_suite_focus=true#step:4:10)7030

[info] Using Version: 0.9.0
[info] Using Action: __microsoft_ps-docs
[info] Using PWD: /github/workspace
[info] Using Path: /github/workspace
[info] Using Source: /github/workspace/.ps-docs/
[info] Using Conventions: Azure.NameByParentPath
[info] Using InputPath: /github/workspace
[info] Using OutputPath: docs/

---
Error: An error occured generating documentation. Path not found
at Invoke-PSDocument<Begin>, /github/home/.local/share/powershell/Modules/PSDocs/0.9.0/PSDocs.psm1: line 91
at <ScriptBlock>, /powershell.ps1: line [18](https://github.com/MultiCloudDeployment/arm-microsoftautomation-automationaccounts/runs/5499485930?check_suite_focus=true#step:4:18)0
---

Module in use and version:

  • Module: PSDocs
  • Version: [e.g. 0.9.0]

Captured output from $PSVersionTable:


Additional context

@muhammad-shameem
Copy link

even I'm facing the same issue, any solution there yet ? @jeffpatton1971 @brianmccarty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants