Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lenni009/jsdoc2wiki-action
Renders JSDoc comments into markdown which is pushed to the repo's wiki
https://github.com/lenni009/jsdoc2wiki-action
github-actions jsdoc wiki
Last synced: about 2 months ago
JSON representation
Renders JSDoc comments into markdown which is pushed to the repo's wiki
- Host: GitHub
- URL: https://github.com/lenni009/jsdoc2wiki-action
- Owner: Lenni009
- License: mit
- Created: 2023-03-25T14:48:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-24T10:57:51.000Z (10 months ago)
- Last Synced: 2024-10-15T01:28:02.492Z (3 months ago)
- Topics: github-actions, jsdoc, wiki
- Homepage:
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Summary
This repository consists of two actions, one for linting JSDoc comments, and one for actually building the documentation.- `Lenni009/jsdoc2wiki-action/lint-doc@main` - lints the comments. Should be run on pull requests.
- `Lenni009/jsdoc2wiki-action/create-doc@main` - creates the docs. Should be run on push.## create-doc
This action is responsible for creating the markdown files for the documentation.A seperate markdown file is created for each JS file which contains JSDoc comments.
### Prerequisites
You need to have the wiki enabled in your repo and a wiki homepage already created.You can enable the wiki functionality in the repo's settings.
### Usage
```yml
on:
push:
branches: ['main']concurrency:
group: "doc"
cancel-in-progress: truejobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3- name: Create Doc
uses: Lenni009/jsdoc2wiki-action/create-doc@main
```## lint-doc
This action is intended to be run on every pull request to your main branch. It will lint the JSDoc comments in your code and return any errors in a comment on the PR. Errors and warnings also cause the action to fail, so the PR can be blocked from being merged.### Usage
```yml
on:
pull_request:
types: [opened, synchronize]jobs:
test:
runs-on: ubuntu-latestpermissions:
pull-requests: write
contents: writesteps:
- name: Checkout Repo
uses: actions/checkout@v3- name: Lint JSDoc Comments
uses: Lenni009/jsdoc2wiki-action/lint-doc@main
```