aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

What format should we use for the ASP.NET 5 documentation?

Open danroth27 opened this issue 11 years ago • 79 comments

We'd like to have our docs for ASP.NET 5 be open-source on GitHub and easy to contribute to. We need to pick a documentation format and build system that is open-source friendly and easy to use, but can also scale to our documentation needs.

What documentation format would folks like to see us use? Markdown is nice and simple, but lacks many features of more mature documentation systems. Should we use ReStructured Text? Something else?

For a doc build system and hosting We are looking at readthedocs.org and Sphinx. For reference docs we are looking at nudoq.org. Are there other doc systems we should consider?

Thanks!

danroth27 avatar Jan 23 '15 23:01 danroth27

http://shfb.codeplex.com

Or just make something brand new.

issafram avatar Jan 23 '15 23:01 issafram

A good pre-processor generating GH Markdown would be excellent.

devlead avatar Jan 23 '15 23:01 devlead

+1 for Markdown (or GitHub Flavored Markdown). It may lack some features but it is pretty well known and very easy to learn and use. I guess it may depend on the final decision on where it will be hosted, as you mentioned a few options.

clintkolodziej avatar Jan 23 '15 23:01 clintkolodziej

Hi Daniel, Thank you for your contribution. As a junior dev, I find that it is easy to organize document as titles in the sidebar, similar to this http://rustbyexample.com/ (IMHO)

thanhlai avatar Jan 23 '15 23:01 thanhlai

-1 on the making something brand new. +1 to work on something existing and enhance if possible.

jalcine avatar Jan 23 '15 23:01 jalcine

@danroth27 Can you share a bit more details about your documentation needs and what features of a mature documentation system you need?

akoeplinger avatar Jan 23 '15 23:01 akoeplinger

I think saying "use Markdown" is too simplistic.

Markdown is a DSL for HTML. That's all. Would you really say "Docs is a solved problem, let's use HTML!"

We need an actual Documentation system like Sphinx.

  • Markdown can't generate a ToC.
  • Markdown can't link between topics (you have to do the links manually)
  • Markdown can't do things like multilanguage support or multi-version support.

I support @ericholscher's Read The Docs, but more specifically Sphinx and reStructuredText.

shanselman avatar Jan 23 '15 23:01 shanselman

Or use DOxygen and vNext will never be released ;)

issafram avatar Jan 23 '15 23:01 issafram

What about something similar to Roslyn or AngularJS? http://source.roslyn.codeplex.com/ https://docs.angularjs.org/api

renelopez avatar Jan 23 '15 23:01 renelopez

Markdown works very well for most other projects on GitHub. +1 for Markdown.

Fogh avatar Jan 24 '15 00:01 Fogh

@shanselman, relative links?

issafram avatar Jan 24 '15 00:01 issafram

I think using Sphinx would work. @issafram Examples here: http://sphinx-doc.org/ https://docs.python.org/3/tutorial/index.html

tmhenson avatar Jan 24 '15 00:01 tmhenson

@akoeplinger We'd like something that we can easily generate table of contents from and easily link across pages. We'd also like something that can generate a variety of doc formats include HTML, PDF and ePub. The docs should also be readable on mobile devices.

danroth27 avatar Jan 24 '15 00:01 danroth27

@issafram Markdown is great when your docs are a hundred pages, most likely less. But thousands of pages and interlocking tables of contents? Keeping appendices up to date? Linking ASP.NET and .NET docs? It'll be a mess.

shanselman avatar Jan 24 '15 00:01 shanselman

Keep in mind, if you want this to be really open source, and thus something that encourages contribution, that the system must be as simple as possible, with no learning curve. Markdown can't generate a ToC by itself, but relatively simple code can generate ToC from Markdown. We at Orchard are very happy with our system, which is Markdown on Github plus an Azure site with very little code (for Lucene indexing and searching, plus ToC generation) that gets auto-updated every time the repo gets pushed. Super-simple, familiar tools. The only thing I don't like about it is the lack of metadata (we extract the titles from file names), but there are solutions for that too, such as Jeckyll's YAML headers (supported by Github) or my own Snippable format.

bleroy avatar Jan 24 '15 00:01 bleroy

@issafram That doesn't work well on huge codebases with LOTS of docs and refactoring for example. Rename a class and bye bye relative links.

edit: I'm late to the game :P

RobThree avatar Jan 24 '15 00:01 RobThree

I'm happy to hear that the ASP.NET documentation will be thousands of pages ;) Still, KISS.

bleroy avatar Jan 24 '15 00:01 bleroy

@bleroy Take a look at this http://read-the-docs.readthedocs.org/en/latest/ and the rST that made it. https://github.com/rtfd/readthedocs.org/blob/master/docs/index.rst

shanselman avatar Jan 24 '15 00:01 shanselman

Sure, that's great. Just giving our experience. I understand you're at a different scale.

bleroy avatar Jan 24 '15 00:01 bleroy

rST is the best option here, hands on. It being ASP.NET, having something that's smart enough to update its indexes (from a ToC or even a class listing standpoint) is probably a top priority.

jalcine avatar Jan 24 '15 00:01 jalcine