Skip to content

Commit

Permalink
DOC-721 Add generate-index-data extension and redirects for old docke…
Browse files Browse the repository at this point in the history
…r index page (#99)

* Add generate-index-data extension and redirects for old docker index page

* Upgrade extensions
  • Loading branch information
JakeSCahill authored Dec 12, 2024
1 parent d8035ec commit 3b87877
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 15 deletions.
8 changes: 8 additions & 0 deletions antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ antora:
extensions:
- require: '@redpanda-data/docs-extensions-and-macros/extensions/generate-rp-connect-info'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/collect-bloblang-samples'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/generate-index-data'
data:
sets:
docker_labs:
component: redpanda-labs
filter: docker-compose
env_type: Docker
attribute_name: docker-labs-index
- require: '@redpanda-data/docs-extensions-and-macros/extensions/generate-rp-connect-categories'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/modify-redirects'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/algolia-indexer/index'
Expand Down
8 changes: 8 additions & 0 deletions local-antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ antora:
extensions:
- require: '@redpanda-data/docs-extensions-and-macros/extensions/generate-rp-connect-categories'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/collect-bloblang-samples'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/generate-index-data'
data:
sets:
docker_labs:
component: redpanda-labs
filter: docker-compose
env_type: Docker
attribute_name: docker-labs-index
- require: '@redpanda-data/docs-extensions-and-macros/extensions/add-pages-to-root'
files: ['home:ROOT:attachment$llms.txt']
- require: '@redpanda-data/docs-extensions-and-macros/extensions/generate-rp-connect-info'
Expand Down
32 changes: 20 additions & 12 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -165,49 +165,57 @@ from = "/21.11/*"
to = "/current/:splat"
status = 301

# =========Bulk redirects from different components========
# ========= Docker example redirects =====================

[[redirects]]
from = "/current/reference/docker-compose/"
to = "/redpanda-labs/"
to = "/current/get-started/docker-compose-labs/"
status = 301

[[redirects]]
from = "/current/develop/chat-room/"
to = "/redpanda-labs/"
from = "/current/console/reference/docker-compose/"
to = "/current/get-started/docker-compose-labs/"
status = 301

[[redirects]]
from = "/current/develop/chat-room-docker/"
to = "/redpanda-labs/"
from = "/current/reference/console/docker-compose/"
to = "/current/get-started/docker-compose-labs/"
status = 301

[[redirects]]
from = "/current/get-started/code-samples/"
from = "/23.2/reference/docker-compose/"
to = "/current/get-started/docker-compose-labs/"
status = 301

# =========Bulk redirects from different components========

[[redirects]]
from = "/current/develop/chat-room/"
to = "/redpanda-labs/"
status = 301

[[redirects]]
from = "/current/development/code-samples/"
from = "/current/develop/chat-room-docker/"
to = "/redpanda-labs/"
status = 301

[[redirects]]
from = "/current/introduction/code-samples/"
from = "/current/get-started/code-samples/"
to = "/redpanda-labs/"
status = 301

[[redirects]]
from = "/current/develop/code-samples/"
from = "/current/development/code-samples/"
to = "/redpanda-labs/"
status = 301

[[redirects]]
from = "/current/console/reference/docker-compose/"
from = "/current/introduction/code-samples/"
to = "/redpanda-labs/"
status = 301

[[redirects]]
from = "/current/reference/console/docker-compose/"
from = "/current/develop/code-samples/"
to = "/redpanda-labs/"
status = 301

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

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

8 changes: 8 additions & 0 deletions preview-antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ antora:
- require: '@redpanda-data/docs-extensions-and-macros/extensions/generate-rp-connect-categories'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/collect-bloblang-samples'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/generate-rp-connect-info'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/generate-index-data'
data:
sets:
docker_labs:
component: redpanda-labs
filter: docker-compose
env_type: Docker
attribute_name: docker-labs-index
- require: '@redpanda-data/docs-extensions-and-macros/extensions/modify-redirects'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/unpublish-pages'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/unlisted-pages'
Expand Down

0 comments on commit 3b87877

Please sign in to comment.