Skip to content

Commit

Permalink
Merge pull request #971 from alphagov/remove-special-route-publishing
Browse files Browse the repository at this point in the history
Remove publishing_api tasks
  • Loading branch information
KludgeKML authored Oct 1, 2024
2 parents 151da5a + c23bf81 commit f478e02
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 389 deletions.
41 changes: 0 additions & 41 deletions config/content_items.yml

This file was deleted.

32 changes: 1 addition & 31 deletions docs/support/rake_tasks.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,6 @@
# Rake Tasks

There are a number of Rake tasks available to help with
sending content to the Publishing API and administrating users.

## Publishing API Tasks

All content items are found in `config/content_items.yml`

### Publish redirects
Publishes all routes in the `redirects` array
```ruby
publishing_api:publish_redirects
```

### Publish_all special_routes
Publishes all routes in the `special_routes` array

```ruby
publishing_api:publish_special_routes
```

### Publish a help page by name
Publishes a single help page from the help_pages hash, the name
being the first key for the required help page.
```ruby
publishing_api:publish_help_page[name]
```

### Publish single special route by content_id
```ruby
publishing_api:publish_special_route[content_id]
```
There are a number of Rake tasks available to help with administering users.

## User Support Tasks

Expand Down
130 changes: 0 additions & 130 deletions lib/publishing_api_tasks.rb

This file was deleted.

23 changes: 0 additions & 23 deletions lib/tasks/publishing_api.rake

This file was deleted.

164 changes: 0 additions & 164 deletions spec/lib/publishing_api_tasks_spec.rb

This file was deleted.

0 comments on commit f478e02

Please sign in to comment.