dotnet / dotnet/docfx

PDF Generation

Open
#10,267 3 comments 0 reactions 0 assignees View on GitHub
template
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 9m
Merged PRs (30d)
11

Description

**Describe the bug**
PDF generate isn't located where I believe it'd be after following the documentation.

I might have misunderstood something, so I hope somebody could help.

**To Reproduce**
```
Here's my docfx.json
{
"metadata": [
{
"src": [
{
"files": ["**/*.csproj"],
"exclude": ["**/bin/**", "**/obj/**"],
"src": "../"
}
],
"dest": "api"
}
],
"pdf": {
"content": [
{
"files": [
"articles/**.yml"
],
"exclude": [
"api/**",
"**/bin/**",
"**/obj/**",
"_site_pdf/**",
"**/toc.yml",
"**/toc.md"
]
}
],
"resource": [
{
"files": [ "articles/images/**"]
}
],
"overwrite": "specs/*.md",
"dest": "_site-pdf"
},
"build": {
"content": [
{
"files": [
"index.md",
"articles/**/*.md",
"articles/**/*.yml"
],
"exclude": [
"_site/**",
"**.*.pdf"
]
},
{
"files": [
"api/**/*.md",
"api/**/*.yml"
]
}
],
"resource": [
{
"files": [
"articles/images/**"
]
}
],
"output": "_site",
"template": [
"default",
"modern"
],
"globalMetadata": {
"_appName": "BKS.Gmud",
"_appTitle": "Gmud",
"_enableSearch": true,
"homepage": "index.md",
"pdf": true,
"pdfTocPage": true,
"pdfFileName": "Manual-GMUD.pdf"
},
"postProcessors": ["ExtractSearchIndex"]
}
}
```

**Expected behavior**
After running ```docfx pdf````, I though a folder ```_site-pdf```` would have been generated.

**Screenshots**

![Image](https://github.com/user-attachments/assets/a26d2eea-43b3-43b5-b868-e5f49c2b6e22)

It was generated under _site/articles/
![Image](https://github.com/user-attachments/assets/2f315b71-1746-4ffc-9710-1804e363c252)

**Context (please complete the following information):**
- Docfx version: 2.77.0+bd00e2b93951e9e7fa6e5abd990d2cd77d7a83bd

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.