How to Set up Netlify Deploys for Docfx using GitHub Actions
Sean Killeen

Sean Killeen @seankilleen

About: A mind at work. Microsoft MVP && Passionate .NET dev lead && VP, Innovation and Products at SCT Software. Opinions here are mine. Trying to be all the human I can be with the time I have.

Location:
Arlington, VA
Joined:
Dec 27, 2017

How to Set up Netlify Deploys for Docfx using GitHub Actions

Publish Date: Feb 27 '24
0 0

We currently use docfx to publish the NUnit docs, because it has a lovely capability of generating docs for our API reference in addition to all our articles.

However, one thing I often yearn for – that I get on this Jekyll blog and some others I work with – is the ability to have a live preview within a pull request of what the generated site will look like.

Because the source code for the API docs is in the nunit repository, and the docs live in the docs repo, it’ll be a little extra complicated.

Nevertheless: Let’s make it happen.

The Conceptual Approach

  • We pull the NUnit DLL and create the docfx site
  • We zip up the site
  • We create a custom GitHub environment to be associated with our deployment environment
  • We manually update the statuses of that deployment
  • We deploy to Netlify
  • We post the link as a comment in the PR

The Build Steps

Read more at SeanKilleen.com!

Comments 0 total

    Add comment