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: 3 additions & 3 deletions .github/workflows/add-community-workflow-step.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 10 additions & 22 deletions .github/workflows/add-community-workflow-step.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ safe-outputs:
max: 1
allowed-files:
- workflows/step-catalog.community.json
- docs/community/workflow-steps.md
protected-files:
policy: blocked
exclude:
Expand Down Expand Up @@ -410,10 +409,9 @@ update and draft PR. Do not add `validation-passed` before PR publication;
the conclusion job applies it and removes stale failure/info labels only after
successful safe-output processing and creation of a PR.

## 4. Update catalog and documentation
## 4. Update the catalog

Edit only `workflows/step-catalog.community.json` and
`docs/community/workflow-steps.md`.
Edit only `workflows/step-catalog.community.json`.

Use validated metadata and computed per-file digests. Preserve history as
described above. Set `verified: false`, set entry and top-level `updated_at`
Expand All @@ -423,23 +421,13 @@ Validate the complete JSON using repository-owned Python, without importing
the submitted step. Use the verifier's `expected_catalog` snapshot to perform
the catalog update; do not recreate history or timestamps from memory.

Add or update one row in the Available Step Types table, sorted by Step Type Name.
Like other community submission tables, this table does not conflate package
authors with maintainers or collect a separate Maintainer field. Retain Author
in the catalog and manifest correspondence checks only:

```text
| [<Name>](<repository>) (`<step-id>`) | <version> | <Description> |
```

Collapse newlines and remove control characters from user display values.
Escape backslashes, pipes, backticks, Markdown formatting, brackets, and angle
brackets; only the validated repository URL is used as a link destination.
Do not replace surrounding guide content.
Preserve the existing Decision listing and its compatibility/dependency notes
and maintainer attribution in prose when processing unrelated submissions.
Never replace maintainer attribution with the package Author. For an update to a listed step with
version-specific notes, update those notes from validated release documentation.
The documentation build generates the alphabetical community directory and
detail pages from the catalog. Do not edit `docs/community/workflow-steps.md`,
generated documentation, or a second Markdown table. Retain Author in the
catalog and manifest correspondence checks; it is not maintainer attribution.
Package and submission guidance is canonical in `docs/workflow-steps/publishing.md`;
version-specific notes in `docs/workflow-steps/decision.md` remain historical
guidance, not a current release listing. Do not modify those notes.

Before emitting a PR safe output, verify the generated catalog:

Expand All @@ -457,7 +445,7 @@ report success while this check is incomplete or failing.

This repository-owned gh-aw maintenance workflow does not perform the contributor
open-PR count check or request confirmation. After successful validation and
allowed catalog/docs file updates, emit the configured draft `create_pull_request`
allowed catalog updates, emit the configured draft `create_pull_request`
safe output regardless of the submitter's or filing account's open PR count.

Use branch `community/${{ github.event.issue.number }}-add-<step-id>-step` or
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'presets/catalog.community.json'
- 'bundles/catalog.community.json'
- 'workflows/catalog.community.json'
- 'workflows/step-catalog.community.json'
- '.github/workflows/docs.yml'

# Allows you to run this workflow manually from the Actions tab
Expand Down Expand Up @@ -64,6 +65,11 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}

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

- name: Build with DocFX
run: |
cd docs
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ _generated/
community/presets/
community/bundles/
community/workflows/
community/workflow-steps/

# Temporary files
*.tmp
Expand Down
23 changes: 15 additions & 8 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ To build the documentation locally:
dotnet tool install -g docfx
```

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

```bash
python3 docs/generate_presets.py --fetch-stars
python3 docs/generate_bundles.py --fetch-stars
python3 docs/generate_workflows.py --fetch-stars
python3 docs/generate_workflow_steps.py --fetch-stars
```

3. Build the documentation:
Expand All @@ -30,12 +31,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 `presets/catalog.community.json`,
`bundles/catalog.community.json`, or `workflows/catalog.community.json`. They create
`bundles/catalog.community.json`, `workflows/catalog.community.json`, or
`workflows/step-catalog.community.json`. They create
the ignored `_generated/preset-directory.md`, `_generated/bundle-directory.md`,
and `_generated/workflow-directory.md` includes and `community/presets/*.md`,
`community/bundles/*.md`, and `community/workflows/*.md` detail pages, removing pages for deleted entries.
`_generated/workflow-directory.md`, and `_generated/workflow-step-directory.md`
includes and `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 preset, bundle, or workflow content. With
building it does not fetch or execute third-party preset, bundle, workflow, or
executable step-package content. 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
workflow uses its repository token. Counts reflect the last build,
Expand Down Expand Up @@ -118,7 +124,8 @@ the site homepage. Process command references and authentication remain under
- `community/extensions.md` - Community extension listing
- `community/integrations.md` - Community integration discovery and contribution
- `community/workflows.md` - Community workflow listing and contribution
- `community/workflow-steps.md` - Community step listing and submission contract
- `community/workflow-steps.md` - Catalog-generated community step directory
- `workflow-steps/decision.md` - Version-specific Decision 0.9.0 dependency notes
- `integrations/index.md` - Integration directory and shared setup guidance
- `integrations/cli.md` - Shared integration management CLI reference
- `integrations/api.md` - Public Python adapter and file ownership contracts
Expand All @@ -130,9 +137,9 @@ the site homepage. Process command references and authentication remain under

## Deployment

Documentation, community preset, bundle, or workflow catalog, and docs workflow changes on the
Documentation, community 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, and workflow directories and detail pages and refreshes repository star
generates the 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
Loading
Loading