Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
SenjeyB committed Jan 27, 2025
1 parent 5d36a6c commit 564cbfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/commands/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function readXmirFilesRecursively(dir) {
* @param {Hash} opts - All options
*/
module.exports = function(opts) {
/*try {
try {
const inputDir = path.resolve(opts.target, '.eoc', '1-parse');
const outputDir = path.resolve(opts.target, 'docs');

Expand All @@ -78,7 +78,5 @@ module.exports = function(opts) {
} catch (error) {
console.error('Error generating documentation:', error);
throw error;
}*/
const filePath = path.resolve('eodocs.html');
fs.writeFileSync(filePath, '');
}
};
4 changes: 2 additions & 2 deletions test/commands/test_docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('docs', function() {
* @param {Mocha.Done} done - Mocha callback signaling asynchronous completion
*/
it('generates empty HTML files for packages', function(done) {
/*const samplePackageDir = path.join(eocDir, 'foo', 'bar');
const samplePackageDir = path.join(eocDir, 'foo', 'bar');
fs.mkdirSync(samplePackageDir, { recursive: true });
const xmirFilePath = path.join(samplePackageDir, 'test.xmir');
fs.writeFileSync(xmirFilePath, '<program name="test" />');
Expand All @@ -69,7 +69,7 @@ describe('docs', function() {

const cssFile = path.join(docsDir, 'styles.css');
assert(fs.existsSync(cssFile), `Expected file ${cssFile} but it was not created`);
assert.strictEqual(fs.readFileSync(cssFile, 'utf8'), '', 'Expected styles.css to be empty');*/
assert.strictEqual(fs.readFileSync(cssFile, 'utf8'), '', 'Expected styles.css to be empty');

done();
});
Expand Down

0 comments on commit 564cbfa

Please sign in to comment.