Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Oct 27, 2025

Add hidden demo page for deep-linking examples

Summary

Created a hidden demo page to make the codeblock deep-linking feature examples functional. The deep-linking documentation now links to real content instead of placeholder URLs, making the feature more tangible and testable.

Changes:

  • Added new hidden demo page (/docs/writing-content/demo) with API documentation examples (PlantClient, PlantConfig, createPlant, etc.)
  • Updated all deep-linking examples in code-blocks.mdx to link to specific sections of the demo page
  • Added demo page to docs.yml navigation with hidden: true flag so it doesn't appear in the sidebar but remains accessible via direct links

The demo page is designed to be reusable for future component demonstrations beyond just deep-linking.

Review & Testing Checklist for Human

⚠️ Critical - URL Path Structure

  • Verify the deep-linking URLs work correctly in the preview deployment. The links use /docs/writing-content/demo#section but may need /learn prefix (check if links are broken or working)

⚠️ Critical - Hash Anchor Navigation

  • Click on the linked text in the code examples (e.g., "PlantClient", "createPlant") and verify they navigate to the correct sections of the demo page with proper scrolling

⚠️ Important - Regex Pattern Matching

  • Test the regex examples to ensure patterns like Plant\w+ correctly match and link PlantClient, PlantConfig, and PlantResponse in the code blocks

  • Verify the demo page is properly hidden from the navigation sidebar but still accessible via direct link

  • Test the exact string matching examples (TypeScript example with PlantClient and createPlant)

Test Plan

  1. Open the preview deployment and navigate to the Code Blocks page
  2. Scroll to the "Deep-linking" section
  3. Click on "PlantClient" in the first code example → should navigate to /docs/writing-content/demo#plantclient
  4. Click on "createPlant" in the same example → should navigate to /docs/writing-content/demo#createplant
  5. Test the Python regex example by hovering over text matching Plant\w+ pattern
  6. Verify the demo page doesn't appear in the navigation sidebar
  7. Manually navigate to /docs/writing-content/demo (or /learn/docs/writing-content/demo) to ensure the page loads

Notes

Add documentation for the new deep-linking feature in code blocks that allows defining a links map to make specific text clickable. Includes examples for exact string matching, regex pattern matching, and combining both approaches.

Co-Authored-By: Catherine Deskur <catherine@buildwithfern.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Contributor

- Created new hidden demo page at /docs/writing-content/demo with API documentation examples
- Updated all deep-linking examples in code-blocks.mdx to link to demo page sections
- Added demo page to docs.yml navigation with hidden: true flag
- Demo page includes PlantClient, PlantConfig, createPlant, create_plant, fetchPlants, and PlantResponse examples

Co-Authored-By: Catherine Deskur <catherine@buildwithfern.com>
@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

…61574359-document-codeblock-deep-linking
@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@devalog devalog merged commit d3eedda into main Oct 27, 2025
1 check passed
@devalog devalog deleted the devin/1761574359-document-codeblock-deep-linking branch October 27, 2025 18:38
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

Successfully merging this pull request may close these issues.

3 participants