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
- "content" directory at root level: This will hold all content in a tree that matches the IA of the web site. It has subdirectories for:
- patterns
- index
- shared (for js, css, scripts that need to be referenced by multiple resources. Did not name "common" because we have not yet eliminated aria-common)
- There will be a directory for each pattern that contains:
- A file for the pattern, e.g., "accordion-pattern.html". Originally considered naming "index.html" but decided a more specific file name could avoid confusion with bulk file operations.
- An examples directory for the examples.
Plan
- Create subdirectories for patterns under /patterns directory. Note: name the pattern directory the same way it is named in w3c/aria-practices/examples/. For example, the modal dialog pattern directory should be named "dialog-modal", not "dialogmodal". If the new pattern directory name differs from the path name in the currently published wai/aria/apg, add a note about the need for pattern redirect in the redirect notes comment below.
- For each pattern, create a pattern file from content in aria-practices.html, e.g.,
/content/patterns/accordion/accordion-pattern.html. Copy content from respec file into the new pattern file and edit as needed.
- In each pattern subdirectory, create an examples directory and move the example files into that directory.
- Move shared js and css into shared directory.
- Edit example html files to fix references and minimize scripted content transformation (instructions in comment below).
- Reconfigure regression tests to run test against examples in new location (regression-tests.sh)
- Update create-gh-project.js to use new examples location.
- Update reference-tables.js to use new pattern and example locations and create output in
/content/index/generated-content-index.html
- Update coverage-report.js to use new pattern and example locations and create output in /content/about/coverage-reports/
- Update github actions to utilize new locations
- Modify build process to:
- pull pattern content from new pattern content files;
- pull example content from new example locations;
- pull index content from new index location;
- Stop making content additions or modifications to patterns, examples, and index.
- Configure redirect for pattern if the pattern URL will be different from the URL for that pattern when the WAI site was launched (e.g., for modal dialog because the directory name changed from dialogmodal to dialog-modal.
- Configure redirect for examples since they are no longer in the examples-index path.
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