Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/remark-lint-maximum-…
Browse files Browse the repository at this point in the history
…heading-length-4.1.1
  • Loading branch information
arebra authored Mar 3, 2025
2 parents c091077 + fc23c9c commit ebef587
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 195 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
GITHUB_ACTOR_EMAIL: [email protected]
GITHUB_REPO: https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
run: |
docker-compose run \
docker compose run \
-e GITHUB_REPOSITORY_URL=${{ needs.variables.outputs.repository_url }} \
jekyll deploy \
--env=production
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
# - uses: actions/checkout@v4
# - name: deploy dry-run
# run: |
# docker-compose run \
# docker compose run \
# jekyll deploy \
# --env=production \
# --dry-run
Expand Down
25 changes: 20 additions & 5 deletions _includes/accordion-table.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
{%- comment -%}
**Parameters
content(required): What will be displayed inside the accordion when expanded.
header_collapse_text: Text to display on the collapse header. If not supplied the text 'Hide fields' will be used.
header_collapse_css: CSS class to apply to the text on the collapse header. If not supplied default style will be used.
header_expand_text: Text to display on the expand header. If not supplied the text 'Show fields' will be used.
header_expand_css: CSS class to apply to the text on the expand header. If not supplied default style will be used.
accordion_id: Id of the accordion. If not supplied 'accordion-1' will be used.
{%- endcomment -%}

{% assign content = include.content | markdownify%}
{% assign accordion_id = include.accordion_id | default: 'accordion-1' %}
{% assign header_collapse_text = include.header_collapse_text | default: 'Hide fields'%}
{% assign header_collapse_css = include.header_collapse_css%}
{% assign header_expand_text = include.header_expand_text | default: 'Show fields'%}
{% assign header_expand_css = include.header_expand_css%}

<div class="accordion">
<button type="button" class="accordion-header" aria-expanded="false" aria-controls="exp-1">
<span class="mr-3 show">Show fields</span>
<span class="mr-3 hide">Hide fields</span>
<button type="button" class="accordion-header" aria-expanded="false" aria-controls="{{accordion_id}}">
<span class="mr-3 show {{header_expand_css}}">{{header_expand_text}}</span>
<span class="mr-3 hide {{header_collapse_css}}">{{header_collapse_text}}</span>
</button>
<div class="accordion-body" id="exp-1">
<div class="accordion-body" id="{{accordion_id}}">
{{ content }}
</div>
</div>
</div>
Loading

0 comments on commit ebef587

Please sign in to comment.