🌱 Visualizing a codebase
Visualizing a codebase using a rendered diagram.
I used this for a while on several personal projects I like having it. I however did not like having an extra commit on every commit to pull down.
Steps it took me to get GitHub Action working
- Make file
.github/workflows/create-diagram.yml
- Make
images
directory at root of project (to store generated image). You may need to add a temp file in the directory to get the folder into git. - Add the following to
create-diagram.yml
name: Create Diagram
on:
push: {}
jobs:
make:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: githubocto/repo-visualizer@0.5.0
with:
output_file: 'images/diagram.svg'
excluded_paths: 'dist,node_modules'
- Add the following to
README.md
![_Visualization of the codebase_](./images/diagram.svg)