Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axio runner updates #213

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Axio runner updates #213

wants to merge 3 commits into from

Conversation

davidjbrossard
Copy link
Collaborator

As discussed on the call this week, I updated the runner to indicate html rather than markdown. I cleaned up the html output, made it a valid HTML page

Copy link

netlify bot commented Feb 15, 2025

Deploy Preview for authzen-todo canceled.

Name Link
🔨 Latest commit 8d1dede
🔍 Latest deploy log https://app.netlify.com/sites/authzen-todo/deploys/67bd78678d12a1000841fed6

@ogazitt
Copy link
Collaborator

ogazitt commented Feb 25, 2025

I'm pretty sure the HTML updates will break the markdown.

Copy link
Collaborator

@ogazitt ogazitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall I think there's a misunderstanding of what this is meant to do.

The code is meant to generate valid markdown (which can include HTML) in order to generate markdown that can be processed by the docusaurus toolchain to create presentable pages with tables in them.

I believe the original intent was to make some changes like "don't use green for fail", which I think would be a one-line change.

I think this PR should be closed.

@@ -25,6 +25,7 @@ coverage
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yarn.lock should always be checked in to ensure that the dependencies are predictably installed

@@ -3,7 +3,7 @@
.idea

# Dependencies
*/node_modules
node_modules
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why this change is needed

@@ -6,12 +6,12 @@ const AUTHZEN_PDP_URL =
const AUTHZEN_PDP_API_KEY = process.env.AUTHZEN_PDP_API_KEY;

enum OutputTypes {
MARKDOWN,
HTML,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the output is actually markdown with embedded HTML. I don't think this change makes sense (at least to me)

<td>

`;
table += "```js\r\n" + item.request + "\r\n```\r\n\r\n";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is valid markdown, doesn't make sense to replace it IMO


// Return table
return table;
}

function wrapHTML(body) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure this will break the markdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants