Skip to content

Fix Hugo build: remove orphaned shortcodes in implement-groupdocs-annotation-java-user-roles - #78

Merged
adil-aspose merged 1 commit into
masterfrom
fix/orphaned-shortcodes-user-roles
Sep 17, 2026
Merged

adil-aspose merged 1 commit into
masterfrom
fix/orphaned-shortcodes-user-roles

Conversation

@adil-aspose

Copy link
Copy Markdown
Collaborator

Summary

Fixes the Hugo build failure:

ERROR error building site: assemble: failed to create page from pageMetaSource
/java/licensing-and-configuration/implement-groupdocs-annotation-java-user-roles:
"...content/english/java/licensing-and-configuration/implement-groupdocs-annotation-java-user-roles/_index.md:393:5":
got closing shortcode, but none is open

implement-groupdocs-annotation-java-user-roles/_index.md (all 23 language variants) had 4
trailing shortcodes with no matching openers anywhere in the file:

{{< /blocks/products/pf/tutorial-page-section >}}
{{< /blocks/products/pf/main-container >}}
{{< /blocks/products/pf/main-wrap-class >}}
{{< blocks/products/products-backtop-button >}}

Confirmed via a repo-wide search that none of these shortcodes are used anywhere else in this
repo's real content — they don't belong on this page at all (most likely boilerplate
accidentally copied in from a different repo's page template during content generation). Removed
the orphaned block from all 23 language variants; nothing else in any file was touched.

Test plan

  • Confirmed no other page in the repo references these shortcodes (grep -rl across
    content/ returns only this tutorial's 23 files, before the fix)
  • Verified all 23 files now end cleanly at their real content ("Related Tutorials" section)
  • Diff reviewed per file — each change is exactly the 7-8 orphaned lines, nothing else

implement-groupdocs-annotation-java-user-roles/_index.md (all 23
language variants) had 4 trailing shortcodes with no matching openers
anywhere in the file or, in fact, anywhere else in this repo:
{{< /blocks/products/pf/tutorial-page-section >}},
{{< /blocks/products/pf/main-container >}},
{{< /blocks/products/pf/main-wrap-class >}}, and
{{< blocks/products/products-backtop-button >}}. Confirmed via a
repo-wide search that these shortcodes are used nowhere else in this
repo's real content -- they don't belong here at all, most likely
boilerplate copied in from a different repo's page template. Hugo's
build failed with "got closing shortcode, but none is open" on the
first of the three closers.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@adil-aspose
adil-aspose merged commit 53b0e8e into master Sep 17, 2026
1 check passed
@adil-aspose
adil-aspose deleted the fix/orphaned-shortcodes-user-roles branch September 17, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants