-
Notifications
You must be signed in to change notification settings - Fork 39
feat: migrating content from docs.coveo.com to typedoc #6624
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR migrates documentation content from docs.coveo.com to the TypeDoc-generated site for the Headless package. The changes introduce comprehensive documentation reorganization with new markdown files, custom navigation ordering, and a TypeDoc plugin enhancement to support advanced navigation features.
Key Changes
- Documentation migration: 28 markdown documentation files added covering usage, upgrade guides, SSR, analytics, and various Headless features
- Navigation customization: New TypeDoc plugin features for hoisting categories, sorting top-level and nested navigation items
- Configuration updates: TypeDoc configuration with project documents, custom ordering, and navigation settings
Reviewed changes
Copilot reviewed 46 out of 46 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/headless/typedoc.json | Added projectDocuments array with 29 documentation files, configured navigation ordering and hoisting |
| packages/headless/typedoc-configs/index.typedoc.json | Added "Home" and "Contributing" to groupOrder |
| packages/headless/source_docs/*.md | 28 new documentation markdown files covering all aspects of Headless usage |
| packages/documentation/lib/index.tsx | Enhanced with navigation manipulation, ordering, and hoisting logic |
| packages/documentation/lib/hoist.ts | New utility for hoisting "Other" categories in navigation |
| packages/documentation/lib/sortNodes.ts | New utility for sorting navigation nodes with custom ordering |
| packages/documentation/lib/types.ts | New NavNode type definition |
| packages/documentation/lib/normalize.ts | New string normalization utility |
| packages/documentation/lib/*.ts | Converted function declarations to arrow functions for consistency |
| packages/documentation/README.md | New README documenting the plugin's navigation features |
| .cspell.json | Added "coveoua" to dictionary |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
packages/headless/source_docs/ssr-implement-search-parameter-support.md
Outdated
Show resolved
Hide resolved
jpmarceau
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jpmarceau
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some TOC comments, but I think this already looks quite good overall 🚀
50790fa to
939d603
Compare
jpmarceau
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| }); | ||
| ``` | ||
|
|
||
| <dl><dt><strong>⚠️ WARNING</strong></dt><dd> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used the markdown
> [!WARNING]
> To provide an indent
> as well as a group markinglike this
Warning
To provide an indent
as well as a group marking
| "Upgrade", | ||
| "Versioned documentation" | ||
| ], | ||
| "hoistOther.nestedOrder": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you setup a similar config in the headless-react package, to ensure we respect the current ordering of the reference docs?
Compare the existing TOC: https://docs.coveo.com/en/headless-react/latest/reference/index.html

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I certainly can, but this points to another issue: currently this headless react content will not be linked anywhere from the site at all... at least not directly.
The only place it is linked is https://docs.coveo.com/en/headless/latest/reference/ and that page is going away (as far as I understand it). We should update the homepage of this library with a link to that reference documentation.
I'll do what I can to align these two projects as closely as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a link to the headless-react docs as well as aligned the two typedoc sites.
This includes some reordering of that site as well, specifically I moved the Controller hooks out of SSR Commerce.
My rationale for this was twofold:
- placing it under
SSR Commerceintroduced aModulesandindexsubfolders underSSR Commerce, promoting this out flattened that and alignsSSR CommercewithSSR Search - In the headless docs, we have a number of docs under
Usagewhich are relevant to only select aspects of the site. They are not grouped under the modules they relate to- I did not want to introduce a
Usagesection with only a single document, which is why it lives at the root unlike in the headless typedoc
- I did not want to introduce a
Co-authored-by: jpmarceau <[email protected]>
I've fixed this, was an artifact of rewriting the URLs |




This migrates all content for headless from docs.coveo.com over to the typedoc site. It does not contain any textual changes. This also makes some changes to the
headless-reacttypedoc site to align them with the changes in theheadlesssite.This introduces a fair amount of change to the organization of the site.
This is in Draft to allow the docs team to comment first.
To test:
packages/documentationrunpnpm buildpackages/headlessdirectory runpnpm run build:typedoc && pnpm run serve:typedocpackages/headless-reactdirectory runpnpm run build:typedoc && pnpm run serve:typedoc