Skip to content

fix links to non-existant pages #6133

fix links to non-existant pages

fix links to non-existant pages #6133

Workflow file for this run

name: "Lost Pixel"
on: [push]
jobs:
build:
runs-on: ubuntu-latest
name: Lost Pixel
steps:
- uses: actions/checkout@v4
- name: Get all changed markdown files
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: content/**/*.{md,mdx}
- name: Output relevant files
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.any_changed }}
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
if [ ${CHANGED_FILES} == 'true' ]; then
declare -a linksArray
linksArray=(`echo ${ALL_CHANGED_FILES}`)
for link in "${linksArray[@]}"; do
echo "$link"
done
else
echo "No files changed."
fi
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install deps
run: npm install
- name: Build docs
run: npm run clean && npm run build
- name: Start docs
run: npm run serve &
- name: Generate sitemap
run: npx lost-pixel page-sitemap-gen http://172.17.0.1:3000/sitemap.xml "./lost-pixel-pages.json"
- name: Edit page names
run: sed -i -e 's/_/\//g' -e 's|prisma\.io||g' -re 's/(name.+)(\/)(\")/\1-\3/g' lost-pixel-pages.json
- name: Lost Pixel
uses: lost-pixel/[email protected]
env:
LOST_PIXEL_API_KEY: ${{ secrets.LOST_PIXEL_API_KEY }}