Skip to content

Commit fe52b18

Browse files
committed
Merge branch '2.1.x' into 2.2.x
2 parents 1fe4146 + fdb179f commit fe52b18

File tree

6 files changed

+51
-13
lines changed

6 files changed

+51
-13
lines changed

.github/workflows/docs-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ jobs:
3232

3333
- name: Find latest release
3434
id: latest_release
35-
uses: pozetroninc/github-action-get-latest-release@v0.6.0
35+
uses: pozetroninc/github-action-get-latest-release@v0.8.0
3636
with:
3737
repository: ${{ github.repository }}
38-
excludes: draft
38+
excludes: draft,prerelease
3939

4040
- name: Normalize current versions
4141
id: current
42-
uses: actions/github-script@v6
42+
uses: actions/github-script@v7
4343
with:
4444
script: return context.ref.match(/([0-9]+\.[0-9]+)\.(x|[0-9]+)/i)[1];
4545
result-encoding: string
4646

4747
- name: Normalize latest versions
4848
id: latest
49-
uses: actions/github-script@v6
49+
uses: actions/github-script@v7
5050
with:
5151
script: return "${{steps.latest_release.outputs.release}}".match(/([0-9]+\.[0-9]+)\.[0-9]+/i)[1];
5252
result-encoding: string

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,11 @@ test: phpunit
4040

4141
.PHONY: dev
4242
dev: static test ## run dev tools
43+
44+
.PHONY: docs
45+
docs: mkdocs ## run mkdocs
46+
cd docs && python3 -m mkdocs serve
47+
48+
.PHONY: mkdocs
49+
mkdocs: ## run mkdocs
50+
cd docs && pip3 install -r requirements.txt

docs/mkdocs.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json
22

3-
site_name: Event Sourcing Bundle
3+
site_name: Event Sourcing Symfony Bundle
4+
site_description: A lightweight but also all-inclusive event sourcing bundle with a focus on developer experience and based on doctrine dbal.
5+
site_author: patchlevel
46
site_url: https://patchlevel.github.io/event-sourcing-bundle-docs/
57
repo_url: https://github.com/patchlevel/event-sourcing-bundle
68
repo_name: patchlevel/event-sourcing-bundle
@@ -9,7 +11,7 @@ docs_dir: pages
911

1012
extra:
1113
meta:
12-
title: Event Sourcing Bundle
14+
title: Event Sourcing Symfony Bundle
1315
description: A lightweight but also all-inclusive event sourcing bundle with a focus on developer experience and based on doctrine dbal.
1416
image: img/patchlevel-banner.png
1517
social:
@@ -21,6 +23,9 @@ extra:
2123
link: https://twitter.com/patchlevelhq
2224
version:
2325
provider: mike
26+
alias: true
27+
analytics:
28+
provider: custom
2429

2530
extra_css:
2631
- stylesheets/extra.css
@@ -49,6 +54,10 @@ theme:
4954
icon: material/brightness-4
5055
name: Switch to light mode
5156

57+
plugins:
58+
- mike:
59+
canonical_version: latest
60+
5261
markdown_extensions:
5362
- meta
5463
- pymdownx.highlight:

docs/overrides/main.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22

33
{% block extrahead %}
44
<meta name="description" content="{{ config.extra.meta.description }}">
5+
<meta name="keywords" content="event sourcing, php, ddd, symfony" />
56
<meta property="og:type" content="website">
67
<meta property="og:url" content="{{ config.site_url }}">
78
<meta property="og:title" content="{{ config.extra.meta.title }}">
89
<meta property="og:description" content="{{ config.extra.meta.description }}">
910
<meta property="og:image" content="{{ config.site_url }}{{ config.extra.meta.image }}">
11+
{% endblock %}
12+
13+
{% block outdated %}
14+
You're not viewing the latest version.
15+
<a href="{{ '../' ~ base_url }}">
16+
<strong>Click here to go to latest.</strong>
17+
</a>
1018
{% endblock %}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script>
2+
var _paq = window._paq = window._paq || [];
3+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
4+
_paq.push(['trackPageView']);
5+
_paq.push(['enableLinkTracking']);
6+
(function() {
7+
var u="//matomo.patchlevel.de/";
8+
_paq.push(['setTrackerUrl', u+'matomo.php']);
9+
_paq.push(['setSiteId', '2']);
10+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
11+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
12+
})();
13+
</script>

docs/requirements.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
mkdocs==1.3.0
2-
mike==1.1.2
3-
markdown==3.3.7
4-
mkdocs-material==8.2.3
1+
mkdocs==1.5.3
2+
mike==2.1.1
3+
markdown==3.6
4+
mkdocs-material==9.5.18
55

66
# Markdown extensions
7-
Pygments==2.12.0
8-
pymdown-extensions==9.4
7+
Pygments==2.18.0
8+
pymdown-extensions==10.8.1
99

1010
# MkDocs plugins
11-
mkdocs-material-extensions==1.0.3
11+
mkdocs-material-extensions==1.3.1

0 commit comments

Comments
 (0)