Skip to content

Commit

Permalink
chore: tmp disable test RR.Tst.Plan.1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
psanders committed Mar 9, 2024
1 parent 30c4948 commit 33aed65
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .scripts/gen-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ const path = require("path");

// Function to recursively get all .js files from a directory and its subdirectories
function getJSFiles(dir) {
const files = fs.readdirSync(dir);
let jsFiles = [];
for (const file of files) {
const fullPath = path.join(dir, file);
if (fs.statSync(fullPath).isDirectory()) {
jsFiles = jsFiles.concat(getJSFiles(fullPath));
} else if (path.extname(fullPath) === '.js') {
jsFiles.push(fullPath);
}
const files = fs.readdirSync(dir);
let jsFiles = [];
for (const file of files) {
const fullPath = path.join(dir, file);
if (fs.statSync(fullPath).isDirectory()) {
jsFiles = jsFiles.concat(getJSFiles(fullPath));
} else if (path.extname(fullPath) === '.js') {
jsFiles.push(fullPath);
}
return jsFiles;
}
return jsFiles;
}

const outputFile = path.join(process.cwd(), 'README.md');
Expand All @@ -25,30 +25,30 @@ const allJSFiles = getJSFiles(path.join(process.cwd(), "dist"));
let fullDocumentation = ''; // Store the entire documentation here

for (const file of allJSFiles) {
const templateData = jsdoc2md.getTemplateDataSync({ files: file });

/* reduce templateData to an array of class names */
const classNames = templateData.reduce((names, identifier) => {
if (identifier.kind === "class") names.push(identifier.name);
return names;
}, []);

/* create a documentation section for each class */
for (const className of classNames) {
if (["Scanner", "Walker", "Parser", "Filter"].includes(className)) continue;
const template = `{{#class name="${className}"}}{{>docs}}{{/class}}\n`;
fullDocumentation += jsdoc2md.renderSync({
data: templateData,
template: template
});
}
const templateData = jsdoc2md.getTemplateDataSync({ files: file });

/* reduce templateData to an array of class names */
const classNames = templateData.reduce((names, identifier) => {
if (identifier.kind === "class") names.push(identifier.name);
return names;
}, []);

/* create a documentation section for each class */
for (const className of classNames) {
if (["Scanner", "Walker", "Parser", "Filter"].includes(className)) continue;
const template = `{{#class name="${className}"}}{{>docs}}{{/class}}\n`;
fullDocumentation += jsdoc2md.renderSync({
data: templateData,
template: template
});
}
}

const introFilePath = path.join(process.cwd(), ".intro.md");
if (fs.existsSync(introFilePath)) {
// If intro.md exists, prepend its content to the fullDocumentation
const introContent = fs.readFileSync(introFilePath, 'utf-8');
fullDocumentation = introContent + "\n\n" + fullDocumentation;
// If intro.md exists, prepend its content to the fullDocumentation
const introContent = fs.readFileSync(introFilePath, 'utf-8');
fullDocumentation = introContent + "\n\n" + fullDocumentation;
}

// Save the entire documentation to a single markdown file
Expand Down
1 change: 1 addition & 0 deletions etc/seet.json
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@
"transportMode": "u1",
"target": "sip01.edgeport.net:5060",
"domain": "sip.local",
"enabled": false,
"userAgents": [
{
"mode": "uas",
Expand Down
1 change: 1 addition & 0 deletions mods/connect/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export const createRemotePartyId = (
}
}

// Q: Why is this a promise?
export const createTrunkAuthentication = async (
trunk: CC.Trunk
): Promise<HeaderModifier> => {
Expand Down

0 comments on commit 33aed65

Please sign in to comment.