Adding specific navigation node causes build to fail #9365
Unanswered
milanholemans
asked this question in
Q&A
Replies: 1 comment 9 replies
-
|
Hmmm, weird, that looks like a bug yes. The only thing I can think of is that we may have a naming conflict in how we emit JSON data bundles, ie 2 docs compete to produce the same json file.
Could you try both cases and report what works or doesn't? Because I'm not sure what you did exactly.
|
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings
Our team maintains an open-source tool called CLI for Microsoft 365. Because we are a CLI tool, we also need documentation. About 6 months ago we moved from MkDocs to Docusaurus and up until now, it's working perfectly.
For every PR created in our repo, we verify if the docs are built without issues. Yesterday we encountered something strange. A contributor of ours created a new PR (pnp/cli-microsoft365#5537) to introduce a new command with associated documentation. We noticed that the docs workflow failed to build, but couldn't really see why this happened.
We pulled the code locally and tried a local build with both
npm startandnpm run build. Both actions are working perfectly on our local machine.It's quite annoying that we can't reproduce it locally, but we did some trial & error with the GH build workflow.
The issue occurs when we add a certain navigation node to the sidebar.
{ "type": "doc", "label": "group user list", "id": "cmd/aad/group/group-user-list" }Our findings at this moment:
autogeneratedordering, the build fails.idproperty likecmd/aad/group/group-user-list1orcmd/aad/group/group-userlist, the build succeeds.cmd/aad/group-user-list), the build succeeds.Can someone please help us? At this moment we don't really have an idea what is causing this. Also, the fact that this only occurs in GitHub actions is very odd.
Thank you in advance
The CLI for Microsoft 365 maintainers team
Information
Our Docusaurus code: https://github.com/pnp/cli-microsoft365/tree/main/docs/docs
Failing PR: pnp/cli-microsoft365#5537
Failing workflow: https://github.com/pnp/cli-microsoft365/actions/runs/6383089625/job/17341230586
Failing workflow with advanced diagnostics enabled: https://github.com/pnp/cli-microsoft365/actions/runs/6393129410/job/17352061057
Beta Was this translation helpful? Give feedback.
All reactions