Open iuliust opened 3 years ago
I wrote the API Documenter tutorial. 😇 Sorry it is vague about how to set up DocFX. My own experience with DocFX was using the docs.microsoft.com
internal pipeline, which is rather different from the open source DocFX, so I wasn't sure exactly how to do it. If you are able to figure out some step-by-step instructions, we should definitely improve the tutorial.
I know that @rbuckton generated these docs using API Documenter and DocFX. You might look at how that project is set up. His scripts are in this repo.
Hi, thanks for the (very) quick response, I'd had answered if only I had noticed your message earlier.
Thank you so much for you advice. I just spend ten minutes trying to figure out what @rbuckton is doing in his scripts directory at root, but it looks like it's so far from a simple sample repository that I don't think I could in any way integrate the docfx pipeline in my company's project (although it's probably my best shot at this since I've tried to use docFx). It really is a shame, because I think it's a great tool, just poorly documented.
I've looked for help on the web for hours upon hours, and couldn't find a single tutorial, a simple sample project, about how to integrate api-documenter with docfx. It may look like api-documenter is made to work only with docfx v3, but v3 has no documentation at all, and it's been that way for multiple years (how ironic!). Docfx's v2 doc is completely outdated, and it doesn't even mention api-documenter.
As you may have guessed it, I'm getting a bit frustrated...
DocFX is just one option. You could also use Docusaurus (like this site) or Jekyll (like API Extractor's own docs) or you can use the @rushstack/api-extractor-model engine to generate your own templates.
In my experience an API reference usually needs to integrate with a project website, which will have its own theme, and navigation, and search. That integration part is often more work than generating the documentation pages themselves.
I'm not sure if something has changed in DocFX v3. The version I've been using is 2.52.0.0. For esfx
I had to patch api-documenter
to work around some issues I was having at the time, but I haven't had time to try out newer versions of either.
Summary
Generating markdown docs works just fine, but I'm struggling to make sense of how I'm supposed to make api-documenter work nice with DocFX. Is it supposed to only work with DocFX v3+ ? I've followed the tutorial but there's zero documentation about what I'm supposed to do. Same thing on DocFX's website : there's something about how to make DocFX work nice with Typedoc, but nothing about microsoft's own api-documenter...
Details
Standard questions
Do you know a tutorial for how to make api-documenter work with docFx ? I haven't found anything relevant.
@microsoft/api-documenter
7.12.4node -v
)?