-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"View Source" is not working/showing up in API docs #8112
Comments
@tig It seems
You may also like Also, with |
Thanks. I tried your suggestions and it's still not working. Here's my latest {
"metadata": [
{
"src": [
{
"files": [
"Terminal.Gui.dll"
],
"exclude": [
"**/obj/**",
"_site/**"
],
"src": "../Terminal.Gui/bin/Release/net6.0"
}
],
"dest": "api/Terminal.Gui",
"shouldSkipMarkup": true,
"properties": {
"TargetFramework": "net6.0"
}
},
{
"src": [
{
"files": [
"UICatalog.dll"
],
"exclude": [
"**/obj/**",
"_site/**"
],
"src": "../UICatalog/bin/Release/net6.0"
}
],
"dest": "api/UICatalog",
"shouldSkipMarkup": false,
"properties": {
"TargetFramework": "net6.0"
}
}
],
"build": {
"template": [
"default",
"./templates/default"
],
"content": [
{
"files": [
"api/**.yml",
"api/index.md"
]
},
{
"files": [
"articles/**.md",
"articles/**/toc.yml",
"toc.yml",
"*.md"
],
"exclude": [
"obj/**",
"_site/**"
]
}
],
"resource": [
{
"files": [
"images/**"
],
"exclude": [
"obj/**",
"_site/**"
]
}
],
"overwrite": [
{
"files": [
"apidoc/**.md"
],
"exclude": [
"obj/**",
"_site/**"
]
}
],
"dest": "../docs",
"globalMetadata": {
"_enableSearch": "true",
"_appLogoPath": "images/logo48.png",
"_disableContribution": false,
"_gitContribute": {
"repo": "https://github.com/gui-cs/Terminal.Gui",
"branch": "develop",
"apiSpecFolder": "apidoc"
},
"_gitUrlPattern": "github"
},
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"postProcessors": ["ExtractSearchIndex"],
"noLangKeyword": false,
"keepFileLink": false
}
} Still no View Source or Contribute links: |
@tig You are possibly out of luck. It seems it does not work with metadata compiled from DLL. On my PC, where I have not experienced the reported Roslyn issue, changing to project file works: |
Oh well. Thanks for the help!
…-cek
Sent via mobile. Expect brevity, typos, and dangerous driving.
________________________________
From: Paul Selormey ***@***.***>
Sent: Thursday, July 28, 2022 10:27:59 AM
To: dotnet/docfx ***@***.***>
Cc: Charlie Kindel ***@***.***) ***@***.***>; Mention ***@***.***>
Subject: Re: [dotnet/docfx] "View Source" is not working/showing up in API docs (Issue #8112)
@tig<https://github.com/tig> You are possibly out of luck. It seems it does not work with metadata compiled from DLL. On my PC, where I have not experienced the reported Roslyn issue, changing to project file works:
[Terminal Gui]<https://user-images.githubusercontent.com/809351/181589426-be73b402-4b51-41ce-bb86-ce5420f6fb89.png>
—
Reply to this email directly, view it on GitHub<#8112 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEO6CU5AOXA6SY3AVN3IU3VWKYI7ANCNFSM543JGZ3Q>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
It seems this issue can be closed. For DLL-file-based metadata generation. |
Operating System:
Windows
DocFX Version Used: 2.59.3.0
Template used: (
default
orstatictoc
or contain custom template)slight tweak to
default
Steps to Reproduce:
See https://github.com/gui-cs/Terminal.Gui
Expected Behavior:
Expect to see "View Source" somewhere in the API docs.
Actual Behavior:
I'm sure I'm doing something wrong, but can't see what it is. I've read the docfx documentation, and all it says is that I need to have my branch specified in the environment variable. Even with that none of the generated HTML has "Viewsource" or "View Source" anywhere in it...
The text was updated successfully, but these errors were encountered: