Skip to content

[Docs] Prevent staging deployments from being indexed in searches #8641

Open
@mgadewoll

Description

@mgadewoll

Description

Currently PR staging links for the new EUI+ docs seem to be indexed and showing up in e.g. google searches.
This leads to broken links when the instances are cleaned up.
We already had that happen for the old EUI docs and fixed it in this PR by using noindex and nofollow for dev & staging.

We should update the new EUI+ docs as well to ensure the PR staging deployments are not indexed.

Acceptance criteria

  • Update docusaurus configuration to inject a meta tag for PR preview builds
  • Disable sitemap generation in PR preview builds
  • Update PR deployment pipeline to set an environment variable that lets docusaurus know it should include the meta tag (see above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationIssues or PRs that only affect documentation - will not need changelog entrieslow hanging fruitAn issue, often a bug, that is lower effort and clearly ought to be fixed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions