Skip feature flags generation if yaml is absent
Feature flags are generated dynamically when
content/_data/feature_flags.yaml
is present.
For upstream projects where this file is not
present (for example when testing the HTML links
in gitlab-org/gitlab
https://gitlab.com/gitlab-org/gitlab/-/jobs/1211005905), Nanoc will fail when
building the site. By skipping the addition of
the feature flags content in ee/user/feature_flags.md
,
Nanoc can build the site successfully.
Fixes the error:
NoMethodError: undefined method `[]' for nil:NilClass
Current item: /ee/user/feature_flags.md (:default representation)
This fails because we iterate over a non-existing file https://gitlab.com/gitlab-org/gitlab-docs/-/blob/93396cb5ed66de6f3ada206cfc9243846086343c/layouts/feature_flags_table.md.erb#L27.
Edited by Achilleas Pipinellis