Skip to content

Commit ed5d949

Browse files
authored
Added "View as markdown" button (#3161)
* Added "View as Markdown" buttons * Review feedback + added tests * Before re-review * View on GitHub
1 parent 887a4a6 commit ed5d949

40 files changed

Lines changed: 1511 additions & 22 deletions

.github/workflows/build.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,25 @@ jobs:
6565
exit 1
6666
fi
6767
68+
python-tests:
69+
runs-on: ubuntu-latest
70+
71+
steps:
72+
- uses: actions/checkout@v4
73+
74+
- name: Set up Python
75+
uses: actions/setup-python@v3
76+
with:
77+
python-version: "3.13"
78+
79+
- name: Install dependencies
80+
run: |
81+
python -m pip install --upgrade pip
82+
pip install -r requirements-dev.txt
83+
84+
- name: Run pytest
85+
run: pytest
86+
6887
markdownlint:
6988
runs-on: ubuntu-latest
7089
if: github.event_name == 'pull_request'

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/vendor/
22
**/.DS_Store
33
__pycache__/*
4-
hooks/__pycache__/*
4+
**/__pycache__
55
/site/
66
**/.idea/
77
.php-cs-fixer.cache

docs/css/custom.css

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ body {
158158
}
159159

160160
.md-typeset h1 {
161-
margin: 0 0 1rem;
161+
margin: 0 0 0.5rem;
162162
font-size: 24px;
163163
line-height: 34px;
164164
}
@@ -649,3 +649,73 @@ div.path {
649649
[hidden] {
650650
display: none !important;
651651
}
652+
653+
.page-actions {
654+
display: none;
655+
gap: 0;
656+
margin: 12px 0 2rem 0;
657+
padding-bottom: 6px;
658+
border-bottom: 1px solid var(--ibexa-snow);
659+
}
660+
661+
.md-typeset .page-action-btn {
662+
display: inline-flex;
663+
align-items: center;
664+
gap: 6px;
665+
padding: 4px 12px;
666+
background: transparent;
667+
border: none;
668+
text-decoration: none;
669+
color: var(--ibexa-dusk-black);
670+
font-size: 13px;
671+
font-weight: 500;
672+
cursor: pointer;
673+
transition: color 0.15s ease;
674+
white-space: nowrap;
675+
position: relative;
676+
}
677+
678+
.page-action-btn+.page-action-btn::before {
679+
content: '';
680+
position: absolute;
681+
left: 0;
682+
top: 50%;
683+
transform: translateY(-50%);
684+
height: 16px;
685+
width: 1px;
686+
background: var(--ibexa-snow);
687+
}
688+
689+
.page-action-btn svg {
690+
width: 14px;
691+
height: 14px;
692+
fill: currentColor;
693+
flex-shrink: 0;
694+
}
695+
696+
.page-action-btn.external::after,
697+
.page-action-btn[rel="nofollow"]::after {
698+
display: none;
699+
}
700+
701+
@media (max-width: 768px) {
702+
.page-actions {
703+
gap: 0;
704+
}
705+
}
706+
707+
.page-actions--visible {
708+
display: flex;
709+
}
710+
711+
.page-action-btn.page-action-btn--success {
712+
background: #d4edda;
713+
border-color: #c3e6cb;
714+
color: #155724;
715+
}
716+
717+
.page-action-btn.page-action-btn--info {
718+
background: color-mix(in srgb, var(--turquoise-pearl) 25%, white);
719+
border-color: color-mix(in srgb, var(--turquoise-pearl) 40%, white);
720+
color: var(--sherpa-blue);
721+
}

docs/css/navigation.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@
393393
margin-left: 0;
394394
margin-top: 0;
395395
margin-bottom: 0;
396-
padding-bottom: 2rem;
396+
padding-bottom: 0.5rem;
397397
}
398398

399399
ul.breadcrumbs li.breadcrumb-item {

docs/css/release-notes.css

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<a href="release_notes/ibexa_dxp_v5.0/">Release notes</a>
8383
</div>
8484
<div class="notification__image">
85-
<img src="images/notification-latest-release.svg" alt="The latest release" />
85+
<img src="images/notification-latest-release.svg" alt="" />
8686
</div>
8787
</div>
8888
</div>
@@ -97,7 +97,7 @@
9797
<a href="ibexa_products/editions/#lts-updates">Discover other LTS Updates</a>
9898
</div>
9999
<div class="notification__image">
100-
<img src="images/notification-lts-update.svg" alt="LTS Update" />
100+
<img src="images/notification-lts-update.svg" alt="" />
101101
</div>
102102
</div>
103103
</div>

docs/personalization/api_reference/api_reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: Explore Personalization API sets that let you manage item data, track events, combine tracking data with users and render recommendations.
33
page_type: landing_page
4+
exclude_from_llmstxt: true
45
---
56

67
# Personalization API

docs/personalization/api_reference/content_api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Personalization server can use external information about the items. Use HTTP methods to create, update or get items from the data store.
3+
exclude_from_llmstxt: true
34
---
45

56
# Content API

docs/personalization/api_reference/recommendation_api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: Use HTTP GET request method to render recommendations.
33
month_change: false
4+
exclude_from_llmstxt: true
45
---
56

67
# Recommendation API

docs/personalization/api_reference/tracking_api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Allows to track items based on an ID. It covers many content types with the same ID configured for tracking.
3+
exclude_from_llmstxt: true
34
---
45

56
# Tracking API

0 commit comments

Comments
 (0)