Skip to content

Commit 4191f8a

Browse files
committed
Enrich llms.txt with metadata, features, and quick start links
Enhance the post-build processing to generate a richer llms.txt entry point with key features, quick start links, support contact, and an auto-updating build date. The date updates on every deploy since the Astro build runs during GitHub Pages deployment.
1 parent b0424f5 commit 4191f8a

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

docs/src/integrations/llms-txt-post-process.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,51 @@ export function llmsTxtPostProcess(): AstroIntegration {
3737
// File might not exist, skip
3838
}
3939
}
40+
41+
// Enhance llms.txt with richer metadata
42+
const llmsTxtPath = path.join(outputDir, "llms.txt");
43+
try {
44+
const buildDate = new Date().toISOString().split("T")[0];
45+
const enhancedLlmsTxt = `# RocketSim
46+
47+
> RocketSim is a macOS developer tool that enhances Apple's iOS Simulator with professional-grade features for capturing, debugging, testing, and design validation. Available on the Mac App Store for iOS, macOS, watchOS, and visionOS developers.
48+
49+
Last updated: ${buildDate}
50+
Website: https://www.rocketsim.app
51+
Documentation: https://www.rocketsim.app/docs
52+
GitHub: https://github.com/AvdLee/RocketSimApp
53+
Support: support@rocketsim.app
54+
55+
## Key Features
56+
57+
- Professional screenshot and video capture with device bezels
58+
- Network traffic monitoring and debugging
59+
- Push notification and deep link testing
60+
- Design comparison with pixel-perfect overlays
61+
- Accessibility testing (Dynamic Type, VoiceOver Navigator)
62+
- Xcode build insights and team analytics
63+
- Network speed throttling and Simulator airplane mode
64+
65+
## Documentation Sets
66+
67+
- [Abridged documentation](https://www.rocketsim.app/llms-small.txt): compact version with non-essential content removed
68+
- [Complete documentation](https://www.rocketsim.app/llms-full.txt): full documentation for RocketSim
69+
70+
## Quick Start
71+
72+
- [Getting Started](https://www.rocketsim.app/docs/getting-started/onboarding)
73+
- [Product Tour](https://www.rocketsim.app/docs/getting-started/product-tour-and-quick-demos)
74+
- [FAQ](https://www.rocketsim.app/docs/support/faq)
75+
76+
## Notes
77+
78+
- All documentation is automatically generated from the same source as the official docs
79+
- The "Last updated" date reflects when the documentation was last built and deployed
80+
`;
81+
await writeFile(llmsTxtPath, enhancedLlmsTxt, "utf-8");
82+
} catch {
83+
// File might not exist
84+
}
4085
},
4186
},
4287
};

0 commit comments

Comments
 (0)