https://github.com/sudo-bot/action-doctum
A Doctum action
https://github.com/sudo-bot/action-doctum
action-doctum doctum github-actions
Last synced: 21 days ago
JSON representation
A Doctum action
- Host: GitHub
- URL: https://github.com/sudo-bot/action-doctum
- Owner: sudo-bot
- License: mpl-2.0
- Created: 2020-12-11T10:48:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-09T16:40:29.000Z (9 months ago)
- Last Synced: 2025-04-11T02:42:26.744Z (21 days ago)
- Topics: action-doctum, doctum, github-actions
- Language: Shell
- Homepage:
- Size: 185 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A GitHub action to run Doctum
|Series|Badges|
|------|------|
|5.x|[](https://github.com/sudo-bot/action-doctum/actions/workflows/build.yml) [](https://github.com/sudo-bot/action-doctum/actions/workflows/doctum.yml)|
|dev|[](https://github.com/sudo-bot/action-doctum/actions/workflows/build.yml) [](https://github.com/sudo-bot/action-doctum/actions/workflows/doctum.yml)|
|latest|[](https://github.com/sudo-bot/action-doctum/actions/workflows/build.yml) [](https://github.com/sudo-bot/action-doctum/actions/workflows/doctum.yml)|Go to [Doctum](https://github.com/code-lts/doctum#readme) at GitHub
You can find the image on [Docker Hub](https://hub.docker.com/r/botsudo/action-doctum)
[](https://hub.docker.com/r/botsudo/action-doctum)
## Example usage for 5.x series
```yml
- uses: actions/checkout@v4
- name: build doctum docs
uses: sudo-bot/action-doctum@v5
with:
config-file: doctum.php
# parse, render or update
method: "update"
# (optional) defaults to '--output-format=github --no-ansi --no-progress -v'
cli-args: "--output-format=github --no-ansi --no-progress -v"
```## Example usage for latest series
```yml
- uses: actions/checkout@v4
- name: build doctum docs
uses: sudo-bot/action-doctum@latest
with:
config-file: doctum.php
# parse, render or update
method: "update"
# (optional) defaults to '--output-format=github --no-ansi --no-progress -v'
cli-args: "--output-format=github --no-ansi --no-progress -v"
```## Example usage for dev series
```yml
- uses: actions/checkout@v4
- name: build doctum docs
uses: sudo-bot/action-doctum@dev
with:
config-file: doctum.php
# parse, render or update
method: "update"
# (optional) defaults to '--output-format=github --no-ansi --no-progress -v'
cli-args: "--output-format=github --no-ansi --no-progress -v"
```## Example for a zero-config setup to parse/lint phpdocs
```yml
name: Lint phpdocson: [push]
jobs:
lint-phpdoc:
name: lint-phpdoc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create a config file
# Scan all the src folder
run: echo " doctum-config.php
- name: lint doctum docs
uses: sudo-bot/action-doctum@v5
with:
config-file: doctum-config.php
method: "parse"
# (optional) defaults to '--output-format=github --no-ansi --no-progress -v'
cli-args: "--output-format=github --no-ansi --no-progress -v"
```