2023-01-02 20:51:48 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-05-17 17:16:50 +08:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
|
2021-12-17 06:30:43 +08:00
|
|
|
name: Markdown links
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-12-06 18:05:20 +08:00
|
|
|
- master
|
|
|
|
- '*/ci'
|
2022-09-18 03:58:58 +08:00
|
|
|
paths:
|
2023-12-06 18:05:20 +08:00
|
|
|
- '.github/workflows/linkcheck.yml'
|
|
|
|
- '**.md'
|
2021-12-17 06:30:43 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2023-12-06 18:05:20 +08:00
|
|
|
- master
|
2022-09-18 03:58:58 +08:00
|
|
|
paths:
|
2023-12-06 18:05:20 +08:00
|
|
|
- '.github/workflows/linkcheck.yml'
|
|
|
|
- '**.md'
|
2021-12-17 06:30:43 +08:00
|
|
|
|
2022-09-18 05:45:32 +08:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-11-16 22:55:33 +08:00
|
|
|
permissions: {}
|
|
|
|
|
2021-12-17 06:30:43 +08:00
|
|
|
jobs:
|
2022-05-18 06:03:16 +08:00
|
|
|
# Docs: https://github.com/marketplace/actions/markdown-link-check
|
2021-12-17 06:30:43 +08:00
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-12-06 18:05:20 +08:00
|
|
|
- uses: actions/checkout@v4
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
name: checkout
|
|
|
|
|
|
|
|
- name: trim the cmdline docs markdown files
|
|
|
|
run: find docs/cmdline-opts -name "*.md" ! -name "_*" ! -name MANPAGE.md | xargs -n1 ./.github/scripts/cleancmd.pl
|
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
- uses: gaurav-nelson/github-action-markdown-link-check@v1
|
|
|
|
with:
|
|
|
|
use-quiet-mode: 'yes'
|