This project provides a docker image that builds your project documentations.
- Install docker
- Just copy the script ppaperwork.sh in your project.
Go inside your project directory
wget https://raw.githubusercontent.com/ProjectPaperwork/ppaperwork/main/ppaperwork.sh
- Then run it
source ppaperwork.sh
By default all the documentation is generated in 'documentation' directory
To use ppaperwork to auto-generate your documentation into your pipeline, use this snippet
# .gitlab-ci.yml
stages:
- documentation
documentation:
stage: documentation
image: ghcr.io/projectpaperwork/ppaperwork:latest
script:
- work.sh
artifacts:
name: "documentation"
paths:
- documentation/
To use ppaperwork to auto-generate your documentation into a github action, use this snippet
# .github/workflows/documentation.yml
name: Produce the documentation of the repository
on: [push]
jobs:
SelfDocumentation:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- run: chmod +x ./ppaperwork.sh && ./ppaperwork.sh -r
- uses: actions/upload-artifact@v3
if: always()
with:
name: documentation
path: documentation
- run: echo "🎉 finished !"