Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
push:
branches:
- main
# semantic-release commits the new version to package.json with the workflow
# token, which starts no push workflow. Redeploy after every successful Release
# run on main so the stamped version below is the published one.
workflow_run:
workflows: ['Release']
types: [completed]
branches: [main]
workflow_dispatch:

permissions:
Expand All @@ -15,6 +22,10 @@ concurrency:

jobs:
deploy:
# Deploy after a successful Release run triggered by a push to main only.
if: >-
github.event_name != 'workflow_run' ||
(github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push')
permissions:
contents: read
pages: write
Expand All @@ -28,6 +39,13 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Stamp the package version
# The site source never hardcodes the version: JSON-LD and llms.txt carry
# __PACKAGE_VERSION__, replaced here with the version from package.json.
run: |
version="$(node -p "require('./package.json').version")"
grep -rl --include='*.html' --include='*.txt' '__PACKAGE_VERSION__' docs/site | xargs -r sed -i "s/__PACKAGE_VERSION__/${version}/g"
if grep -rq '__PACKAGE_VERSION__' docs/site; then echo 'Unreplaced version token in docs/site' >&2; exit 1; fi
- name: Configure GitHub Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- name: Upload site artifact
Expand Down
1 change: 1 addition & 0 deletions docs/site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"name": "Magic Mark",
"alternateName": ["Magicmark", "strapi-plugin-magic-mark"],
"description": "Free Strapi 5 plugin that saves Content Manager list views (filters, sort order, page size, search and locale) as bookmarks, shares them with roles and admin users, pins them to the homepage and adds advanced filters.",
"softwareVersion": "__PACKAGE_VERSION__",
"applicationCategory": "DeveloperApplication",
"applicationSubCategory": "Strapi plugin",
"operatingSystem": "Node.js 22+ / Strapi 5",
Expand Down
2 changes: 1 addition & 1 deletion docs/site/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Magic Mark (npm: strapi-plugin-magic-mark, plugin id: magic-mark, repository: Magicmark) is a free, MIT-licensed Strapi 5 plugin that saves Content Manager list views (content type, filters, sort order, page size, search text and locale) as bookmarks. Bookmarks open with one click, can be shared with roles, single admin users or all admins, pinned per user to the Strapi homepage, and combined with advanced filters.

The current version is on npm (link below). No license key, no limits, no telemetry and no outbound requests.
Current version: __PACKAGE_VERSION__ (npm). No license key, no limits, no telemetry and no outbound requests.

What it does:

Expand Down