Skip to content
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

Target format/structure for intermediate representation of documentation #25

Open
uliska opened this issue Jun 10, 2017 · 2 comments
Open

Comments

@uliska
Copy link
Contributor

uliska commented Jun 10, 2017

Whenever documentation is generated it should first produce an intermediate representation in a to-be-discussed format. The steps to this involve (and more?):

This intermediate state should be organized in a way that it can as effortless be used by all targets specified in #21, including live apps that just want to read data and site builders that generate HTML (or other) documentation.

Blocks #26

@Cecca
Copy link

Cecca commented Jun 11, 2017

As for the data representation to be used, I think that JSON might be our best bet, since there are parsers available for the majority of languages, and may come with a built-in one. In any case, there are so many options available that it might be worth to look at the alternatives.

An orthogonal issue is what we should put into this intermediat representation. Some suggestions:

  • Version of the intermediate representation
  • list of documentation elements, consisting of
    • element name
    • element type
    • documentation string
    • source file
    • line number

@uliska
Copy link
Contributor Author

uliska commented Jun 11, 2017

I also tend to think that JSON is a good choice, but don't want to settle on it earlier than necessary, i.e. before having considered the alternatives.

The intermediate representation could also be based on Markdown or a similar format, something that static site (or documentation) builders use as source material. The first step of gathering the documentation from the package files could also produce a directory that can directly be processed by a tool like Sphinx, Pandoc or Gitbook.

The question of a list of documentation elements is directly related to the question of the documentation structure (#19)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants