Skip to content

Commit

Permalink
docs: update edit this page paritial for elements code and demo pages (
Browse files Browse the repository at this point in the history
…#2123)

* docs: update edit this page paritial for elements code and demo pages

* docs: typo
  • Loading branch information
zeroedin authored Jan 13, 2025
1 parent 1a839fe commit 04fc9a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/_includes/partials/component/edit-this-page.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
{% endfor %}
{% endif %}
{% set editPath = ('/' + (inputPath or page.inputPath)) | replace(r/^(\.)?\//, '') %}
{% if '30-code.md' in editPath or '90-demos.md' in editPath %}
{% set editPath = 'docs/_includes/layouts/pages/element.11ty.ts' %}
{% endif %}
<a href="https://github.com/RedHat-UX/red-hat-design-system/blob/main/{{ editPath }}?plain=1">Edit this page on GitHub</a>
</div>

0 comments on commit 04fc9a5

Please sign in to comment.