This file is a merged representation of a subset of the codebase, containing files not matching ignore patterns, combined into a single document by Repomix.
The content has been processed where comments have been removed, empty lines have been removed, content has been compressed (code blocks are separated by ⋮---- delimiter).

<file_summary>
This section contains a summary of this file.

<purpose>
This file contains a packed representation of a subset of the repository's contents that is considered the most important context.
It is designed to be easily consumable by AI systems for analysis, code review,
or other automated processes.
</purpose>

<file_format>
The content is organized as follows:
1. This summary section
2. Repository information
3. Directory structure
4. Repository files (if enabled)
5. Multiple file entries, each consisting of:
  - File path as an attribute
  - Full contents of the file
</file_format>

<usage_guidelines>
- This file should be treated as read-only. Any changes should be made to the
  original repository files, not this packed version.
- When processing this file, use the file path to distinguish
  between different files in the repository.
- Be aware that this file may contain sensitive information. Handle it with
  the same level of security as you would the original repository.
</usage_guidelines>

<notes>
- Some files may have been excluded based on .gitignore rules and Repomix's configuration
- Binary files are not included in this packed representation. Please refer to the Repository Structure section for a complete list of file paths, including binary files
- Files matching these patterns are excluded: **/.git/**, **/.github/**, **/node_modules/**, **/vendor/**, **/third_party/**, **/external/**, **/libs/**, **/lib/**, **/bin/**, **/obj/**, **/build/**, **/dist/**, **/target/**, **/out/**, **/release/**, **/debug/**, **/wwwroot/**, **/public/**, **/assets/**, **/static/**, **/[tT]est/**, **/[tT]ests/**, **/__tests__/**, **/[lL]ogs/**, **/[mM]igrations/**, **/.vs/**, **/.vscode/**, **/.idea/**, **/.pnpm-store/**, **/.yarn/**, **/.npm/**, **/__pycache__/**, **/.pytest_cache/**, **/.mypy_cache/**, **/.gradle/**, **/.mvn/**, **/coverage/**, **/.coverage/**, **/reports/**, **/report/**, **/TestResults/**, **/tmp/**, **/temp/**, **/.tmp/**, **/.cache/**, **/.history/**, **/.DS_Store, **/Thumbs.db, **/*.log, **/*.out, **/*.err, **/*.trace, **/*.trc, **/*.tmp, **/*.cache, **/*.dmp, **/*.dump, **/*.core, **/*.binlog, **/*.ndjson, **/*.jsonl, **/*.csv, **/*.evtx, **/*.etl, **/*.access, **/*.error, **/*.exe, **/*.dll, **/*.so, **/*.dylib, **/*.bin, **/*.app, **/*.msi, **/*.apk, **/*.ipa, **/*.lib, **/*.a, **/*.o, **/*.obj, **/*.lo, **/*.lai, **/*.class, **/*.jar, **/*.war, **/*.ear, **/*.pdb, **/*.idb, **/*.ilk, **/*.nupkg, **/*.snupkg, **/*.gem, **/*.whl, **/*.egg, **/*.deb, **/*.rpm, **/*.zip, **/*.tar, **/*.gz, **/*.tgz, **/*.rar, **/*.bz2, **/*.xz, **/*.7z, **/*.lz, **/*.lzma, **/*.min.js, **/*.min.css, **/*.map, **/*.css, **/*.scss, **/*.sass, **/*.less, **/*.jpg, **/*.jpeg, **/*.png, **/*.gif, **/*.bmp, **/*.tif, **/*.tiff, **/*.webp, **/*.heif, **/*.heic, **/*.svg, **/*.eps, **/*.ai, **/*.raw, **/*.cr2, **/*.cr3, **/*.nef, **/*.arw, **/*.dng, **/*.orf, **/*.rw2, **/*.avif, **/*.apng, **/*.ico, **/*.psd, **/*.psb, **/*.xcf, **/*.hdr, **/*.exr, **/*.dcm, **/*.dicom, **/*.fits, **/*.ppm, **/*.pgm, **/*.pbm, **/*.j2k, **/*.jp2, **/*.pcx, **/*.tga, **/*.iff, **/*.sgi, **/*.ras, **/*.coverage, **/*.lcov, **/*.gcov, **/*.gcda, **/*.gcno, **/*.generated, **/*.g.cs, **/*.designer.cs, **/*.lock, **/*.lock.json, **/*.eot, **/*.ttf, **/*.woff, **/*.woff2, **/*.pfx, **/*.p12, **/*.cer, **/*.crt, **/*.key, **/*.editorconfig, **/*.tool-versions, **/*.onnx, **/*.pt, **/*.pth, **/*.h5, **/*.ckpt, **/*.sln, **/*.csproj, **/*.config, **/*.user, **/*.vsidx, **/*.v2, **/*.db*, **/.*ignore, **/.git*, **/*.config.*, **/.gitignore, **/.DS_Store, **/.idea/**, **/.vscode/**, **/.eclipse/**, **/.settings/**, **/BUILD, **/*.bzl, **/pom.xml, **/build.gradle, **/gradlew, **/CMakeLists.txt, **/Makefile*, **/archive/**, **/brand/**, **/template/**, **/tools/screenshots/**, **/v2/assets/**, **/www/assets/css/**, **/www/assets/img/**, **/www/assets/fonts/**, **/www/assets/icons/**, **/www/assets/video/**, **/www/assets/downloads/**, **/www/assets/php/PHPMailer/**, **/www/install/**, **/www/installers/**, **/*.css, **/*.js, **/*.html, **/*.png, **/*.jpg, **/*.jpeg, **/*.gif, **/*.svg, **/*.ico, **/*.mp4, **/*.pdf, **/*.txt, **/*.map, **/*.eot, **/*.otf, **/*.ttf, **/*.woff, **/*.woff2, **/*.xml, **/*.yml, **/*.json
- Files matching patterns in .gitignore are excluded
- Files matching default ignore patterns are excluded
- Code comments have been removed from supported file types
- Empty lines have been removed from all files
- Content has been compressed - code blocks are separated by ⋮---- delimiter
- Files are sorted by Git change count (files with more changes are at the bottom)
</notes>

</file_summary>

<directory_structure>
tools/
  qa/
    README.md
v2/
  _launch/
    README.md
README.md
</directory_structure>

<files>
This section contains the contents of the repository's files.

<file path="tools/qa/README.md">
# v2 QA

Accessibility, performance, responsiveness and content checks for the v2 website in `v2/`, built for [kf-landing#6](https://github.com/KnowledgeFabric/kf-landing/issues/6). They run every v2 page in Chromium, Firefox and WebKit with [Playwright](https://playwright.dev), [axe](https://github.com/dequelabs/axe-core) and [Lighthouse](https://github.com/GoogleChrome/lighthouse), and check the source against the brand guidelines and the copy deck.

## Run it

You need Node 22.19 or later. From this folder:

```bash
npm ci && npm test
```

`npm test` downloads the three browsers the first time (`npx playwright install`), starts a static server for `v2/` at `/v2/` on port 4173, and runs everything: about four minutes on a recent Mac. When it finishes, read `report/summary.md`. It has the bar, row by row, and the detail behind each row.

v2 is not deployed: it sits outside `www/`, so neither the live site nor an Azure preview serves it. To check a copy served somewhere else, give its address without a trailing slash; the pages are expected at `/v2/` beneath it:

```bash
QA_BASE_URL=http://localhost:8080 npm test
```

The workflow in `.github/workflows/v2-qa.yml` runs the same checks on every pull request that touches `v2/`, and keeps the report as the run's `v2-qa-report` artifact. Run it by hand from the Actions tab to point it at another address.

### Options

| Variable | Default | What it does |
|---|---|---|
| `QA_BASE_URL` | a local server | The site to check, without a trailing slash. Pages are checked at `/v2/…` beneath it. |
| `QA_ENGINES` | `chromium,firefox,webkit` | The browsers to use. |
| `QA_LH_RUNS` | `3` | Lighthouse runs per page. The run with the median performance score is the one reported. |
| `QA_LH_REFERENCE` | off | Calibrates Lighthouse's CPU slowdown for a slower host (below). The workflow sets it to `3000`. |
| `QA_PORT` | `4173` | The local server's port. |

To run part of it: `npx playwright test --project=content --no-deps` for the source checks alone, `-g "keyboard"` for the tests whose names match, and `npm run report` to open the full Playwright report.

**Firefox on macOS 27.** Playwright's Firefox build (1543) doesn't start on macOS 27 (seen on 27.0.1): it exits with "Could not find profile folder", even when launched by hand. Until a Playwright release fixes that, run `QA_ENGINES=chromium,webkit npm test` on such a Mac. The workflow runs all three on Linux.

## What it checks

| Check | How | Bar (kf-landing#6) |
|---|---|---|
| axe | WCAG 2.0, 2.1 and 2.2 A and AA rules plus axe's best practices, at 375 and 1440 px, in each engine; also with the form's error showing | No serious or critical issue |
| Widths | Every page at 320, 375, 768, 1024, 1440 and 1920 px, with the phone menu open where it shows. A full-page screenshot of each in `report/screenshots/<engine>/` | No horizontal overflow |
| What loads | Every request on first load at phone and desktop width, with an empty cache, then everything that loads on the way to the foot of the page | Nothing from another host; no failed requests; no cookies or browser storage; no console errors; first load under 500 KB; fonts on first load within the brand's 200 KB |
| Links | Every internal link, stylesheet, script and image answers, and every `#anchor` exists on its page | None broken |
| Glyphs | Every character on a page is in the font file that draws it (read from the WOFF2 `cmap`), so a subset can't silently drop one | Arrows may fall back, as Public Sans and Newsreader have none |
| Logo | The navigation and footer lockups' minimum sizes, colours and clear space (brand 5) | Brand 5 |
| Keyboard | Tab from the top of the home page to the end: the skip link first, a visible focus ring on every stop, nothing under the fixed navigation, no positive `tabindex`. The phone menu, the install tabs (arrow keys, Home and End), the Copy button's announcement, and the form's error and success states | WCAG 2.2 AA |
| Screen reader structure | Each page's accessibility tree: one `h1`, no skipped heading levels, named and unique landmarks, `lang="en-GB"`, and the home page's headings in the copy deck's order. The tree is attached as `aria-snapshot.yml` | WCAG 2.2 AA |
| Zoom and spacing | 200% zoom (a 640 px viewport at twice the density) and WCAG 1.4.12's text spacing, with nothing overflowing or cut off | WCAG 2.2 AA |
| Motion | With `prefers-reduced-motion`, no animation and the draft complete from the start; without it, the page still once the hero has drawn | Brand 12 |
| Lighthouse | Mobile, on every page | Performance ≥ 95; Accessibility 100; Best Practices 100; LCP under 2.0 s; CLS under 0.05. SEO is reported but not held to the bar while v2 carries `noindex` |
| Content | British spelling; no retired copy, banned claims or off-brand words (read from the copy deck and brand 4); no exclamation marks or emoji; every open marker tracked in #10; no literal colours or pixel sizes outside `tokens.css`; logo files outlined, on palette and without effects | Brand 4, 5 and 15; copy deck |

The checks are scripted versions of the ticket's manual checks too, so they catch regressions. They don't replace a person listening with VoiceOver or NVDA: do that before a launch, and after any change to the navigation, the install tabs or the form.

### Lighthouse on a slower machine

Lighthouse simulates a phone by multiplying the CPU time it observes by 4, which assumes a fast host. On a slower one the same page looks slower, so a CI runner can fail a page that passes on a laptop. With `QA_LH_REFERENCE` set, the multiplier becomes 4 × (this host's benchmark index ÷ `QA_LH_REFERENCE`), never more than 4. The bar was first met on a machine with a benchmark index of about 3,100, so the workflow uses 3000. The summary prints the index and the multiplier used.

The simulated Largest Contentful Paint counts every request that finished before the largest paint. On a local server that is everything, so local results are the strictest. Fonts are most of the weight: every face a page uses is fetched on first load, so check whether a face the page already loads will do before adding one (brand 7).

## Open markers

The copy deck's open items show on the pages as saffron-outlined markers (`data-todo`). `open-items.json` lists every one allowed, with the [kf-landing#10](https://github.com/KnowledgeFabric/kf-landing/issues/10) item that settles it. The content check fails on a marker that isn't listed, so a new one has to be tracked, and warns about listed markers no page uses any more. Each run writes the current list, grouped by #10 item, to `report/open-items.md`.

## Adding a page

Add it to `pages` in `qa.config.js`. The content check fails if a page in `v2/` is missing from the list.

## Files

| File | What it is |
|---|---|
| `qa.config.js` | The pages, widths and the bar |
| `playwright.config.js` | The engines, and the order: Lighthouse runs on its own once the browser checks have finished |
| `server.js` | The local static server, with brotli and gzip like Azure Static Web Apps |
| `tests/` | The checks |
| `lib/` | Helpers, the copy-deck reader, the WOFF2 reader and the summary reporter |
| `open-items.json` | The open markers allowed, and the #10 item for each |
| `report/` | Written by each run, not committed: `summary.md`, `screenshots/`, `lighthouse/`, `open-items.md` and Playwright's own report in `html/` |
</file>

<file path="v2/_launch/README.md">
# Launch files for v2

Prepared in kf-landing#5 and switched on in kf-landing#7. Nothing in this folder is active. v2 sits
in `v2/` at the repository's root, outside `www/`, so nothing of it is deployed until launch; the
`noindex` meta tag on every v2 page stays until then all the same.

| File | At launch it goes | Why it waits |
|---|---|---|
| `robots.txt` | `www/robots.txt` | robots.txt only works at the root of the domain, and the root still serves the current site. |
| `sitemap.xml` | `www/sitemap.xml` | One URL, `https://www.knowledgefabric.io/`, which only becomes v2 at launch. |
| `staticwebapp.responseOverrides.json` | Merged into `www/staticwebapp.config.json`, beside the existing `routes` | That file controls the live site's routing and must not change before launch. Keep the `/pilot` and `/pilots` redirects. |
| `../404.html` | `www/404.html` | The override above rewrites every 404 to `/404.html`. |

## Checklist for kf-landing#7

Do these in the same change that moves the v2 pages from `v2/` to the root of `www/`:

1. **robots.txt and sitemap.xml.** Move them to `www/`. Check that `https://www.knowledgefabric.io/robots.txt` and `/sitemap.xml` answer, then submit the sitemap in Google Search Console.
2. **404.** Move `v2/404.html` to `www/404.html` and rewrite its `/v2/…` asset paths, like every other v2 page. They must stay root-absolute, because Azure serves the 404 page in place of an address at any depth. Merge `staticwebapp.responseOverrides.json` into `www/staticwebapp.config.json`, so the file has both `routes` and `responseOverrides`. Then open a made-up path such as `/nope` and check that it shows the branded page with a 404 status.
3. **Indexing tags on `index.html`.** Remove `<meta name="robots" content="noindex">`, and uncomment the canonical and `og:url` together. Both say `https://www.knowledgefabric.io/`. They wait until launch because LinkedIn treats `og:url` as the page's address: pointing it at the root before launch would show the current site's card for v2.
4. **Absolute URLs.** The share image (`og:image`, `twitter:image`) and the structured data (`logo`, `image`) use absolute `https://www.knowledgefabric.io/v2/…` addresses, because link previews need absolute URLs. Rewrite them to the assets' new home with the rest of the `/v2/` paths, and check them with LinkedIn Post Inspector and the schema.org validator.
5. **Privacy and security pages.** Move them to the root (`/privacy.html`, `/security.html`) and update the links to them in the footer, in `#data` and under the form. Remove the "Draft for review" notice only once kf-landing#10 has signed the page off.
6. **Analytics.** In `v2/assets/js/site.js` (by then at `assets/kf/js/site.js`), set `ANALYTICS.src` to the site's script address from Plausible and `ANALYTICS.on` to `true`. Check that a visit appears on the dashboard, and that DevTools still shows no cookies.
7. **The form.** If kf-landing#10 has created the form's account, give the `#contact` form its `action` address (see the TODO beside the form in `index.html`). Without one, the form stays a stub that sends nothing.
</file>

<file path="README.md">
# Introduction 
TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project. 

# Getting Started
TODO: Guide users through getting your code up and running on their own system. In this section you can talk about:
1.	Installation process
2.	Software dependencies
3.	Latest releases
4.	API references

# Build and Test
TODO: Describe and show how to build your code and run the tests. 

# Contribute
TODO: Explain how other users and developers can contribute to make your code better. 

If you want to learn more about creating good readme files then refer the following [guidelines](https://docs.microsoft.com/en-us/azure/devops/repos/git/create-a-readme?view=azure-devops). You can also seek inspiration from the below readme files:
- [ASP.NET Core](https://github.com/aspnet/Home)
- [Visual Studio Code](https://github.com/Microsoft/vscode)
- [Chakra Core](https://github.com/Microsoft/ChakraCore)
</file>

</files>
