{"id":42466131,"url":"https://github.com/chubes4/chubes-docs","last_synced_at":"2026-01-28T09:39:23.373Z","repository":{"id":327097940,"uuid":"1106646426","full_name":"chubes4/chubes-docs","owner":"chubes4","description":"Automatically syncs documentation from GitHub to WordPress using the Abilities API.","archived":false,"fork":false,"pushed_at":"2026-01-23T23:52:09.000Z","size":298,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-24T09:33:28.125Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chubes.net","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chubes4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-29T16:57:33.000Z","updated_at":"2026-01-23T23:52:13.000Z","dependencies_parsed_at":"2026-01-23T22:01:48.217Z","dependency_job_id":null,"html_url":"https://github.com/chubes4/chubes-docs","commit_stats":null,"previous_names":["chubes4/chubes-docs"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/chubes4/chubes-docs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubes4%2Fchubes-docs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubes4%2Fchubes-docs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubes4%2Fchubes-docs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubes4%2Fchubes-docs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chubes4","download_url":"https://codeload.github.com/chubes4/chubes-docs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubes4%2Fchubes-docs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28843981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-28T09:39:22.778Z","updated_at":"2026-01-28T09:39:23.368Z","avatar_url":"https://github.com/chubes4.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chubes Docs\n\nA WordPress plugin that provides REST API sync system and admin enhancements for chubes.net documentation.\n\n## Quick Start\n\nSee the docs in [`docs/`](docs/) for endpoint details and sync workflows:\n\n- [API Reference](docs/api-reference.md)\n- [Sync Guide](docs/sync-guide.md)\n- [GitHub Sync Diagnostics](docs/github-sync-diagnostics.md)\n\n\u003e Note: `POST /sync/doc` requires `filesize` (int) and `timestamp` (string), and `subpath` is an array of strings.\n\n```bash\ncurl -X POST /wp-json/chubes/v1/sync/doc \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"source_file\": \"README.md\",\n    \"title\": \"Getting Started\",\n    \"content\": \"# Getting Started\\n\\nInstallation instructions...\",\n    \"project_term_id\": 123,\n    \"filesize\": 1024,\n    \"timestamp\": \"2026-01-11T00:00:00Z\",\n    \"subpath\": [\"guides\"]\n  }'\n```\n## Features\n\n- **REST API Endpoints**: Full CRUD operations for documentation posts and project taxonomy management\n- **Enhanced Sync System**: Project-based sync with `project_term_id` and `subpath` parameters (v0.2.0+)\n- **GitHub Integration**: Full GitHub API integration for automated documentation sync from repositories\n- **Codebase Integration**: GitHub and WordPress.org repository metadata tracking with admin columns\n- **Install Tracking**: Automatic fetching of active install counts from WordPress.org API with daily updates\n- **Markdown Processing**: Convert markdown content to HTML with internal link resolution\n- **Related Posts**: Hierarchical project-aware related documentation display\n- **Cron Sync**: Scheduled automated synchronization with configurable intervals (hourly/twice daily/daily)\n- **Admin Interface**: GitHub PAT configuration, connection diagnostics, and sync management UI\n- **WP-CLI Commands**: Command-line tools for project management and documentation sync\n- **WP Abilities API**: AI agent capabilities for documentation synchronization\n- **Sync Notifications**: Email alerts for sync completion and failures\n\n## Requirements\n\n- WordPress 6.0+\n- PHP 8.0+\n- Chubes theme (required for full functionality)\n\n## Installation\n\n1. Download the latest release from the [releases page](https://github.com/chubes4/chubes-docs/releases)\n2. Upload the plugin to your WordPress installation\n3. Activate the plugin\n4. The plugin requires the Chubes theme to be active for documentation features\n\n## API Endpoints\n\nThe plugin provides REST API endpoints under the `chubes/v1` namespace:\n\n### Documentation\n- `GET /wp-json/chubes/v1/docs` - List documentation posts\n- `POST /wp-json/chubes/v1/docs` - Create new documentation\n- `GET /wp-json/chubes/v1/docs/{id}` - Get specific documentation\n- `PUT /wp-json/chubes/v1/docs/{id}` - Update documentation\n- `DELETE /wp-json/chubes/v1/docs/{id}` - Delete documentation\n\n### Project Taxonomy\n- `GET /wp-json/chubes/v1/project` - List project taxonomy terms\n- `GET /wp-json/chubes/v1/project/tree` - Get hierarchical project tree\n- `POST /wp-json/chubes/v1/project/resolve` - Resolve or create taxonomy path\n- `GET /wp-json/chubes/v1/project/{id}` - Get specific taxonomy term\n- `PUT /wp-json/chubes/v1/project/{id}` - Update taxonomy term\n\n### Sync\n- `POST /wp-json/chubes/v1/sync/setup` - Setup project + category terms\n- `GET /wp-json/chubes/v1/sync/status` - Get sync status for a project (requires `project`)\n- `POST /wp-json/chubes/v1/sync/doc` - Sync a single document\n- `POST /wp-json/chubes/v1/sync/batch` - Batch sync documents\n- `POST /wp-json/chubes/v1/sync/all` - Manually sync GitHub docs for all projects with GitHub URLs\n- `POST /wp-json/chubes/v1/sync/term/{id}` - Manually sync GitHub docs for a single project term\n- `GET /wp-json/chubes/v1/sync/test-token` - GitHub token diagnostics\n- `POST /wp-json/chubes/v1/sync/test-repo` - GitHub repo diagnostics (`repo_url`)\n\n### WP-CLI Commands\n- `wp chubes project ensure` - Ensure project taxonomy terms exist and are properly configured\n- `wp chubes docs sync` - Manually trigger documentation synchronization\n\n### WP Abilities API\n- `chubes/sync-docs` - Sync a single project term from GitHub\n- `chubes/sync-docs-batch` - Sync multiple project terms from GitHub\n## Development\n\n### Building\n\n```bash\n./build.sh\n```\n\nThis creates a production-ready ZIP file in the `build/` directory.\n\n### Code Structure\n\n- `inc/Api/` - REST API controllers, routes, and WP Abilities API integration\n- `inc/Core/` - Core plugin functionality (assets, breadcrumbs, project, documentation, rewrite rules)\n- `inc/Fields/` - Admin interface fields and install tracking\n- `inc/Sync/` - Markdown processing, GitHub client, cron sync, repo sync, and notifications\n- `inc/Templates/` - Frontend template enhancements (archive, project cards, homepage, related posts)\n- `inc/Admin/` - Admin interface components (settings page, admin columns)\n- `inc/WPCLI/` - WP-CLI commands for project management and documentation sync\n- `assets/css/` - Frontend stylesheets (archives, related posts)\n- `assets/js/` - Admin JavaScript (sync interface)\n\n## License\n\nGPL v2 or later\n\n## Author\n\nChris Huber - https://chubes.net","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubes4%2Fchubes-docs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchubes4%2Fchubes-docs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubes4%2Fchubes-docs/lists"}