TShock icon indicating copy to clipboard operation
TShock copied to clipboard

Automatically generate a browsable documentation center

Open hakusaro opened this issue 6 years ago • 8 comments

Like other civilized projects, every build should tigger automatic building and production of API documentation for TShock & TSAPI.

  1. Identifying which documentation system we should go with.
  2. Creating a script to build said documentation. (And god let it be better than a python script as far as "can run instantly on every platform" goes).

My ideal system is a static file generator that is super easy to run that produces self contained HTML. That way, we can host it on GitHub pages and rig the build system to automatically deploy docs for each branch, just like we do with Travis builds.

hakusaro avatar Dec 11 '17 23:12 hakusaro

I found something the other day that would have been good for this, but now I've forgotten what it was. Watch this space

QuiCM avatar Dec 14 '17 07:12 QuiCM

Here it is. http://dotnet.github.io/docfx/

QuiCM avatar Dec 14 '17 07:12 QuiCM

Built by MSFT, so lgtm.

hakusaro avatar Dec 14 '17 07:12 hakusaro

I've used Doxygen for C# in the past. I assume DocFX lets us get the same functionality but Doxygen lets you write custom handlers (I've used this for documenting API routes and permissions in a ASP project derived from attributes on the method instead of slapping it in the xmldoc).

DocFx looks more flexible. LGTM.

Olink avatar Dec 21 '17 00:12 Olink

Had a brief look at DocFx, and it's LGTM.

AxisKriel avatar Dec 27 '17 12:12 AxisKriel

Marking this as WIP as we will be going with DocFX at some point in the future

QuiCM avatar Dec 27 '17 12:12 QuiCM

Tried to get docfx working on Mac with Mono. I was able to generate the project but can't actually serve the website because it seems to want to be able to find msbuild.dll, which apparently doesn't ship with homebrew's mono.

I don't think I'm going to fight mono again, so I'll let someone else deal with this one.

hakusaro avatar Dec 27 '17 19:12 hakusaro

DocFX still seems like a good option. Would help resolve things like #1572. Marked as pending because no one is working on this afaik

QuiCM avatar Oct 31 '18 22:10 QuiCM