43 lines
958 B
JavaScript
43 lines
958 B
JavaScript
#!/usr/bin/env node
|
|
|
|
/**
|
|
* Simple renderer for Terrace Rust documentation
|
|
* This would be used by the documentation build system
|
|
*/
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
// Simple template rendering for the Rust docs
|
|
function renderRustDocs() {
|
|
console.log('Rendering Terrace Rust Documentation...');
|
|
|
|
const docsDir = path.dirname(__filename);
|
|
const files = [
|
|
'index.tce',
|
|
'core-api.inc.tce',
|
|
'document-api.inc.tce',
|
|
'reader-api.inc.tce',
|
|
'recipes.inc.tce'
|
|
];
|
|
|
|
files.forEach(file => {
|
|
const filePath = path.join(docsDir, file);
|
|
if (fs.existsSync(filePath)) {
|
|
console.log(`✓ Found ${file}`);
|
|
} else {
|
|
console.log(`✗ Missing ${file}`);
|
|
}
|
|
});
|
|
|
|
console.log('Rust documentation files are ready for the build system.');
|
|
}
|
|
|
|
// Export for use in build scripts
|
|
module.exports = { renderRustDocs };
|
|
|
|
// Run if called directly
|
|
if (require.main === module) {
|
|
renderRustDocs();
|
|
}
|