Skip to content

Use Markdoc partial for shared .mdoc content #30888

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jhgilbert
Copy link
Contributor

@jhgilbert jhgilbert commented Aug 4, 2025

What does this PR do? What is the motivation?

DOCSENG-73

An .md page was using include-markdown to include a generated .md file compiled from an .mdoc file. While this technically works, we never intended to support that use case, and the edit link on the including page cannot work correctly in that situation (generated .md files are not in version control, so are not linkable on GitHub).

This PR

  • updates the including .md page to be .mdoc instead. The edit link still doesn't work in the preview site yet, since the underling file is not available on master, but it should work after this PR is deployed.
  • moves the shared content to a partial file (no other changes to the content were made)
  • uses a partial tag on both pages to include the new partial file as the content of the pages

Reviewer notes

This is not urgent at all. If you're not comfortable reviewing Markdoc content, feel free to create a card and assign it to someone who has completed the Cdocs preview.

Merge instructions

Merge readiness:

  • Ready for merge

For Datadog employees:

Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). Without this format, your pull request will not pass CI, the GitLab pipeline will not run, and you won't get a branch preview. Getting a branch preview makes it easier for us to check any issues with your PR, such as broken links.

If your branch doesn't follow this format, rename it or create a new branch and PR.

[6/5/2025] Merge queue has been disabled on the documentation repo. If you have write access to the repo, the PR has been reviewed by a Documentation team member, and all of the required checks have passed, you can use the Squash and Merge button to merge the PR. If you don't have write access, or you need help, reach out in the #documentation channel in Slack.

Additional notes

@jhgilbert jhgilbert added the WORK IN PROGRESS No review needed, it's a wip ;) label Aug 4, 2025
@github-actions github-actions bot added the Architecture Everything related to the Doc backend label Aug 4, 2025
Copy link
Contributor

github-actions bot commented Aug 4, 2025

ℹ️ Documentation Team Review

No documentation team review is required for this pull request.

Copy link
Contributor

github-actions bot commented Aug 4, 2025

@jhgilbert jhgilbert removed the WORK IN PROGRESS No review needed, it's a wip ;) label Aug 5, 2025
@jhgilbert jhgilbert marked this pull request as ready for review August 5, 2025 20:04
@jhgilbert jhgilbert requested a review from a team as a code owner August 5, 2025 20:04
@joepeeples
Copy link
Contributor

joepeeples commented Aug 5, 2025

Opened DOCS-11742 to assign a Docs writer and follow up with editorial review.

@joepeeples joepeeples added the editorial review Waiting on a more in-depth review label Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Architecture Everything related to the Doc backend editorial review Waiting on a more in-depth review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants