Github Actions
You can integrate mdsplit
with GitHub actions to regenerate the documentation whenever you change your README.md
file.
Use this workflow to get started:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
Replace the settings with your repository information.
Most steps in this workflow are optional:
- The step
technote-space/toc-generator@v2
creates a table of contents for your README.md file - The second step downloads and builds the master version of mdsplit. This is the version we use in this repository, but you probably want to use a more stable version in your own repository. To do that, comment this step and use the third and forth steps instead.
- The third and fourth steps (commented out) download the latest release version of mdsplit. That's probably what you want for your repository. Uncomment these steps to do that.
- The next steps are pushing the docs to your master branch. Make any adjustments you might need.
- The last steps are taking the docs from your master branch and publishing them to your gh-pages branch.