Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions FollowingFileStream.APIdoc/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/**/bin/
/**/obj/
_site
_site_pdf
64 changes: 63 additions & 1 deletion FollowingFileStream.APIdoc/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@
}
}
],
"build": {
"pdf": {
"noStdin": true,
"content": [
{
"files": [
"api/**.yml",
"api/index.md"
],
"exclude": [
"**/toc.yml",
"**/toc.md"
]
},
{
Expand All @@ -35,13 +40,70 @@
"articles/**/toc.yml",
"toc.yml",
"*.md"
],
"exclude": [
"**/bin/**",
"**/obj/**",
"_site_pdf/**",
"**/toc.yml",
"**/toc.md"
]
},
{
"files": "pdf/toc.yml"
}
],
"resource": [
{
"files": [
"images/**"
],
"exclude": [
"**/bin/**",
"**/obj/**",
"_site_pdf/**"
]
}
],
"overwrite": [
{
"files": [
"apidoc/**.md"
],
"exclude": [
"**/bin/**",
"**/obj/**",
"_site_pdf/**"
]
}
],
"dest": "_site_pdf",
"xrefService": [
"https://xref.docs.microsoft.com/query?uid={uid}"
]
},
"build": {
"content": [
{
"files": [
"api/**.yml",
"api/index.md"
]
},
{
"files": [
"articles/**.md",
"articles/**/toc.yml",
"toc.yml",
"*.md"
]
}
],
"resource": [
{
"files": [
"images/**",
"_site_pdf/*.pdf"
]
}
],
Expand Down
4 changes: 4 additions & 0 deletions FollowingFileStream.APIdoc/pdf/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: Articles
href: ../articles/toc.yml
- name: Api Documentation
href: ../api/toc.yml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Any read operation will not report a zero result while the file is locked for wr

It is usually compared to the "tail -f" approach.

[API Documentation](https://followingfilestream.azurewebsites.net/api-doc)
[API Documentation](https://followingfilestream.azurewebsites.net/api-doc) [[PDF](https://followingfilestream.azurewebsites.net/api-doc/_site_pdf/FollowingFileStream.APIdoc_pdf.pdf)]

[Source Browser](https://followingfilestream.azurewebsites.net/#FollowingFileStream/)

Expand Down
13 changes: 13 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ jobs:
pool:
vmImage: 'windows-latest'
steps:
- task: ChocolateyCommand@0
inputs:
command: 'install'
installPackageId: 'wkhtmltopdf'

# First restore to resolve external dependencies
- task: DotNetCoreCLI@2
displayName: Restore
Expand All @@ -175,7 +180,15 @@ jobs:
replaceExistingArchive: true

- task: PublishBuildArtifacts@1
displayName: Publish Website
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/apidoc_website.zip'
ArtifactName: 'apidoc_website'
publishLocation: 'Container'

- task: PublishBuildArtifacts@1
displayName: Publish PDF
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/FollowingFileStream.APIdoc/_site_pdf/FollowingFileStream.APIdoc_pdf.pdf'
ArtifactName: 'apidoc_pdf'
publishLocation: 'Container'