Skip to content

Conversation

@Younique98
Copy link
Contributor

πŸ”— Relevant links

Preview link πŸ”Ž
Asana task 🎟️

πŸ—’οΈ What

  • Migrated Packer documentation and website content into the web-unified-docs system
  • Enhanced unified-docs Makefile with Packer-specific development targets
  • Fixed content structure to support non-versioned products (versionedDocs: false)
  • Integrated Packer routes: packer, /packer/docs, /packer/install, /packer/tutorials, /packer/integrations
  • Converted and restored Packer redirects from JS to JSONC format
  • Set up proper Docker configuration for Packer content

🀷 Why

The Packer documentation needed to be migrated from its standalone website to the unified documentation system to:

  • Consolidate HashiCorp documentation under a single platform
  • Improve maintenance and development workflow
  • Provide consistent user experience across HashiCorp products
  • Enable shared infrastructure and tooling benefits

πŸ› οΈ How

  • Content Migration

  • Copied all relevant files from Packer repository (content, data, public, examples, etc.)

  • Analyzed existing product structures to understand the required layout for versionedDocs: false products

  • Discovered that non-versioned products require nested content/ structure: content/packer/content/docs/ instead of content/packer/docs/

  • Configuration Updates

  • Added Packer configuration to productConfig.mjs with versionedDocs: false

  • Enhanced the unified-docs Makefile with Packer development targets (packer-dev, packer-website-dev)

  • Converted Packer redirects from JavaScript to JSONC format to match unified-docs expectations

  • Structure Fixes

  • Compared with working non-versioned products (HCP docs, well-architected-framework)

  • Implemented nested structure (content/packer/content/docs/) and moved partials accordingly

  • Fixed MDX include path resolution issues by placing partials at content

  • Docker & Build

  • Resolved Docker build issues related to missing binary files in prebuild scripts

  • Successfully integrated Packer content processing into the unified-docs build pipeline

  • Verified all routes work correctly after structural changes

πŸ“Έ Design Screenshots

No design changes - this is an infrastructure/content migration maintaining existing Packer documentation appearance and functionality.

πŸ§ͺ Testing

Verify Docker containers start successfully: docker compose --profile unified-docs up -d
Test main Packer page: http://localhost:3000/packer
Test docs landing page: http://localhost:3000/packer/docs (primary fix)
Test install page: http://localhost:3000/packer/install
Test tutorials page: http://localhost:3000/packer/tutorials
Test integrations page: http://localhost:3000/packer/integrations
Verify Makefile targets work: make packer-dev and make unified-docs
Check that redirects are properly loaded (inspect network requests)
Verify content includes/partials render correctly (no broken @include references)

πŸ’­ Anything else?

Future Considerations

  • The Packer productConfig includes a TODO about plugin documentation that may need attention
  • May need to monitor for any missing content or broken links during initial deployment
  • Consider adding automated tests for critical Packer routes

Revert Plan

  • If issues arise, the migration can be reverted
  • Removing Packer configuration from productConfig.mjs
  • Removing Packer content directory: content/packer/
  • Reverting Makefile changes
  • Removing Packer-related Docker compose modifications

review checklist
I have documented a clear reason for, and description of, the change I am making.
If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
If applicable, I've documented the impact of any changes to security controls.

@github-actions github-actions bot added the Packer label Nov 4, 2025
Successfully integrated Packer website content into the web-unified-docs platform with full functionality.

## What's Working
- **Docker Setup**: Both unified-docs-api and dev-portal containers running successfully
- **Content Migration**: All Packer docs, examples, data, and assets properly migrated
- **Web Interface**: Packer documentation accessible at http://localhost:3000/packer
- **API Integration**: Redirects API working correctly (/api/content/packer/redirects)
- **Product Support**: Packer listed as supported product in unified-docs system

## Key Issues Resolved
- **Unversioned Documentation**: Configured `versionedDocs: false` for Packer in productConfig.mjs (unlike other products that use versioned structures)
- **Content Structure**: Fixed nested directory issues (docs/docs) to match expected unified-docs format
- **Redirects Format**: Converted Packer redirects from JS format to JSONC format required by unified-docs
- **Port Conflicts**: Resolved Docker port binding conflicts during development
- **Directory Structure**: Ensured proper content/packer/docs/ hierarchy vs versioned content/product/vX.X.X/ pattern

## Migration Summary
Packer now fully integrated into unified-docs with proper unversioned documentation structure. The system handles Packer's non-versioned content correctly while maintaining compatibility with other versioned products in the platform.
These compiled binaries should not be in version control and should be
generated during build processes instead.
Updates the documentation content directory from 'docs' to 'content'.

This change aligns the documentation structure with the new site
generation process, ensuring proper content loading and rendering.
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Vercel Previews Deployed

Name Status Preview Updated (UTC)
Dev Portal βœ… Ready (Inspect) Visit Preview Tue Nov 4 16:34:09 UTC 2025
Unified Docs API βœ… Ready (Inspect) Visit Preview Tue Nov 4 16:27:08 UTC 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Broken Link Checker

No broken links found! πŸŽ‰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant