Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths:
- 'docs/**'
- 'extensions/catalog.community.json'
- 'integrations/catalog.community.json'
- 'presets/catalog.community.json'
- 'bundles/catalog.community.json'
- 'workflows/catalog.community.json'
Expand Down Expand Up @@ -56,6 +57,11 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}

- name: Generate community integration documentation
run: python3 docs/generate_integrations.py --fetch-stars
env:
GH_TOKEN: ${{ github.token }}

- name: Generate community preset documentation
run: python3 docs/generate_presets.py --fetch-stars
env:
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ obj/
_generated/
community/presets/
community/extensions/
community/integrations/
community/bundles/
community/workflows/
community/workflow-steps/
Expand Down
22 changes: 13 additions & 9 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ To build the documentation locally:
dotnet tool install -g docfx
```

2. Generate the community extension, preset, bundle, workflow, and workflow step directories from the local catalogs:
2. Generate the community extension, integration, preset, bundle, workflow, and workflow step directories from the local catalogs:

```bash
python3 docs/generate_extensions.py --fetch-stars
python3 docs/generate_integrations.py --fetch-stars
python3 docs/generate_presets.py --fetch-stars
python3 docs/generate_bundles.py --fetch-stars
python3 docs/generate_workflows.py --fetch-stars
Expand All @@ -31,17 +32,17 @@ To build the documentation locally:

4. Open your browser to `http://localhost:8080` to view the documentation.

Run the corresponding generator again after editing `extensions/catalog.community.json`, `presets/catalog.community.json`,
Run the corresponding generator again after editing `extensions/catalog.community.json`, `integrations/catalog.community.json`, `presets/catalog.community.json`,
`bundles/catalog.community.json`, `workflows/catalog.community.json`, or
`workflows/step-catalog.community.json`. They create
the ignored `_generated/extension-directory.md`, `_generated/preset-directory.md`, `_generated/bundle-directory.md`,
the ignored `_generated/extension-directory.md`, `_generated/integration-directory.md`, `_generated/preset-directory.md`, `_generated/bundle-directory.md`,
`_generated/workflow-directory.md`, and `_generated/workflow-step-directory.md`
includes and `community/extensions/*.md`, `community/presets/*.md`, `community/bundles/*.md`,
includes and `community/extensions/*.md`, `community/integrations/*.md`, `community/presets/*.md`, `community/bundles/*.md`,
`community/workflows/*.md`, and `community/workflow-steps/*.md` detail pages,
removing pages for deleted entries.
Do not edit these generated files. The directory uses only catalog metadata:
building it does not fetch or execute third-party extension, preset, bundle, workflow, or
executable step-package content. Extension and step pages reuse the workflow directory's
building it does not fetch or execute third-party extension, integration, preset, bundle, workflow, or
executable step-package content. Extension, integration, and step pages reuse the workflow directory's
stylesheet and build-time star lookup; only workflows have integration filters. With
`--fetch-stars`, it reads star counts from the GitHub API once per repository.
Set `GH_TOKEN` or `GITHUB_TOKEN` for authenticated API limits; the deployment
Expand All @@ -51,6 +52,9 @@ and show "Stars unavailable", never an invented zero. Omit `--fetch-stars`
for an offline build with unavailable counts. Search, tag, role/team (bundles),
category/effect (extensions), declared integration (workflows), and sort controls enhance complete static listings, which remain readable
without JavaScript.
An empty integration catalog shows contribution and built-in integration links
instead of search/filter controls; adding the first entry generates the listing
and detail page automatically.

## Structure

Expand Down Expand Up @@ -123,7 +127,7 @@ the site homepage. Process command references and authentication remain under
- `bundles/catalogs.md` - Bundle catalogs, policies, and release history
- `bundles/publishing.md` - Bundle publishing and catalog submission guide
- `community/extensions.md` - Catalog-generated community extension directory
- `community/integrations.md` - Community integration discovery and contribution
- `community/integrations.md` - Catalog-generated community integration directory
- `community/workflows.md` - Community workflow listing and contribution
- `community/workflow-steps.md` - Catalog-generated community step directory
- `workflow-steps/decision.md` - Version-specific Decision 0.9.0 dependency notes
Expand All @@ -138,9 +142,9 @@ the site homepage. Process command references and authentication remain under

## Deployment

Documentation, community preset, bundle, workflow, or workflow step catalog, and docs workflow changes on the
Documentation, community extension, integration, preset, bundle, workflow, or workflow step catalog, and docs workflow changes on the
upstream `main` branch trigger the normal GitHub Pages deployment. Each build
generates the preset, bundle, workflow, and workflow step directories and detail pages and refreshes repository star
generates the extension, integration, preset, bundle, workflow, and workflow step directories and detail pages and refreshes repository star
counts before running DocFX. A weekly run on Mondays at 04:17 UTC refreshes
the site and its build-time star counts, using the same path as manual runs.
It does not write star counts back to the catalogs.
Expand Down
60 changes: 60 additions & 0 deletions docs/assets/integration-catalog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
(() => {
const catalog = document.querySelector("[data-integration-catalog]");
if (!catalog) return;

const form = catalog.querySelector("[data-integration-controls]");
const query = form.elements.namedItem("q");
const tag = form.elements.namedItem("tag");
const sort = form.elements.namedItem("sort");
const list = catalog.querySelector(".workflow-results");
const entries = Array.from(list.children);
const status = catalog.querySelector("[data-integration-status]");
const empty = catalog.querySelector("[data-integration-empty]");
const searchable = entries.map((entry) => ({
entry,
text: entry.dataset.integrationSearch.toLocaleLowerCase(),
tags: JSON.parse(entry.dataset.integrationTags),
}));
const params = new URLSearchParams(window.location.search);
query.value = params.get("q") || "";
tag.value = params.get("tag") || "";
if (!tag.value) tag.value = "";
sort.value = params.get("sort") === "za" ? "za" : "az";

function update() {
const words = query.value.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean);
let visible = 0;
for (const item of searchable) {
const matches = words.every((word) => item.text.includes(word))
&& (!tag.value || item.tags.includes(tag.value));
item.entry.hidden = !matches;
if (matches) visible += 1;
}
const ordered = sort.value === "za" ? [...entries].reverse() : entries;
for (const entry of ordered) list.append(entry);
status.textContent = `${visible} of ${entries.length} integrations`;
empty.hidden = visible !== 0;

const next = new URL(window.location.href);
for (const [key, value] of [["q", query.value], ["tag", tag.value], ["sort", sort.value === "za" ? "za" : ""]]) {
if (value) next.searchParams.set(key, value);
else next.searchParams.delete(key);
}
window.history.replaceState(null, "", next);
}

form.addEventListener("input", update);
form.addEventListener("change", update);
form.addEventListener("submit", (event) => {
event.preventDefault();
update();
});
form.addEventListener("reset", () => {
query.value = "";
tag.value = "";
sort.value = "az";
update();
});
update();
form.hidden = false;
})();
9 changes: 6 additions & 3 deletions docs/community/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ independently maintained external adapters.

## Available integrations

The [community integration catalog](https://github.com/github/spec-kit/blob/main/integrations/catalog.community.json)
currently contains no entries. Built-in integrations ship with the CLI and are
listed separately in the integration directory.
[!INCLUDE [Community integration directory](../_generated/integration-directory.md)]

This directory is generated from the
[community integration catalog](https://github.com/github/spec-kit/blob/main/integrations/catalog.community.json).
Built-in integrations ship with the CLI and are listed separately in the
[integration directory](../integrations/index.md).

Inspect the sources active in your project and search their metadata:

Expand Down
1 change: 1 addition & 0 deletions docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"community/*.md",
"community/presets/*.md",
"community/extensions/*.md",
"community/integrations/*.md",
"community/bundles/*.md",
"community/workflows/*.md",
"community/workflow-steps/*.md",
Expand Down
Loading
Loading