-
Notifications
You must be signed in to change notification settings - Fork 344
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
Reorganize patterns and examples to reflect site architecture #2418
Comments
@richnoah @alflennik I'd like to discuss this PR and how to divide up the work on it during Tuesday's meeting. |
Editing example filesFollowing are instructions for plan step:
There are 30 pattern subdirectories in the As of July 31, when revising these instructions, work to revise the example files for the following patterns in the '"move-examples" branch has already ben completed:
Note that the following pattern subdirectories do not contain subdirectories for examples:
Note that there is no pattern for landmarks. We probably don't need to make changes to landmark example files to achieve the goals of this issue. The landmark example files need to be redesigned as part of a separate project. As of July 31, the following steps need to be performed for the examples contained in the other 24 patterns. Here are the work items to complete for each
Note: Since we are not yet migrating the practices and other content, do not edit the href of links to any practices-related content. Those will continue to be resolved by the site build script. |
Notes for redirect planning
|
Based on discussion in today's meeting, I changed the plan to name the pattern files using the form I have now created stub pattern files for all 30 patterns in the "move-examples" branch used for PR #2417. I have started making notes about needs for redirects in a comment above. |
@a11ydoer, the "move-examples" branch is now ready for you to edit example files.
Make sure you pull just before you push, just in case we happen to be working at the same time. I will only be working on the pattern files. @alflennik is focused on scripts and actions. You are the only person working on the example files, so we should easily be able to avoid conflicts. |
I am thinking about the site build scripts and wondering whether increasing the scope of PR #2417 might actually simplify scripting and reduce risks associated with this restructuring. Consider processing for the following two links in this file: aria-practices/grid-pattern.html at move-examples
The current plan is to move the practices content in a separate PR. So, for PR #2417, the site build script will need to reliably distinguish between the above links to modify the href of the link on line 109 but not modify the href of the link on line 29. Does this introduce unnecessary complexity? Typically, we reduce risk by keeping PRS scoped more narrowly, but since this PR is already enormous, would it be less risky to expand the scope of this PR and move practices content at the same time? |
Note that I just revised the step related to the "about this example" section my comment about editing example files. I also went ahead and did the work for the breadcrumb example because I saw need to change the name of the example file and wanted to reference it from the pattern. I won't touch any other examples until we coordinate. Again, I recommend pushing after each time you complete the changes for one example file. That will help ensure we don't run into problems. I am pushing after each pattern is complete. Patterns are now half done. |
@mcking65 update on documentation - The new href should be '../PatternName-pattern.html', not '../pattern-PatternName.html'. Those are the way three other examples are done. (ex: Accordion, alert, and breadcrum pattern) |
@mcking65 I finished the example file update till radio group pattern. Next pattern which will be updated is the slider pattern. I plan to work on the rest example file update tonight. |
Hi @mcking65, I looked at the two links you pointed out. If you look on the published version of the page you can find the link on line 29 by searching for "manages focus movement inside it" and you can find the link on line 109 by searching for "Key Assignment Conventions for Common Functions". In the current version of this page, neither of the links is a same page link - both link to other pages on the site. So I'm a little bit confused when you say one is a link to another page and another is a same page link. I think the confusion emphasizes the need for the links to actually work, so I would definitely advocate that we try to find a way to make sure as many as possible of the links remain functional. Does that help resolve anything? |
@mcking65 @alflennik I am working on the rest of examples files this morning. I will let you know two when all are completed. |
@alflennik @mcking65 I finished all the example file updates. Please feel free to work on the "move-examples" branch. |
Note: After reviewing #2450, I updated step 11 in the plan with more detail. Previously, step 11 was:
Now, step 11 is:
|
I want to move treview-1a and treview-1b examples up a level so the directory structure is consistent with other patterns. However, several of your PRs include fixes to example pages, so I'm going to wait till we merge your PRs into move-examples. Moving the treeview examples might re-break a few things, e.g., regression testing for them. So, we'll need to circle back on that. I figure that is easier than me moving them now and potentially creating need to rebase some of your work. |
Steps 1 through 5 are now complete except for above mentioned changes to two of the treeview examples. |
After discussing this in the task force meeting we decided to tackle this last after the other PRs have been merged into the |
The patterns, examples, and practices are now all moved out of aria-practices.html and all links across content, (e.g., patterns to practices and vice versa) should be in good shape now. Next steps:
|
Note that I have created #2487 and #2488 and assigned to @alflennik. Now that I am done with content edits and link updates, I think we are ready for those two tasks. Note that we will also need to track the need for redirects for those two changes as well. |
This issue documents one portion of the reorganize repository project.
Objective
Build a content tree containing the home page, patterns, examples, and index. The practices and about sections of the site will be handled in subsequent steps.
Directory Structure
Plan
/content/patterns/accordion/accordion-pattern.html
. Copy content from respec file into the new pattern file and edit as needed./content/index/generated-content-index.html
The text was updated successfully, but these errors were encountered: