-
Notifications
You must be signed in to change notification settings - Fork 14
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
Source patterns and practices pages from APG #280
Conversation
✅ Deploy Preview for aria-practices ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alflennik thanks for taking this on. This looks good to me! I also spent some time looking through the website with my local build of w3c/wai-website
against this branch and found no issues.
I shared a very minor nit below so going ahead with approving!
@@ -44,6 +50,7 @@ const getLastModifiedDate = async (exampleFilePath) => { | |||
); | |||
throw error; | |||
} | |||
// console.log(path.basename(exampleFilePath), dateFormatted) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: You can remove this
@@ -44,6 +43,12 @@ const determineContentType = (sourcePath) => { | |||
if (sourcePath.endsWith("content/index/index.html")) { | |||
return "exampleIndex"; | |||
} | |||
if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this file grows, I think we'll want to think about a different mapping structure for the content types just for the benefit of maintenance. I have no actual actionable feedback here, just sharing a very small thought that popped into my head when reviewing all the other statically defined paths here.
…s.html, and practices.html (pull #2869) Resolve issue 2702 by moving HTML content and images from the wai-aria-practices repo into the aria-practices repo. This includes HTML content for the patterns.html page, the practices.html page, and images across all patterns and examples. A complementary change is made to the build process in the wai-aria-practices repo via PR w3c/wai-aria-practices#280.
Sources the patterns and practices pages and all content on them including images, from the aria-practices repo instead of being bolted on later within the wai-aria-practices repo. See w3c/aria-practices#2702 for more information.
Should be merged following the merge of w3c/aria-practices#2869.