Build docs in netlify with docfx

This commit is contained in:
Gary Tierney
2019-08-04 03:15:46 +01:00
parent 0b61e559fc
commit 43acb3798d
13 changed files with 129 additions and 22 deletions
+15
View File
@@ -0,0 +1,15 @@
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "doc/_site"
# Default build command.
command = '''
./gradlew generateApiDocs && \
docker build -t docfx -f docs/Dockerfile &&
docker run -v `pwd`:/srv/project docfx:latest -- docs/
'''