Conversation
Signed-off-by: Hunter Achieng <achienghunter@gmail.com>
|
@hunterachieng this looks like a great start. How do we configure linting rules? Is there a config file we can set up? When I run right now, I get errors like this in a bunch of adaptors: I don't think the docusaurus build is throwing this error - if it was, the docs wouldn't be building. So we've worked out a solution to run linting, that's great! How do we ensure consistent rules with the docs repo? Maybe a good acceptance criteria is:
|
|
@josephjclark when I use |
|
Hmm. If we can't get consistent linting then there's sadly no point in doing this work (we'll just have to be vigilant and manually check that the docs build passes) Looking at https://www.npmjs.com/package/@mdx-js/mdx#architecture it feels like this is a quite a complicated compilation process. But there must be a way to configure standards. If you go to docusaurus, are you able to find docs or issues which explain how to configure linting rules? |
|
@josephjclark I have checked docusaurus and they have this playground for checking if your |
|
@hunterachieng setting the input format to The markdown we generate is technically fine. We know that because we can build the docsite from it. The problem is that there's some strictness somewhere in the parsing process that is failing because, for example, closing HTML elements aren't on a new line (ie, bad formatting in the markdown). So we need to work out how to get that same strictness in I think this requires more investigation. We should put the issue into Blocked until we can find more time to investigate (I can't spend any time on this this week) @martalovescoffee I can't access zenhub, can you mark this is blocked for me? Thanks! |
|
@josephjclark since we moved this to blocked, I am turning this into a draft PR until we get back to it |
Summary
Implement
@mdx-js/mdxto lint docs during buildFixes #1241
Details
Add technical details of what you've changed (and why).
AI Usage
Please disclose how you've used AI in this work (it's cool, we just want to
know!):
You can read more details in our
Responsible AI Policy
Review Checklist
Before merging, the reviewer should check the following items:
production? Is it safe to release?
dev only changes don't need a changeset.